|
XOOPS
2.6.0
|

Additional Inherited Members | |
Public Attributes inherited from Xoops\Form\Element | |
| $customValidationCode = array() | |
Protected Attributes inherited from Xoops\Form\Element | |
| $value = '' | |
Protected Attributes inherited from Xoops\Html\Attributes | |
| $attributes = array() | |
| Xoops\Form\Text::__construct | ( | $caption, | |
| $name, | |||
| $size, | |||
| $maxlength, | |||
$value = '', |
|||
$placeholder = '' |
|||
| ) |
__construct
| string | $caption | Caption |
| string | $name | name attribute |
| integer | $size | Size |
| integer | $maxlength | Maximum length of text |
| string | $value | Initial text |
| string | $placeholder | placeholder for this element. |
Definition at line 62 of file Text.php.
References Xoops\Form\Element\$caption, $name, Xoops\Form\Element\$value, Xoops\Html\Attributes\setAttribute(), Xoops\Form\Element\setCaption(), and Xoops\Form\Element\setValue().

| Xoops\Form\Text::getMaxlength | ( | ) |
Get maximum text length
Definition at line 90 of file Text.php.
References Xoops\Html\Attributes\getAttribute().

| Xoops\Form\Text::getPlaceholder | ( | ) |
Get placeholder for this element
Definition at line 100 of file Text.php.
References Xoops\Html\Attributes\getAttribute().

| Xoops\Form\Text::getSize | ( | ) |
Get size
Definition at line 80 of file Text.php.
References Xoops\Html\Attributes\getAttribute().
Referenced by Xoops\Form\DateSelect\render(), and Xoops\Form\Text\render().


| Xoops\Form\Text::render | ( | ) |
Prepare HTML for output
Definition at line 110 of file Text.php.
References Xoops\Html\Attributes\$attributes, Xoops\Form\Element\$maxcols, Xoops\Html\Attributes\addAttribute(), Xoops\Form\Element\getExtra(), Xoops\Form\Element\getMaxcols(), Xoops\Form\Element\getName(), Xoops\Form\Text\getSize(), Xoops\Form\Element\getValue(), Xoops\Form\Element\isDatalist(), and Xoops\Form\Element\renderAttributeString().
