public function addComponent(Doozr_Form_Service_Component_Interface_Html $element)
    {
        $index               = $this->addChild($element);
        $this->index[$index] = self::COMPONENT;

        (!isset($this->indexReverse[self::COMPONENT])) ? $this->indexReverse[self::COMPONENT] = [] : null;
        $this->indexReverse[self::COMPONENT][]                                                = $index;

        return $index;
    }
public function addComponent(Doozr_Form_Service_Component_Interface_Html $element)
    {
        $index               = $this->addChild($element);
        $this->index[$index] = self::COMPONENT;

        (!isset($this->indexReverse[self::COMPONENT])) ? $this->indexReverse[self::COMPONENT] = [] : null;
        $this->indexReverse[self::COMPONENT][]                                                = $index;

        return $index;
    }
public function addComponent ( Doozr_Form_Service_Component_Interface_Html $ element ) { $ index = $ this -> addChild ( $ element ) ; $ this -> index [ $ index ] = self :: COMPONENT ; ( ! isset ( $ this -> indexReverse [ self :: COMPONENT ] ) ) ? $ this -> indexReverse [ self :: COMPONENT ] = [ ] : null ; $ this -> indexReverse [ self :: COMPONENT ] [ ] = $ index ; return $ index ; }
Adds an element to the group.

@param Doozr_Form_Service_Component_Interface_Html $element Instance of element to add

@author Benjamin Carl <opensource@clickalicious.de>

@return int The index of the added component
Adds an element to the group .