XCL Web Application Platform 2.5.0
The XoopsCube Legacy Project
|
Public Member Functions | |
__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 () | |
render () | |
getMessageForJS () | |
Data Fields | |
$_name | |
$_caption | |
$_accesskey = '' | |
$_class = '' | |
$_hidden = false | |
$_extra = '' | |
$_required = false | |
$_description = '' | |
$_id = null | |
Definition at line 14 of file formelement.php.
__construct | ( | ) |
#- constructor
Definition at line 80 of file formelement.php.
getAccessKey | ( | ) |
get the "accesskey" attribute for the element
Definition at line 154 of file formelement.php.
getAccessString | ( | $str | ) |
If the accesskey is found in the specified string, underlines it
string | $str | String where to search the accesskey occurence |
Definition at line 164 of file formelement.php.
getCaption | ( | ) |
getClass | ( | ) |
get the "class" attribute for the element
Definition at line 192 of file formelement.php.
getDescription | ( | ) |
getExtra | ( | ) |
Get the extra attributes for the element
Definition at line 286 of file formelement.php.
getId | ( | ) |
get the "id" attribute for the element. If ID is empty, return getName().
Definition at line 135 of file formelement.php.
getMessageForJS | ( | ) |
Gets a message for javascript in the specific member function of XoopsForm class.
Definition at line 306 of file formelement.php.
getName | ( | $encode = true | ) |
get the "name" attribute for the element
bool | encode? |
Definition at line 115 of file formelement.php.
isBreak | ( | ) |
Definition at line 256 of file formelement.php.
isContainer | ( | ) |
Is this element a container of other elements?
Reimplemented in XoopsFormElementTray.
Definition at line 94 of file formelement.php.
isHidden | ( | ) |
render | ( | ) |
Generates output for the element.
This method is abstract and must be overwritten by the child classes. @abstract
Reimplemented in XoopsFormButton, XoopsFormCheckBox, XoopsFormColor, XoopsFormDhtmlTextArea, XoopsFormElementTray, XoopsFormFile, XoopsFormHidden, XoopsFormLabel, XoopsFormPassword, XoopsFormRadio, XoopsFormSelect, XoopsFormText, XoopsFormTextArea, XoopsFormTextDateSelect, and XoopsGroupFormCheckBox.
Definition at line 299 of file formelement.php.
setAccessKey | ( | $key | ) |
set the "accesskey" attribute for the element
string | $key | "accesskey" attribute for the element |
Definition at line 145 of file formelement.php.
setCaption | ( | $caption | ) |
set the caption for the element
string | $caption |
Definition at line 202 of file formelement.php.
setClass | ( | $class | ) |
set the "class" attribute for the element
$class |
Definition at line 178 of file formelement.php.
setDescription | ( | $description | ) |
set the element's description
string | $description |
Definition at line 222 of file formelement.php.
setExtra | ( | $extra, | |
$replace = false ) |
Add extra attributes to the element.
This string will be inserted verbatim and unvalidated in the element's tag. Know what you are doing!
string | $extra | |
bool | $replace | If true, passed string will replace current content otherwise it will be appended to it |
Definition at line 271 of file formelement.php.
setHidden | ( | ) |
flag the element as "hidden"
Definition at line 241 of file formelement.php.
setId | ( | $id | ) |
setName | ( | $name | ) |
set the "name" attribute for the element
string | $name | "name" attribute for the element |
Definition at line 104 of file formelement.php.
XoopsFormElement | ( | ) |
Definition at line 84 of file formelement.php.
$_accesskey = '' |
Definition at line 36 of file formelement.php.
$_caption |
Definition at line 30 of file formelement.php.
$_class = '' |
Definition at line 42 of file formelement.php.
$_description = '' |
Definition at line 66 of file formelement.php.
$_extra = '' |
Definition at line 54 of file formelement.php.
$_hidden = false |
Definition at line 48 of file formelement.php.
$_id = null |
Definition at line 72 of file formelement.php.
$_name |
Definition at line 24 of file formelement.php.
$_required = false |
Definition at line 60 of file formelement.php.