public function addGroup($label)
    {
        $objGroup = new SelectGroup($label);
        $objGroup->setMeta("parent", $this, true);

        $this->__options->addObject($objGroup);

        return $objGroup;
    }
public function addGroup($label)
    {
        $objGroup = new SelectGroup($label);
        $objGroup->setMeta("parent", $this, true);

        $this->__options->addObject($objGroup);

        return $objGroup;
    }
public function addGroup ( $ label ) { $ objGroup = new SelectGroup ( $ label ) ; $ objGroup -> setMeta ( "parent" , $ this , true ) ; $ this -> __options -> addObject ( $ objGroup ) ; return $ objGroup ; }
Add optgroup element

@param string $label The optgroup's label
@return \ValidFormBuilder\SelectGroup
Add optgroup element