|
XOOPS
2.6.0
|

Public Member Functions | |
| 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) | |
Public Attributes | |
| $customValidationCode = array() | |
Protected Attributes | |
| $value = '' | |
Protected Attributes inherited from Xoops\Html\Attributes | |
| $attributes = array() | |
Private Attributes | |
| $caption = '' | |
| $datalist | |
| $description = '' | |
| $extra = array() | |
| $maxcols = 6 | |
| $pattern_description | |
Definition at line 28 of file Element.php.
| Xoops\Form\Element::getAccessKey | ( | ) |
getAccessKey - get the "accesskey" attribute for the element
Definition at line 252 of file Element.php.
References Xoops\Html\Attributes\getAttribute().
Referenced by Xoops\Form\Element\getAccessString().


| Xoops\Form\Element::getAccessString | ( | $str | ) |
getAccessString - If the accesskey is found in the specified string, underlines it
| string | $str | string to add accesskey highlight to |
Definition at line 264 of file Element.php.
References Xoops\Form\Element\getAccessKey().

| Xoops\Form\Element::getCaption | ( | ) |
getCaption - get the caption for the element
Definition at line 406 of file Element.php.
References Xoops\Form\Element\$caption.
Referenced by Xoops\Form\ColorPicker\renderValidationJS(), XoopsFormTinymce4\renderValidationJS(), Xoops\Form\Editor\renderValidationJS(), XoopsFormTinymce\renderValidationJS(), Xoops\Form\Checkbox\renderValidationJS(), Xoops\Form\Select\renderValidationJS(), and Xoops\Form\Element\renderValidationJS().

| Xoops\Form\Element::getClass | ( | ) |
getClass - get the "class" attribute for the element
Definition at line 293 of file Element.php.
References Xoops\Html\Attributes\getAttribute().
Referenced by Xoops\Form\ButtonTray\render(), and Xoops\Form\DhtmlTextArea\render().


| Xoops\Form\Element::getDatalist | ( | ) |
getDatalist - get the datalist attribute for the element
Definition at line 363 of file Element.php.
References Xoops\Form\Element\$datalist, and Xoops\Form\Element\getName().

| Xoops\Form\Element::getDescription | ( | $encode = false | ) |
getDescription - get the element's description
| boolean | $encode | True to encode special characters |
Definition at line 461 of file Element.php.
References Xoops\Form\Element\$description.
| Xoops\Form\Element::getExtra | ( | $encode = false | ) |
getExtra - Get the extra attributes for the element
| boolean | $encode | True to encode special characters |
Definition at line 539 of file Element.php.
References Xoops\Form\Element\$value.
Referenced by Xoops\Form\File\render(), Xoops\Form\Hidden\render(), Xoops\Form\DateSelect\render(), Xoops\Form\Button\render(), Xoops\Form\ButtonTray\render(), Xoops\Form\TextArea\render(), Xoops\Form\Text\render(), Xoops\Form\Password\render(), Xoops\Form\Checkbox\render(), Xoops\Form\Radio\render(), Xoops\Form\DhtmlTextArea\render(), and Xoops\Form\Select\render().

| Xoops\Form\Element::getMaxcols | ( | ) |
getMaxcols - get the maximum columns for a field
Definition at line 585 of file Element.php.
References Xoops\Form\Element\$maxcols.
Referenced by Xoops\Form\DateSelect\render(), Xoops\Form\TextArea\render(), Xoops\Form\Text\render(), Xoops\Form\Password\render(), and Xoops\Form\DhtmlTextArea\render().

| Xoops\Form\Element::getName | ( | ) |
getName - get the "name" attribute for the element
Definition at line 230 of file Element.php.
References Xoops\Html\Attributes\getAttribute().
Referenced by XoopsFormTinymce\__construct(), FormDhtmlTextArea\__construct(), XoopsFormTinymce4\__construct(), Xoops\Form\DhtmlTextArea\__construct(), Xoops\Form\DhtmlTextArea\codeIcon(), Xoops\Form\DhtmlTextArea\fontArray(), Xoops\Form\Element\getDatalist(), Xoops\Form\File\render(), Xoops\Form\ColorPicker\render(), Xoops\Form\Label\render(), Xoops\Form\DateSelect\render(), Xoops\Form\TabTray\render(), Xoops\Form\GroupFormCheckbox\render(), Xoops\Form\Text\render(), Xoops\Form\Checkbox\render(), Xoops\Form\Radio\render(), Xoops\Form\DhtmlTextArea\render(), Xoops\Form\GroupFormCheckbox\renderOptionTree(), Xoops\Form\ColorPicker\renderValidationJS(), XoopsFormTinymce4\renderValidationJS(), Xoops\Form\Editor\renderValidationJS(), XoopsFormTinymce\renderValidationJS(), Xoops\Form\Checkbox\renderValidationJS(), Xoops\Form\Select\renderValidationJS(), and Xoops\Form\Element\renderValidationJS().


| Xoops\Form\Element::getPattern | ( | ) |
getPattern - get the "pattern" attribute for the element
Definition at line 321 of file Element.php.
References Xoops\Html\Attributes\getAttribute().

| Xoops\Form\Element::getPatternDescription | ( | ) |
getPatternDescription - get the "pattern_description"
Definition at line 331 of file Element.php.
References Xoops\Form\Element\$pattern_description.
| Xoops\Form\Element::getTitle | ( | ) |
getTitle - get the title for the element
Definition at line 429 of file Element.php.
References Xoops\Html\Attributes\getAttribute(), and Xoops\Html\Attributes\hasAttribute().
Referenced by Xoops\Form\DhtmlTextArea\render(), and Xoops\Form\Element\renderAttributeString().


| Xoops\Form\Element::getValue | ( | $encode = false | ) |
getValue - Get an array of pre-selected values
| boolean | $encode | True to encode special characters |
Definition at line 180 of file Element.php.
References Xoops\Form\Element\$value.
Referenced by FormDhtmlTextArea\__construct(), Xoops\Form\DhtmlTextArea\__construct(), Xoops\Form\ColorPicker\render(), Xoops\Form\Raw\render(), Xoops\Form\Label\render(), Xoops\Form\Hidden\render(), Xoops\Form\DateSelect\render(), Xoops\Form\Button\render(), Xoops\Form\ButtonTray\render(), Xoops\Form\TextArea\render(), Xoops\Form\Text\render(), Xoops\Form\Password\render(), Xoops\Form\Checkbox\render(), Xoops\Form\DhtmlTextArea\render(), and Xoops\Form\Select\render().

| Xoops\Form\Element::isDatalist | ( | ) |
isDatalist - is there a datalist for the element?
Definition at line 381 of file Element.php.
Referenced by Xoops\Form\DateSelect\render(), and Xoops\Form\Text\render().

| Xoops\Form\Element::isHidden | ( | ) |
isHidden - is this a hidden element?
Definition at line 481 of file Element.php.
References Xoops\Html\Attributes\hasAttribute().

| Xoops\Form\Element::isRequired | ( | ) |
isRequired - is entry required for this element?
Definition at line 505 of file Element.php.
References Xoops\Html\Attributes\hasAttribute().
Referenced by Xoops\Form\DhtmlTextArea\render(), XoopsFormTinymce4\renderValidationJS(), Xoops\Form\Editor\renderValidationJS(), XoopsFormTinymce\renderValidationJS(), Xoops\Form\Checkbox\renderValidationJS(), Xoops\Form\Select\renderValidationJS(), and Xoops\Form\Element\renderValidationJS().


|
abstract |
render - Generates output for the element.
This method is abstract and must be overwritten by the child classes.
| Xoops\Form\Element::renderAttributeString | ( | ) |
render attributes as a string to include in HTML output
Definition at line 156 of file Element.php.
References $id, Xoops\Html\Attributes\getAttribute(), Xoops\Form\Element\getTitle(), Xoops\Html\Attributes\hasAttribute(), and Xoops\Html\Attributes\setAttribute().
Referenced by Xoops\Form\File\render(), Xoops\Form\Hidden\render(), Xoops\Form\DateSelect\render(), Xoops\Form\Button\render(), Xoops\Form\ButtonTray\render(), Xoops\Form\TextArea\render(), Xoops\Form\Text\render(), Xoops\Form\Password\render(), Xoops\Form\Checkbox\render(), Xoops\Form\Radio\render(), and Xoops\Form\Select\render().


| Xoops\Form\Element::renderValidationJS | ( | ) |
renderValidationJS - Render custom javascript validation code
Definition at line 556 of file Element.php.
References XoopsLocaleEn_US\F_ENTER, Xoops\Form\Element\getCaption(), Xoops\Form\Element\getName(), and Xoops\Form\Element\isRequired().

| Xoops\Form\Element::setAccessKey | ( | $key | ) |
setAccessKey - set the accesskey attribute for the element
| string | $key | "accesskey" attribute for the element |
Definition at line 242 of file Element.php.
References Xoops\Html\Attributes\setAttribute().

| Xoops\Form\Element::setCaption | ( | $caption | ) |
setCaption - set the caption for the element
| string | $caption | caption for element |
Definition at line 396 of file Element.php.
References Xoops\Form\Element\$caption.
Referenced by Xoops\Form\File\__construct(), Xoops\Form\Tab\__construct(), Xoops\Form\Hidden\__construct(), Xoops\Form\Label\__construct(), Xoops\Form\Button\__construct(), Xoops\Form\TabTray\__construct(), Xoops\Form\Captcha\__construct(), Xoops\Form\ElementTray\__construct(), Xoops\Form\GroupFormCheckbox\__construct(), Xoops\Form\Radio\__construct(), Xoops\Form\Checkbox\__construct(), Xoops\Form\TextArea\__construct(), Xoops\Form\Text\__construct(), Xoops\Form\Password\__construct(), and Xoops\Form\Select\__construct().

| Xoops\Form\Element::setClass | ( | $class | ) |
setClass - set the "class" attribute for the element
| string | $class | "class" attribute for the element |
Definition at line 283 of file Element.php.
References Xoops\Html\Attributes\addAttribute().
Referenced by XoopsFormTinymce\__construct().


| Xoops\Form\Element::setDatalist | ( | $datalist | ) |
setDatalist - set the datalist attribute for the element
| string | $datalist | datalist attribute for the element |
Definition at line 347 of file Element.php.
References Xoops\Form\Element\$datalist.
| Xoops\Form\Element::setDescription | ( | $description | ) |
setDescription - set the element's description
| string | $description | description |
Definition at line 449 of file Element.php.
References Xoops\Form\Element\$description.
Referenced by MenusMenus_menuForm\__construct().

| Xoops\Form\Element::setExtra | ( | $extra, | |
$replace = false |
|||
| ) |
setExtra - 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 | extra raw text to insert into form |
| boolean | $replace | If true, passed string will replace current content, otherwise it will be appended to it |
Definition at line 522 of file Element.php.
References Xoops\Form\Element\$extra.
Referenced by Xoops\Form\ButtonTray\__construct(), and Xoops\Form\ColorPicker\render().

| Xoops\Form\Element::setHidden | ( | ) |
setHidden - flag the element as "hidden"
Definition at line 471 of file Element.php.
References Xoops\Html\Attributes\setAttribute().
Referenced by Xoops\Form\Hidden\__construct(), and Xoops\Form\Captcha\__construct().


| Xoops\Form\Element::setName | ( | $name | ) |
setName - set the "name" attribute for the element
| string | $name | "name" attribute for the element |
Definition at line 220 of file Element.php.
References $name, and Xoops\Html\Attributes\setAttribute().
Referenced by Xoops\Form\Tab\__construct(), Xoops\Form\Label\__construct(), Xoops\Form\TabTray\__construct(), Xoops\Form\Captcha\__construct(), Xoops\Form\ElementTray\__construct(), Xoops\Form\GroupFormCheckbox\__construct(), and Xoops\Form\Checkbox\render().


| Xoops\Form\Element::setPattern | ( | $pattern, | |
$pattern_description = '' |
|||
| ) |
setPattern - set the "pattern" attribute for the element
| string | $pattern | pattern attribute for the element |
| string | $pattern_description | pattern description |
Definition at line 310 of file Element.php.
References Xoops\Form\Element\$pattern_description, and Xoops\Html\Attributes\setAttribute().
Referenced by UserrankRanksForm\__construct(), Xoops\Form\Url\__construct(), and Xoops\Form\Mail\__construct().


| Xoops\Form\Element::setRequired | ( | $bool = true | ) |
setRequired - set entry required
| boolean | $bool | true to set required entry for this element |
Definition at line 493 of file Element.php.
References Xoops\Html\Attributes\setAttribute().
Referenced by Xoops\Form\ElementTray\addElement(), and Xoops\Form\Form\addElement().


| Xoops\Form\Element::setTitle | ( | $title | ) |
setTitle - set the title for the element
| string | $title | title for element |
Definition at line 419 of file Element.php.
References Xoops\Html\Attributes\setAttribute().

| Xoops\Form\Element::setValue | ( | $value | ) |
setValue - Set pre-selected values
| mixed | $value | value to assign to this element |
Definition at line 199 of file Element.php.
References Xoops\Form\Element\$value.
Referenced by Xoops\Form\Hidden\__construct(), Xoops\Form\Label\__construct(), Xoops\Form\Raw\__construct(), Xoops\Form\Button\__construct(), Xoops\Form\ButtonTray\__construct(), Xoops\Form\GroupFormCheckbox\__construct(), Xoops\Form\Radio\__construct(), Xoops\Form\Checkbox\__construct(), Xoops\Form\TextArea\__construct(), Xoops\Form\Text\__construct(), Xoops\Form\Password\__construct(), and Xoops\Form\Select\__construct().

|
private |
Definition at line 55 of file Element.php.
Referenced by Xoops\Form\File\__construct(), Xoops\Form\Tab\__construct(), Xoops\Form\ColorPicker\__construct(), Xoops\Form\Label\__construct(), Xoops\Form\SelectMatchOption\__construct(), Xoops\Form\SelectTheme\__construct(), Xoops\Form\DateSelect\__construct(), Xoops\Form\DateTime\__construct(), Xoops\Form\SelectCountry\__construct(), Xoops\Form\Button\__construct(), Xoops\Form\SelectLanguage\__construct(), Xoops\Form\SelectLocale\__construct(), Xoops\Form\GroupCheckbox\__construct(), Xoops\Form\SelectTimeZone\__construct(), Xoops\Form\Url\__construct(), Xoops\Form\Mail\__construct(), Xoops\Form\RadioYesNo\__construct(), Xoops\Form\SelectGroup\__construct(), Xoops\Form\TabTray\__construct(), Xoops\Form\SelectUser\__construct(), Xoops\Form\Editor\__construct(), Xoops\Form\Captcha\__construct(), Xoops\Form\ElementTray\__construct(), Xoops\Form\GroupFormCheckbox\__construct(), Xoops\Form\Radio\__construct(), Xoops\Form\Checkbox\__construct(), Xoops\Form\TextArea\__construct(), Xoops\Form\Text\__construct(), Xoops\Form\Password\__construct(), Xoops\Form\Select\__construct(), Xoops\Form\DhtmlTextArea\__construct(), Xoops\Form\Element\getCaption(), and Xoops\Form\Element\setCaption().
| Xoops\Form\Element::$customValidationCode = array() |
Definition at line 41 of file Element.php.
|
private |
Definition at line 93 of file Element.php.
Referenced by Xoops\Form\Element\getDatalist(), and Xoops\Form\Element\setDatalist().
|
private |
Definition at line 121 of file Element.php.
Referenced by Xoops\Form\Element\getDescription(), Xoops\Form\Tab\render(), and Xoops\Form\Element\setDescription().
|
private |
Definition at line 107 of file Element.php.
Referenced by Xoops\Form\TabTray\render(), Xoops\Form\SelectEditor\render(), Xoops\Form\Checkbox\render(), Xoops\Form\Radio\render(), Xoops\Form\DhtmlTextArea\render(), Xoops\Form\Select\render(), and Xoops\Form\Element\setExtra().
|
private |
Definition at line 139 of file Element.php.
Referenced by Xoops\Form\Element\getMaxcols(), Xoops\Form\DateSelect\render(), Xoops\Form\TextArea\render(), Xoops\Form\Text\render(), Xoops\Form\Password\render(), and Xoops\Form\DhtmlTextArea\render().
|
private |
Definition at line 85 of file Element.php.
Referenced by Xoops\Form\Element\getPatternDescription(), and Xoops\Form\Element\setPattern().
|
protected |
Definition at line 131 of file Element.php.
Referenced by Xoops\Form\Hidden\__construct(), Xoops\Form\ColorPicker\__construct(), Xoops\Form\Label\__construct(), Xoops\Form\DateTime\__construct(), Xoops\Form\Raw\__construct(), Xoops\Form\Button\__construct(), Xoops\Form\DateSelect\__construct(), Xoops\Form\Url\__construct(), Xoops\Form\Mail\__construct(), Xoops\Form\SelectUser\__construct(), Xoops\Form\ButtonTray\__construct(), Xoops\Form\TextArea\__construct(), Xoops\Form\Text\__construct(), Xoops\Form\Password\__construct(), Xoops\Form\DhtmlTextArea\__construct(), Xoops\Form\Element\getExtra(), Xoops\Form\Element\getValue(), and Xoops\Form\Element\setValue().