public function removeElement($name)
    {
        $returnValue = false;

		foreach($this->elements as $index => $element){
			if($element->getName() == $name){
				unset($this->elements[$index]);
				$groupName = $this->getElementGroup($name);
				if(!empty($groupName)){
					if(isset($this->groups[$groupName]['elements'][$name])){
						unset($this->groups[$groupName]['elements'][$name]);
					}
				}
				$returnValue = true;
			}
		}

        return $returnValue;
    }
public function removeElement($name)
    {
        $returnValue = false;

		foreach($this->elements as $index => $element){
			if($element->getName() == $name){
				unset($this->elements[$index]);
				$groupName = $this->getElementGroup($name);
				if(!empty($groupName)){
					if(isset($this->groups[$groupName]['elements'][$name])){
						unset($this->groups[$groupName]['elements'][$name]);
					}
				}
				$returnValue = true;
			}
		}

        return $returnValue;
    }
public function removeElement ( $ name ) { $ returnValue = false ; foreach ( $ this -> elements as $ index => $ element ) { if ( $ element -> getName ( ) == $ name ) { unset ( $ this -> elements [ $ index ] ) ; $ groupName = $ this -> getElementGroup ( $ name ) ; if ( ! empty ( $ groupName ) ) { if ( isset ( $ this -> groups [ $ groupName ] [ 'elements' ] [ $ name ] ) ) { unset ( $ this -> groups [ $ groupName ] [ 'elements' ] [ $ name ] ) ; } } $ returnValue = true ; } } return $ returnValue ; }
Remove an element identified by it's name.

@access public
@author Cédric Alfonsi, <cedric.alfonsi@tudor.lu>
@param  string $name
@return boolean
Remove an element identified by it s name .