InputWidgetCheckboxBase Class Reference
[View]
A checkbox. More...
Inheritance diagram for
InputWidgetCheckboxBase:
Protected Member Functions |
|
extend_attributes (&$attrs, $params, $name, $title, $value, $policy) | |
Add new attributes or process old ones.
|
|
render_input ($attrs, $params, $name, $title, $value, $policy) | |
Render the actual widget. |
|
render_label ($widget, $html_attrs, $params, $name, $title, $value, $policy) | |
Render a label around widget. |
Detailed Description
A checkbox.
Definition at line 8 of file checkbox.input.widget.php.
Member Function Documentation
InputWidgetCheckboxBase::extend_attributes | ( | &$ | attrs, | |
$ | params, | |||
$ | name, | |||
$ | title, | |||
$ | value, | |||
$ | policy | |||
) | [protected] |
Add new attributes or process old ones.
Reimplemented from InputWidgetBaseBase.
Definition at line 12 of file checkbox.input.widget.php.
00012 { 00013 $attrs['checked'] = $value ? 'checked' : false; 00014 }
InputWidgetCheckboxBase::render_input | ( | $ | attrs, | |
$ | params, | |||
$ | name, | |||
$ | title, | |||
$ | value, | |||
$ | policy | |||
) | [protected] |
Render the actual widget.
Reimplemented from InputWidgetBaseBase.
Definition at line 19 of file checkbox.input.widget.php.
00019 { 00020 return 00021 html::input('hidden', $name, array('value' => 0)) . 00022 html::input('checkbox', $name, $attrs); 00023 }
InputWidgetCheckboxBase::render_label | ( | $ | widget, | |
$ | html_attrs, | |||
$ | params, | |||
$ | name, | |||
$ | title, | |||
$ | value, | |||
$ | policy | |||
) | [protected] |
Render a label around widget.
Reimplemented from InputWidgetBaseBase.
Definition at line 28 of file checkbox.input.widget.php.
00028 { 00029 return parent::render_label($widget, $html_attrs, $params, $name, $title, $value, $policy | WidgetInput::WRAP_LABEL); 00030 }
The documentation for this class was generated from the following file:
- gyro/core/view/widgets/input/base/checkbox.input.widget.php