An input that can be checked is either a radio button or checkbox. As such, it is possible that an instance of this class would an option in a choice of related options. As such it must implement the selectable interface of the MultipleOption class.
Definition at line 1389 of file controls.php.
Public Member Functions | |
CheckedInput ($type, $label=null, $control_name=null) | |
The CheckedInput constructor. | |
getLabel () | |
Get the option's label. | |
setLabel ($label) | |
Set the option's label. | |
selected () | |
Check whether the the option has been selected. | |
select () | |
Flag the option as being selected. | |
deselect () | |
Flag the option as not being selected. | |
toString () | |
Get a human readable string representation of the element. | |
__sleep () | |
Prepare object for serialisation. | |
Public Attributes | |
$label | |
The label of the option. |
|
The CheckedInput constructor.
Definition at line 1399 of file controls.php. References FC_EVENT_DESELECT, and FC_EVENT_SELECT. |
|
Prepare object for serialisation. This method is automatically called just before the object is serialised to carry out clean-up operations. See the PHP documentation at http://www.php.net/manual/en/language.oop.magic-functions.php for more information.
Reimplemented from ControlElement. Definition at line 1478 of file controls.php. |
|
Flag the option as not being selected.
Definition at line 1454 of file controls.php. References FC_EVENT_DESELECT, and FC_EVENT_SELECT. |
|
Get the option's label.
Definition at line 1416 of file controls.php. |
|
Flag the option as being selected.
Definition at line 1443 of file controls.php. References FC_EVENT_DESELECT, and FC_EVENT_SELECT. |
|
Check whether the the option has been selected.
Definition at line 1434 of file controls.php. |
|
Set the option's label.
Definition at line 1425 of file controls.php. References $label. |
|
Get a human readable string representation of the element.
Reimplemented from XHTMLElement. Reimplemented in CheckboxInput. Definition at line 1465 of file controls.php. References $label. |
|
The label of the option.
Definition at line 1392 of file controls.php. Referenced by setLabel(), and toString(). |