class Checkbox extends BaseControl

Check box control. Allows the user to select a true or false condition.

Methods

__construct(string|object $label = null)

No description

setValue(mixed $value)

Sets control's value.

bool
isFilled()

Is control filled?

Html|string
getControl()

Generates control's HTML element.

Html|string
getLabel(string|object $caption = null)

Bypasses label generation.

Html|null
getControlPart()

No description

Html|null
getLabelPart()

No description

getSeparatorPrototype()

Returns wrapper HTML element template.

Details

at line 28
__construct(string|object $label = null)

Parameters

string|object $label

at line 42
IControl setValue(mixed $value)

Sets control's value.

Parameters

mixed $value

Return Value

IControl

at line 55
bool isFilled()

Is control filled?

Return Value

bool

at line 64
Html|string getControl()

Generates control's HTML element.

Return Value

Html|string

at line 73
Html|string getLabel(string|object $caption = null)

Bypasses label generation.

Parameters

string|object $caption

Return Value

Html|string

at line 78
Html|null getControlPart()

Return Value

Html|null

at line 84
Html|null getLabelPart()

Return Value

Html|null

at line 93
Html getSeparatorPrototype()

Returns wrapper HTML element template.

Return Value

Html