Class NMultiSelectBox


Select box control that allows multiple item selection.

NObject
   |
   --NComponent
      |
      --NFormControl
         |
         --NSelectBox
            |
            --NMultiSelectBox
Author: David Grudl
Copyright: Copyright (c) 2004, 2009 David Grudl
Located: in /Forms/Controls/MultiSelectBox.php (line 33)
Public Method Summary
NHtml
Generates control's HTML element.
array
Returns selected keys (not checked).
array
Returns selected values.
array
Returns selected keys.
Methods Inherited From NSelectBox
__construct(), areKeysUsed(), getControl(), getItems(), getRawValue(), getSelectedItem(), getValue(), isFirstSkipped(), setItems(), skipFirst(), validateFilled()
Methods Inherited From NFormControl
__construct(), addCondition(), addConditionOn(), addError(), addRule(), attached(), cleanErrors(), getControl(), getControlPrototype(), getErrors(), getForm(), getHtmlId(), getHtmlName(), getLabel(), getLabelPrototype(), getOption(), getOptions(), getRules(), getTranslator(), getValue(), hasErrors(), isDisabled(), isRendered(), isRequired(), loadHttpData(), notifyRule(), setDefaultValue(), setDisabled(), setHtmlId(), setOption(), setParent(), setRendered(), setRequired(), setTranslator(), setValue(), translate(), validateEqual(), validateFilled(), validateValid()
Methods Inherited From NComponent
__construct(), attached(), detached(), getName(), getParent(), lookup(), lookupPath(), monitor(), setParent(), unmonitor(), validateParent(), __clone(), __wakeup()
Methods Inherited From NObject
extensionMethod(), getClass(), getReflection(), __call(), __callStatic(), __get(), __isset(), __set(), __unset()
Variable Summary

Method Details

line 103

getControl

public NHtml getControl ()

Generates control's HTML element.

Output
NHtml  

line 56

getRawValue

public array getRawValue ()

Returns selected keys (not checked).

Output
array  

line 83

getSelectedItem

public array getSelectedItem ()

Returns selected values.

Output
array  

line 41

getValue

public array getValue ()

Returns selected keys.

Output
array