XOOPS 2.5.6
Final
|
Public Member Functions | |
addOption ($value, $name= '') | |
addOptionArray ($options) | |
getDelimeter ($encode=false) | |
getOptions ($encode=false) | |
getValue ($encode=false) | |
render () | |
setValue ($value) | |
XoopsFormRadio ($caption, $name, $value=null, $delimeter= ' ') | |
Public Member Functions inherited from XoopsFormElement | |
getAccessKey () | |
getAccessString ($str) | |
getCaption ($encode=false) | |
getClass () | |
getDescription ($encode=false) | |
getExtra ($encode=false) | |
getFormType () | |
getName ($encode=true) | |
getNocolspan () | |
getTitle ($encode=true) | |
isContainer () | |
isHidden () | |
isRequired () | |
render () | |
renderValidationJS () | |
setAccessKey ($key) | |
setCaption ($caption) | |
setClass ($class) | |
setDescription ($description) | |
setExtra ($extra, $replace=false) | |
setFormType ($value= '') | |
setHidden () | |
setName ($name) | |
setNocolspan ($nocolspan=true) | |
XoopsFormElement () | |
Public Attributes | |
$_delimeter | |
$_options = array() | |
$_value = null | |
$columns | |
Public Attributes inherited from XoopsFormElement | |
$_accesskey = '' | |
$_caption | |
$_class = array() | |
$_description = '' | |
$_extra = array() | |
$_formtype = '' | |
$_hidden = false | |
$_name | |
$_nocolspan = false | |
$_required = false | |
$customValidationCode = array() | |
Definition at line 23 of file formradio.php.
XoopsFormRadio::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 101 of file formradio.php.
Referenced by addOptionArray(), and profile_getUserForm().
XoopsFormRadio::addOptionArray | ( | $options | ) |
Adds multiple options
array | $options | Associative array of value->name pairs. |
Definition at line 115 of file formradio.php.
References $options, and addOption().
XoopsFormRadio::getDelimeter | ( | $encode = false | ) |
Get the delimiter of this group
bool | $encode | To sanitizer the text? |
Definition at line 148 of file formradio.php.
References $_delimeter.
Referenced by render().
XoopsFormRadio::getOptions | ( | $encode = false | ) |
Get an array with all the options
int | $encode | To sanitizer the text? potential values: 0 - skip; 1 - only for value; 2 - for both value and name |
Definition at line 130 of file formradio.php.
References $_options.
Referenced by render().
XoopsFormRadio::getValue | ( | $encode = false | ) |
Get the "value" attribute
bool | $encode | To sanitizer the text? |
Definition at line 80 of file formradio.php.
References $_value.
Referenced by render().
XoopsFormRadio::render | ( | ) |
Prepare HTML for output
Definition at line 158 of file formradio.php.
References $i, $ret, getDelimeter(), XoopsFormElement\getExtra(), XoopsFormElement\getName(), getOptions(), XoopsFormElement\getTitle(), and getValue().
XoopsFormRadio::setValue | ( | $value | ) |
Set the pre-selected value
$value | string |
Definition at line 90 of file formradio.php.
Referenced by XoopsFormRadio().
XoopsFormRadio::XoopsFormRadio | ( | $caption, | |
$name, | |||
$value = null , |
|||
$delimeter = ' ' |
|||
) |
Constructor
string | $caption | Caption |
string | $name | "name" attribute |
string | $value | Pre-selected value |
Definition at line 64 of file formradio.php.
References XoopsFormElement\setCaption(), XoopsFormElement\setName(), and setValue().
XoopsFormRadio::$_delimeter |
Definition at line 47 of file formradio.php.
Referenced by getDelimeter().
XoopsFormRadio::$_options = array() |
Definition at line 31 of file formradio.php.
Referenced by getOptions().
XoopsFormRadio::$_value = null |
Definition at line 39 of file formradio.php.
Referenced by getValue().
XoopsFormRadio::$columns |
Definition at line 55 of file formradio.php.