public function addField($label, $value, $selected = false, $meta = array())
    {
        $objOption = new SelectOption($label, $value, $selected, $meta);
        $objOption->setMeta("parent", $this, true);

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

        return $objOption;
    }
public function addField($label, $value, $selected = false, $meta = array())
    {
        $objOption = new SelectOption($label, $value, $selected, $meta);
        $objOption->setMeta("parent", $this, true);

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

        return $objOption;
    }
public function addField ( $ label , $ value , $ selected = false , $ meta = array ( ) ) { $ objOption = new SelectOption ( $ label , $ value , $ selected , $ meta ) ; $ objOption -> setMeta ( "parent" , $ this , true ) ; $ this -> __options -> addObject ( $ objOption ) ; return $ objOption ; }
Add option element

@param string $label The option elements label
@param string $value The option elements value
@param boolean $selected True if this option should be selected by default
@param array $meta The meta array
@return \ValidFormBuilder\SelectOption
Add option element