PHP 클래스 Nette\Forms\Controls\MultiChoiceControl

상속: extends BaseControl
파일 보기 프로젝트 열기: nette/forms 1 사용 예제들

공개 프로퍼티들

프로퍼티 타입 설명
$checkAllowedValues boolean

공개 메소드들

메소드 설명
__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).

메소드 상세

__construct() 공개 메소드

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

getHtmlName() 공개 메소드

Returns HTML name of control.
public getHtmlName ( ) : string
리턴 string

getItems() 공개 메소드

Returns items from which to choose.
public getItems ( ) : array
리턴 array

getRawValue() 공개 메소드

Returns selected keys (not checked).
public getRawValue ( ) : array
리턴 array

getSelectedItems() 공개 메소드

Returns selected values.
public getSelectedItems ( ) : array
리턴 array

getValue() 공개 메소드

Returns selected keys.
public getValue ( ) : array
리턴 array

isFilled() 공개 메소드

Is any item selected?
public isFilled ( ) : boolean
리턴 boolean

loadHttpData() 공개 메소드

Loads HTTP data.
public loadHttpData ( ) : void
리턴 void

setDisabled() 공개 메소드

Disables or enables control or items.
public setDisabled ( $value = TRUE ) : self
리턴 self

setItems() 공개 메소드

Sets items from which to choose.
public setItems ( array $items, $useKeys = TRUE ) : self
$items array
리턴 self

setValue() 공개 메소드

Sets selected items (by keys).
public setValue ( $values ) : self
리턴 self

프로퍼티 상세

$checkAllowedValues 공개적으로 프로퍼티

public bool $checkAllowedValues
리턴 boolean