class SelectBox extends ChoiceControl

Select box control that allows single item selection.

Constants

VALID

validation rule

Methods

__construct($label = null, array $items = null)

No description

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.

addOptionAttributes(array $attributes)

No description

bool
isOk()

No description

Details

at line 31
__construct($label = null, array $items = null)

No description

Parameters

$label
array $items

at line 48
SelectBox setPrompt($prompt)

Sets first prompt item in select box.

Parameters

$prompt

Return Value

SelectBox

at line 59
mixed getPrompt()

Returns first prompt item?

Return Value

mixed

at line 69
ChoiceControl setItems(array $items, $useKeys = true)

Sets options and option groups from which to choose.

Parameters

array $items
$useKeys

Return Value

ChoiceControl

at line 94
Html|string getControl()

Generates control's HTML element.

Return Value

Html|string

at line 114
SelectBox addOptionAttributes(array $attributes)

No description

Parameters

array $attributes

Return Value

SelectBox

at line 124
bool isOk()

No description

Return Value

bool