class SelectBox extends ChoiceControl

Select box control that allows single item selection.

Constants

VALID

validation rule

Methods

setPrompt($prompt)

Sets first prompt item in select box.

mixed
getPrompt()

Returns first prompt item?

setItems(array $items, $useKeys = TRUE)

Sets options and option groups from which to choose.

Html|string
getControl()

Generates control's HTML element.

void
validate()

Performs the server side validation.

Details

at line 33
SelectBox setPrompt($prompt)

Sets first prompt item in select box.

Parameters

$prompt

Return Value

SelectBox

at line 44
mixed getPrompt()

Returns first prompt item?

Return Value

mixed

at line 54
ChoiceControl setItems(array $items, $useKeys = TRUE)

Sets options and option groups from which to choose.

Parameters

array $items
$useKeys

Return Value

ChoiceControl

at line 79
Html|string getControl()

Generates control's HTML element.

Return Value

Html|string

at line 100
void validate()

Performs the server side validation.

Return Value

void