XOOPS
2.6.0
|
Public Member Functions | |
__construct ($caption, $name, $value=null, $inline=true) | |
addOption ($value, $buttonCaption= '') | |
addOptionArray ($options) | |
getInline () | |
getOptions ($encode=0) | |
getValue ($encode=false) | |
render () | |
Public Member Functions inherited from Xoops\Form\Element | |
getAccessKey () | |
getAccessString ($str) | |
getCaption () | |
getClass () | |
getDatalist () | |
getDescription ($encode=false) | |
getExtra ($encode=false) | |
getMaxcols () | |
getName () | |
getPattern () | |
getPatternDescription () | |
getTitle () | |
getValue ($encode=false) | |
isDatalist () | |
isHidden () | |
isRequired () | |
render () | |
renderAttributeString () | |
renderValidationJS () | |
setAccessKey ($key) | |
setCaption ($caption) | |
setClass ($class) | |
setDatalist ($datalist) | |
setDescription ($description) | |
setExtra ($extra, $replace=false) | |
setHidden () | |
setName ($name) | |
setPattern ($pattern, $pattern_description= '') | |
setRequired ($bool=true) | |
setTitle ($title) | |
setValue ($value) | |
Public Member Functions inherited from Xoops\Html\Attributes | |
addAttribute ($name, $value) | |
getAttribute ($name) | |
hasAttribute ($name) | |
renderAttributeString () | |
setAttribute ($name, $value=null) | |
setAttributes ($values) | |
unsetAttribute ($name) | |
Protected Attributes | |
$value = null | |
Protected Attributes inherited from Xoops\Form\Element | |
$value = '' | |
Protected Attributes inherited from Xoops\Html\Attributes | |
$attributes = array() | |
Private Attributes | |
$inline | |
$options = array() | |
Additional Inherited Members | |
Public Attributes inherited from Xoops\Form\Element | |
$customValidationCode = array() | |
Xoops\Form\Radio::__construct | ( | $caption, | |
$name, | |||
$value = null , |
|||
$inline = true |
|||
) |
__construct
string | $caption | Caption |
string | $name | name attribute |
string | $value | Pre-selected value |
boolean | $inline | true to display inline |
Definition at line 57 of file Radio.php.
References Xoops\Form\Element\$caption, Xoops\Form\Radio\$inline, $name, Xoops\Form\Radio\$value, Xoops\Html\Attributes\setAttribute(), Xoops\Form\Element\setCaption(), and Xoops\Form\Element\setValue().
Xoops\Form\Radio::addOption | ( | $value, | |
$buttonCaption = '' |
|||
) |
Add an option
string | $value | value attribute for option - This gets submitted as form-data. |
string | $buttonCaption | option button caption - If empty, we use the "value" instead. |
Definition at line 88 of file Radio.php.
References Xoops\Form\Radio\$value.
Referenced by Xoops\Form\RadioYesNo\__construct(), and Xoops\Form\Radio\addOptionArray().
Xoops\Form\Radio::addOptionArray | ( | $options | ) |
Adds multiple options
array | $options | Associative array of value->name pairs. |
Definition at line 104 of file Radio.php.
References Xoops\Form\Radio\$options, and Xoops\Form\Radio\addOption().
Xoops\Form\Radio::getInline | ( | ) |
sets the class for inline orientation
Definition at line 141 of file Radio.php.
Referenced by Xoops\Form\Radio\render().
Xoops\Form\Radio::getOptions | ( | $encode = 0 | ) |
Get an array with all the options
integer | $encode | encode special characters, potential values: 0 - skip 1 - only for value; 2 - for both value and name |
Definition at line 123 of file Radio.php.
References Xoops\$option, Xoops\Form\Radio\$options, and Xoops\Form\Radio\$value.
Referenced by Xoops\Form\Radio\render().
Xoops\Form\Radio::getValue | ( | $encode = false | ) |
Get the "value" attribute
boolean | $encode | True to encode special characters |
Definition at line 75 of file Radio.php.
References Xoops\Form\Radio\$value.
Referenced by Xoops\Form\Radio\render().
Xoops\Form\Radio::render | ( | ) |
Prepare HTML for output
Definition at line 155 of file Radio.php.
References Xoops\Form\Element\$extra, Xoops\Form\Radio\$value, Xoops\Form\Element\getExtra(), Xoops\Form\Radio\getInline(), Xoops\Form\Element\getName(), Xoops\Form\Radio\getOptions(), Xoops\Form\Radio\getValue(), Xoops\Form\Element\renderAttributeString(), Xoops\Html\Attributes\setAttribute(), and Xoops\Html\Attributes\unsetAttribute().
|
private |
Definition at line 47 of file Radio.php.
Referenced by Xoops\Form\Radio\__construct().
|
private |
Definition at line 33 of file Radio.php.
Referenced by Xoops\Form\Radio\addOptionArray(), and Xoops\Form\Radio\getOptions().
|
protected |
Definition at line 40 of file Radio.php.
Referenced by Xoops\Form\RadioYesNo\__construct(), Xoops\Form\Radio\__construct(), Xoops\Form\Radio\addOption(), Xoops\Form\Radio\getOptions(), Xoops\Form\Radio\getValue(), and Xoops\Form\Radio\render().