|
XCL Web Application Platform 2.5.0
The XoopsCube Legacy Project
|
Public Member Functions | |
| __construct ($caption, $name, $value=null) | |
| XoopsFormRadio ($caption, $name, $value=null) | |
| getValue () | |
| setValue ($value) | |
| addOption ($value, $name='') | |
| addOptionArray ($options) | |
| getOptions () | |
| render () | |
Public Member Functions inherited from XoopsFormElement | |
| __construct () | |
| XoopsFormElement () | |
| isContainer () | |
| setName ($name) | |
| getName ($encode=true) | |
| setId ($id) | |
| getId () | |
| setAccessKey ($key) | |
| getAccessKey () | |
| getAccessString ($str) | |
| setClass ($class) | |
| getClass () | |
| setCaption ($caption) | |
| getCaption () | |
| setDescription ($description) | |
| getDescription () | |
| setHidden () | |
| isHidden () | |
| isBreak () | |
| setExtra ($extra, $replace=false) | |
| getExtra () | |
| getMessageForJS () | |
Data Fields | |
| $_options = [] | |
| $_value = null | |
Data Fields inherited from XoopsFormElement | |
| $_name | |
| $_caption | |
| $_accesskey = '' | |
| $_class = '' | |
| $_hidden = false | |
| $_extra = '' | |
| $_required = false | |
| $_description = '' | |
| $_id = null | |
Definition at line 18 of file formradio.php.
| __construct | ( | $caption, | |
| $name, | |||
| $value = null ) |
Constructor
| string | $caption | Caption |
| string | $name | "name" attribute |
| string | $value | Pre-selected value |
Definition at line 42 of file formradio.php.
| addOption | ( | $value, | |
| $name = '' ) |
Add an option
| string | $value | "value" attribute - This gets submitted as form-data. |
| string | $name | "name" attribute - This is displayed. If empty, we use the "value" instead. |
Definition at line 81 of file formradio.php.
| addOptionArray | ( | $options | ) |
Adds multiple options
| array | $options | Associative array of value->name pairs. |
Definition at line 95 of file formradio.php.
| getOptions | ( | ) |
Gets the options
Definition at line 109 of file formradio.php.
| getValue | ( | ) |
| render | ( | ) |
Prepare HTML for output
Reimplemented from XoopsFormElement.
Definition at line 119 of file formradio.php.
| setValue | ( | $value | ) |
| XoopsFormRadio | ( | $caption, | |
| $name, | |||
| $value = null ) |
Definition at line 50 of file formradio.php.
| $_options = [] |
Definition at line 26 of file formradio.php.
| $_value = null |
Definition at line 33 of file formradio.php.