PHP Class AdamWathan\Form\Elements\Select

Inheritance: extends FormControl
Afficher le fichier Open project: adamwathan/form Class Usage Examples

Protected Properties

Свойство Type Description
$options
$selected

Méthodes publiques

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

Méthodes protégées

Méthode Description
isSelected ( $value )
renderOptGroup ( $label, $options )
renderOption ( $value, $label )
renderOptions ( )
setOptions ( $options )

Method Details

__construct() public méthode

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

addOption() public méthode

public addOption ( $value, $label )

defaultValue() public méthode

public defaultValue ( $value )

isSelected() protected méthode

protected isSelected ( $value )

multiple() public méthode

public multiple ( )

options() public méthode

public options ( $options )

render() public méthode

public render ( )

renderOptGroup() protected méthode

protected renderOptGroup ( $label, $options )

renderOption() protected méthode

protected renderOption ( $value, $label )

renderOptions() protected méthode

protected renderOptions ( )

select() public méthode

public select ( $option )

setOptions() protected méthode

protected setOptions ( $options )

Property Details

$options protected_oe property

protected $options

$selected protected_oe property

protected $selected