public function removeChild($index)
    {
        if (!isset($this->children[$index])) {
            $result = null;
        } else {
            $result = (array_splice($this->children, $index, 1) !== null);
        }

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

        return $result;
    }
public function removeChild($index)
    {
        if (!isset($this->children[$index])) {
            $result = null;
        } else {
            $result = (array_splice($this->children, $index, 1) !== null);
        }

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

        return $result;
    }
public function removeChild ( $ index ) { if ( ! isset ( $ this -> children [ $ index ] ) ) { $ result = null ; } else { $ result = ( array_splice ( $ this -> children , $ index , 1 ) !== null ) ; } // Notify all attached components -> render again $ this -> notify ( ) ; return $ result ; }
Removes a child from the component.

@param int $index The index of the child component to remove from component

@author Benjamin Carl <opensource@clickalicious.de>

@return bool|null TRUE  if child was removed successfully,
FALSE if child could not be removed,
NULL  if child was not found
Removes a child from the component .