| [ Index ] |
PHP Cross Reference of Unnamed Project |
[Source view] [Print] [Project Stats]
(no description)
| File Size: | 286 lines (9 kb) |
| Included or required: | 0 times |
| Referenced: | 0 times |
| Includes or requires: | 0 files |
HTML_QuickForm_advcheckbox:: (11 methods):
__construct()
HTML_QuickForm_advcheckbox()
getPrivateName()
getOnclickJs()
setValues()
setValue()
getValue()
toHtml()
getFrozenHtml()
onQuickFormEvent()
exportValue()
Class: HTML_QuickForm_advcheckbox - X-Ref
HTML class for an advanced checkbox type field| __construct($elementName=null, $elementLabel=null, $text=null, $attributes=null, $values=null) X-Ref |
| Class constructor param: string $elementName (optional)Input field name attribute param: string $elementLabel (optional)Input field label param: string $text (optional)Text to put after the checkbox param: mixed $attributes (optional)Either a typical HTML attribute string param: mixed $values (optional)Values to pass if checked or not checked return: void |
| HTML_QuickForm_advcheckbox($elementName=null, $elementLabel=null, $text=null, $attributes=null, $values=null) X-Ref |
| Old syntax of class constructor. Deprecated in PHP7. |
| getPrivateName($elementName) X-Ref |
| Gets the private name for the element param: string $elementName The element name to make private return: string |
| getOnclickJs($elementName) X-Ref |
| Create the javascript for the onclick event which will set the value of the hidden field param: string $elementName The element name return: string |
| setValues($values) X-Ref |
| Sets the values used by the hidden element param: mixed $values The values, either a string or an array return: void |
| setValue($value) X-Ref |
| Sets the element's value param: mixed Element's value |
| getValue() X-Ref |
| Returns the element's value return: mixed |
| toHtml() X-Ref |
| Returns the checkbox element in HTML and the additional hidden element in HTML return: string |
| getFrozenHtml() X-Ref |
| Unlike checkbox, this has to append a hidden input in both checked and non-checked states |
| onQuickFormEvent($event, $arg, &$caller) X-Ref |
| Called by HTML_QuickForm whenever form event is made on this element param: string $event Name of event param: mixed $arg event arguments param: object $caller calling object return: void |
| exportValue(&$submitValues, $assoc = false) X-Ref |
| This element has a value even if it is not checked, thus we override checkbox's behaviour here |
| Generated: Thu Aug 11 10:00:09 2016 | Cross-referenced by PHPXref 0.7.1 |