PHP Class AdamWathan\Form\Elements\Select

Inheritance: extends FormControl
Mostra file Open project: adamwathan/form Class Usage Examples

Protected Properties

Property Type Description
$options
$selected

Public Methods

Method Description
__construct ( $name, $options = [] )
addOption ( $value, $label )
defaultValue ( $value )
multiple ( )
options ( $options )
render ( )
select ( $option )

Protected Methods

Method Description
isSelected ( $value )
renderOptGroup ( $label, $options )
renderOption ( $value, $label )
renderOptions ( )
setOptions ( $options )

Method Details

__construct() public method

public __construct ( $name, $options = [] )

addOption() public method

public addOption ( $value, $label )

defaultValue() public method

public defaultValue ( $value )

isSelected() protected method

protected isSelected ( $value )

multiple() public method

public multiple ( )

options() public method

public options ( $options )

render() public method

public render ( )

renderOptGroup() protected method

protected renderOptGroup ( $label, $options )

renderOption() protected method

protected renderOption ( $value, $label )

renderOptions() protected method

protected renderOptions ( )

select() public method

public select ( $option )

setOptions() protected method

protected setOptions ( $options )

Property Details

$options protected_oe property

protected $options

$selected protected_oe property

protected $selected