XOOPS
2.6.0
|
Public Member Functions | |
__construct ($caption, $name, $value=null, $yes=\XoopsLocale::YES, $no=\XoopsLocale::NO) | |
Public Member Functions inherited from Xoops\Form\Radio | |
__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) | |
Additional Inherited Members | |
Public Attributes inherited from Xoops\Form\Element | |
$customValidationCode = array() | |
Protected Attributes inherited from Xoops\Form\Radio | |
$value = null | |
Protected Attributes inherited from Xoops\Form\Element | |
$value = '' | |
Protected Attributes inherited from Xoops\Html\Attributes | |
$attributes = array() | |
Definition at line 27 of file RadioYesNo.php.
Xoops\Form\RadioYesNo::__construct | ( | $caption, | |
$name, | |||
$value = null , |
|||
$yes = \XoopsLocale::YES , |
|||
$no = \XoopsLocale::NO |
|||
) |
Constructor
string | $caption | caption |
string | $name | element name |
string | null | $value | Pre-selected value, can be "0" (No) or "1" (Yes) |
string | $yes | String for "Yes" |
string | $no | String for "No" |
Definition at line 38 of file RadioYesNo.php.
References Xoops\Form\Element\$caption, $name, Xoops\Form\Radio\$value, and Xoops\Form\Radio\addOption().