PHP Class Nette\Forms\Controls\MultiChoiceControl

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 )
getHtmlName ( ) : string Returns HTML name of control.
getItems ( ) : array Returns items from which to choose.
getRawValue ( ) : array Returns selected keys (not checked).
getSelectedItems ( ) : array Returns selected values.
getValue ( ) : array Returns selected keys.
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 ( $values ) : self Sets selected items (by keys).

Method Details

__construct() public méthode

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

getHtmlName() public méthode

Returns HTML name of control.
public getHtmlName ( ) : string
Résultat string

getItems() public méthode

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

getRawValue() public méthode

Returns selected keys (not checked).
public getRawValue ( ) : array
Résultat array

getSelectedItems() public méthode

Returns selected values.
public getSelectedItems ( ) : array
Résultat array

getValue() public méthode

Returns selected keys.
public getValue ( ) : array
Résultat array

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 items (by keys).
public setValue ( $values ) : self
Résultat self

Property Details

$checkAllowedValues public_oe property

public bool $checkAllowedValues
Résultat boolean