public function createGroup($groupName, $groupTitle = '', array $elements = array(), array $options = array())
    {
        $identifier = array();
        foreach ($elements as $element) {
            if ($element instanceof tao_helpers_form_FormElement) {
                $identifier[] = $element->getName();
            } elseif (is_string($element)) {
                $identifier[] = $element;
            } else {
                throw new common_Exception('Unknown element of type '.gettype($element).' in '.__FUNCTION__);
            }
        }
		$this->groups[$groupName] = array(
			'title' 	=> (empty($groupTitle)) ? $groupName : $groupTitle,
			'elements'	=> $identifier,
			'options'	=> $options
		);
    }
public function createGroup($groupName, $groupTitle = '', array $elements = array(), array $options = array())
    {
        $identifier = array();
        foreach ($elements as $element) {
            if ($element instanceof tao_helpers_form_FormElement) {
                $identifier[] = $element->getName();
            } elseif (is_string($element)) {
                $identifier[] = $element;
            } else {
                throw new common_Exception('Unknown element of type '.gettype($element).' in '.__FUNCTION__);
            }
        }
		$this->groups[$groupName] = array(
			'title' 	=> (empty($groupTitle)) ? $groupName : $groupTitle,
			'elements'	=> $identifier,
			'options'	=> $options
		);
    }
public function createGroup ( $ groupName , $ groupTitle = '' , array $ elements = array ( ) , array $ options = array ( ) ) { $ identifier = array ( ) ; foreach ( $ elements as $ element ) { if ( $ element instanceof tao_helpers_form_FormElement ) { $ identifier [ ] = $ element -> getName ( ) ; } elseif ( is_string ( $ element ) ) { $ identifier [ ] = $ element ; } else { throw new common_Exception ( 'Unknown element of type ' . gettype ( $ element ) . ' in ' . __FUNCTION__ ) ; } } $ this -> groups [ $ groupName ] = array ( 'title' => ( empty ( $ groupTitle ) ) ? $ groupName : $ groupTitle , 'elements' => $ identifier , 'options' => $ options ) ; }
Create a logical group of elements

@access public
@author Cédric Alfonsi, <cedric.alfonsi@tudor.lu>
@param  string $groupName
@param  string $groupTitle
@param  array $elements array of form elements or their identifiers
@param  array $options
@return mixed
@throws common_Exception
Create a logical group of elements