public function addChild(Doozr_Form_Service_Component_Interface_Html $child, $id = null)
    {
        $id = ($id === null) ? count($this->children) : $id;

        $this->children[$id] = $child;

        // Notify all attached components -> render again
        $this->notify();

        return $id;
    }
public function addChild(Doozr_Form_Service_Component_Interface_Html $child, $id = null)
    {
        $id = ($id === null) ? count($this->children) : $id;

        $this->children[$id] = $child;

        // Notify all attached components -> render again
        $this->notify();

        return $id;
    }
public function addChild ( Doozr_Form_Service_Component_Interface_Html $ child , $ id = null ) { $ id = ( $ id === null ) ? count ( $ this -> children ) : $ id ; $ this -> children [ $ id ] = $ child ; // Notify all attached components -> render again $ this -> notify ( ) ; return $ id ; }
Adds a child to the component.

@param Doozr_Form_Service_Component_Interface_Html $child A child component to add to component
@param string                                      $id    An id to used as index

@author Benjamin Carl <opensource@clickalicious.de>

@return int The index of the child component
Adds a child to the component .