public function addToGroup($groupName, $elementName = '')
    {

		if(isset($this->groups[$groupName])){
			if(isset($this->groups[$groupName]['elements'])){
				if(!in_array($elementName, $this->groups[$groupName]['elements'])){
					$this->groups[$groupName]['elements'][] = $elementName;
				}
			}
		}

    }
public function addToGroup($groupName, $elementName = '')
    {

		if(isset($this->groups[$groupName])){
			if(isset($this->groups[$groupName]['elements'])){
				if(!in_array($elementName, $this->groups[$groupName]['elements'])){
					$this->groups[$groupName]['elements'][] = $elementName;
				}
			}
		}

    }
public function addToGroup ( $ groupName , $ elementName = '' ) { if ( isset ( $ this -> groups [ $ groupName ] ) ) { if ( isset ( $ this -> groups [ $ groupName ] [ 'elements' ] ) ) { if ( ! in_array ( $ elementName , $ this -> groups [ $ groupName ] [ 'elements' ] ) ) { $ this -> groups [ $ groupName ] [ 'elements' ] [ ] = $ elementName ; } } } }
add an element to a group

@access public
@author Cédric Alfonsi, <cedric.alfonsi@tudor.lu>
@param  string $groupName
@param  string $elementName
add an element to a group