Class SelectBox
Select box control that allows single item selection.
-
Object
-
Component
implements
IComponent
-
FormControl
implements
IFormControl
-
SelectBox
Methods summary
public
|
#
__construct( string $label = NULL, array $items = NULL, integer $size = NULL )
Parameters
- $label
string label
- $items
array items from which to choose
- $size
integer number of rows that should be visible
Overrides
|
public
mixed
|
#
getValue( )
Returns selected item key.
Returns selected item key.
Returns
mixed
Overrides
|
public
mixed
|
#
getRawValue( )
Returns selected item key (not checked).
Returns selected item key (not checked).
Returns
mixed
|
public
boolean
|
#
isFilled( )
Has been any item selected?
Has been any item selected?
Returns
boolean
Overrides
|
public
SelectBox
|
#
setPrompt( string $prompt )
Sets first prompt item in select box.
Sets first prompt item in select box.
Parameters
Returns
|
public
|
|
public
mixed
|
#
getPrompt( )
Returns first prompt item?
Returns first prompt item?
Returns
mixed
|
public
boolean
|
|
public
SelectBox
|
#
setItems( array $items, boolean $useKeys = TRUE )
Sets items from which to choose.
Sets items from which to choose.
Parameters
- $items
array
- $useKeys
boolean
Returns
|
public
array
|
#
getItems( )
Returns items from which to choose.
Returns items from which to choose.
Returns
array
|
public
string
|
|
public
Html
|
#
getControl( )
Generates control's HTML element.
Generates control's HTML element.
Returns
Overrides
|
Methods inherited from FormControl
addCondition(),
addConditionOn(),
addError(),
addRule(),
attached(),
cleanErrors(),
exportRules(),
getControlPrototype(),
getErrors(),
getForm(),
getHtmlId(),
getHtmlName(),
getLabel(),
getLabelPrototype(),
getOption(),
getOptions(),
getRules(),
getTranslator(),
hasErrors(),
isDisabled(),
isRequired(),
loadHttpData(),
setAttribute(),
setDefaultValue(),
setDisabled(),
setHtmlId(),
setOption(),
setRequired(),
setTranslator(),
setValue(),
translate()
|
Methods inherited from Component
__clone(),
__sleep(),
__wakeup(),
detached(),
getName(),
getParent(),
lookup(),
lookupPath(),
monitor(),
unmonitor(),
validateParent()
|
Properties summary
protected
array
|
$allowed
|
array() |
|
Magic properties inherited from FormControl
$control,
$controlPrototype,
$defaultValue,
$disabled,
$errors,
$filled,
$form,
$htmlId,
$htmlName,
$label,
$labelPrototype,
$options,
$required,
$rules,
$translator,
$value
|