interface IControl

Defines method that must be implemented to allow a component to act like a form control.

Methods

void
setValue($value)

Sets control's value.

mixed
getValue()

Returns control's value.

void
validate()

No description

array
getErrors()

Returns errors corresponding to control.

bool
isOmitted()

Is control value excluded from $form->getValues() result?

string
translate($s, $count = NULL)

Returns translated string.

Details

at line 22
void setValue($value)

Sets control's value.

Parameters

$value

Return Value

void

at line 28
mixed getValue()

Returns control's value.

Return Value

mixed

at line 33
void validate()

No description

Return Value

void

at line 39
array getErrors()

Returns errors corresponding to control.

Return Value

array

at line 45
bool isOmitted()

Is control value excluded from $form->getValues() result?

Return Value

bool

at line 53
string translate($s, $count = NULL)

Returns translated string.

Parameters

$s
$count

Return Value

string