PHP Class Nette\Forms\Controls\ChoiceControl

Inheritance: extends BaseControl
Afficher le fichier Open project: nette/forms Class Usage Examples

Méthodes publiques

Свойство Type Description
$checkAllowedValues boolean

Méthodes publiques

Méthode Description
__construct ( $label = NULL, array $items = NULL )
getItems ( ) : array Returns items from which to choose.
getRawValue ( ) : string | integer Returns selected key (not checked).
getSelectedItem ( ) : mixed Returns selected value.
getValue ( ) : string | integer Returns selected key.
isFilled ( ) : boolean Is any item selected?
loadHttpData ( ) : void Loads HTTP data.
setDisabled ( $value = TRUE ) : self Disables or enables control or items.
setItems ( array $items, $useKeys = TRUE ) : self Sets items from which to choose.
setValue ( $value ) : self Sets selected item (by key).

Method Details

__construct() public méthode

public __construct ( $label = NULL, array $items = NULL )
$items array

getItems() public méthode

Returns items from which to choose.
public getItems ( ) : array
Résultat array

getRawValue() public méthode

Returns selected key (not checked).
public getRawValue ( ) : string | integer
Résultat string | integer

getSelectedItem() public méthode

Returns selected value.
public getSelectedItem ( ) : mixed
Résultat mixed

getValue() public méthode

Returns selected key.
public getValue ( ) : string | integer
Résultat string | integer

isFilled() public méthode

Is any item selected?
public isFilled ( ) : boolean
Résultat boolean

loadHttpData() public méthode

Loads HTTP data.
public loadHttpData ( ) : void
Résultat void

setDisabled() public méthode

Disables or enables control or items.
public setDisabled ( $value = TRUE ) : self
Résultat self

setItems() public méthode

Sets items from which to choose.
public setItems ( array $items, $useKeys = TRUE ) : self
$items array
Résultat self

setValue() public méthode

Sets selected item (by key).
public setValue ( $value ) : self
Résultat self

Property Details

$checkAllowedValues public_oe property

public bool $checkAllowedValues
Résultat boolean