Core/Html/Controls/OptionGroup.php
public function &createOption($text = '', $value = '')
    {
        $option = $this->factory->create('Form\Checkbox');

        if ($text) {
            $option->setInner($text);
        }

        if ($value) {
            $option->setValue($value);
        }

        $this->controls[] = $option;

        return $option;
    }
public function &createOption($text = '', $value = '')
    {
        $option = $this->factory->create('Form\Checkbox');

        if ($text) {
            $option->setInner($text);
        }

        if ($value) {
            $option->setValue($value);
        }

        $this->controls[] = $option;

        return $option;
    }
public function & createOption ( $ text = '' , $ value = '' ) { $ option = $ this -> factory -> create ( 'Form\Checkbox' ) ; if ( $ text ) { $ option -> setInner ( $ text ) ; } if ( $ value ) { $ option -> setValue ( $ value ) ; } $ this -> controls [ ] = $ option ; return $ option ; }
Add an option to the optionslist and returns a reference to it.

@return \Core\Html\Form\Checkbox
Add an option to the optionslist and returns a reference to it .