src/Ease/Html/CheckboxGroup.php
public function &addItem($pageItem, $pageItemName = null)
    {
        /*
         * Allready Added Item
         *
         * @var CheckboxTag
         */
        $itemInpage = parent::addItem($pageItem);
        if (is_object($itemInpage)) {
            if (isset($this->items)) {
                $keys = array_keys($this->items);
                $itemInpage->setTagProperties(['name' => $itemInpage->getTagProperty('name').'#'.$keys[$this->subitemCount]]);
                if (isset($this->values[$keys[$this->subitemCount]])) {
                    $itemInpage->setValue((bool) $this->values[$keys[$this->subitemCount]]);
                }
                next($this->items);
                ++$this->subitemCount;
            }
        }

        return $itemInpage;
    }
public function &addItem($pageItem, $pageItemName = null)
    {
        /*
         * Allready Added Item
         *
         * @var CheckboxTag
         */
        $itemInpage = parent::addItem($pageItem);
        if (is_object($itemInpage)) {
            if (isset($this->items)) {
                $keys = array_keys($this->items);
                $itemInpage->setTagProperties(['name' => $itemInpage->getTagProperty('name').'#'.$keys[$this->subitemCount]]);
                if (isset($this->values[$keys[$this->subitemCount]])) {
                    $itemInpage->setValue((bool) $this->values[$keys[$this->subitemCount]]);
                }
                next($this->items);
                ++$this->subitemCount;
            }
        }

        return $itemInpage;
    }
Přejmenuje vložené checkboxy pro použití ve formuláři.

@param CheckboxTag $pageItem     vkládaný objekt CheckBoxu
@param string      $pageItemName Pod tímto jménem je objekt vkládán do stromu

@return CheckboxTag