Checkbox Group Helper Class. More...
Inheritance diagram for axCheckboxGroupHelper:Public Member Functions | |
| __construct ($name, array $values=array()) | |
| Constructor. | |
| addOption ($label, $value) | |
| Add an option (a checkbox) to the group. | |
| addOptions (array $values) | |
| Add multiple options at once. | |
| setValue ($value) | |
| getName () | |
| Get group's name. | |
Static Public Member Functions | |
| static | export ($name, array $values=array()) |
| Constructor static alias. | |
Protected Attributes | |
| $_name | |
| Inner input's name. | |
Static Protected Attributes | |
| static | $_count = 1 |
| Current position. | |
Checkbox Group Helper Class.
Definition at line 15 of file axCheckboxGroupHelper.class.php.
| axCheckboxGroupHelper::__construct | ( | $ | name, |
| array $ | values = array() |
||
| ) |
Constructor.
| string | $name | Group name (HTML name attribute value) |
| array | $values | [optional] [default array()] Values list (one per checkbox), keys will be used as label |
Definition at line 34 of file axCheckboxGroupHelper.class.php.
| axCheckboxGroupHelper::addOption | ( | $ | label, |
| $ | value | ||
| ) |
Add an option (a checkbox) to the group.
| string | $label | |
| scalar | $value |
Definition at line 48 of file axCheckboxGroupHelper.class.php.
| axCheckboxGroupHelper::addOptions | ( | array $ | values | ) |
Add multiple options at once.
| array | $values | Values list (one per checkbox), keys will be used as label |
Definition at line 60 of file axCheckboxGroupHelper.class.php.
| static axCheckboxGroupHelper::export | ( | $ | name, |
| array $ | values = array() |
||
| ) | [static] |
Constructor static alias.
| string | $name | |
| array | $values | [optional] [default array()] |
Definition at line 95 of file axCheckboxGroupHelper.class.php.
| axCheckboxGroupHelper::setValue | ( | $ | value | ) |
Set the node's value.
| mixed | $value |
Reimplemented from axBaseHelper.
Definition at line 69 of file axCheckboxGroupHelper.class.php.
integer axCheckboxGroupHelper::$_count = 1 [static, protected] |
Current position.
Definition at line 27 of file axCheckboxGroupHelper.class.php.
string axCheckboxGroupHelper::$_name [protected] |
Inner input's name.
Definition at line 21 of file axCheckboxGroupHelper.class.php.