XOOPS
2.6.0
|
Protected Attributes | |
$value = array() | |
Protected Attributes inherited from Xoops\Form\Element | |
$value = '' | |
Protected Attributes inherited from Xoops\Html\Attributes | |
$attributes = array() | |
Private Attributes | |
$inline | |
$options = array() | |
Additional Inherited Members | |
Public Attributes inherited from Xoops\Form\Element | |
$customValidationCode = array() | |
Definition at line 27 of file Checkbox.php.
Xoops\Form\Checkbox::__construct | ( | $caption, | |
$name, | |||
$value = null , |
|||
$inline = true |
|||
) |
Constructor
string | $caption | captiom |
string | $name | element name |
mixed | $value | Either one value as a string or an array of them. |
boolean | $inline | true for inline arrangement |
Definition at line 58 of file Checkbox.php.
References Xoops\Form\Element\$caption, Xoops\Form\Checkbox\$inline, $name, Xoops\Form\Checkbox\$value, Xoops\Html\Attributes\setAttribute(), Xoops\Form\Element\setCaption(), and Xoops\Form\Element\setValue().
Xoops\Form\Checkbox::addOption | ( | $value, | |
$name = '' |
|||
) |
Add an option
string | $value | value |
string | $name | name |
Definition at line 77 of file Checkbox.php.
References $name, and Xoops\Form\Checkbox\$value.
Referenced by CommentsCommentForm\__construct(), Xoops\Form\GroupCheckbox\__construct(), and Xoops\Form\Checkbox\addOptionArray().
Xoops\Form\Checkbox::addOptionArray | ( | $options | ) |
Add multiple Options at once
array | $options | Associative array of value->name pairs |
Definition at line 93 of file Checkbox.php.
References Xoops\Form\Checkbox\$options, and Xoops\Form\Checkbox\addOption().
Xoops\Form\Checkbox::getInline | ( | ) |
Get the position of this group
Definition at line 130 of file Checkbox.php.
Referenced by Xoops\Form\Checkbox\render().
Xoops\Form\Checkbox::getOptions | ( | $encode = 0 | ) |
Get an array with all the options
integer | $encode | encode special characters, potential values: 0 - skip 1 - only for value 2 - for both value and name |
Definition at line 112 of file Checkbox.php.
References $name, Xoops\Form\Checkbox\$options, and Xoops\Form\Checkbox\$value.
Referenced by Xoops\Form\Checkbox\render().
Xoops\Form\Checkbox::render | ( | ) |
prepare HTML for output
Definition at line 144 of file Checkbox.php.
References Xoops\Form\Element\$extra, $name, Xoops\Form\Checkbox\$value, Xoops\Form\Element\getExtra(), Xoops\Form\Checkbox\getInline(), Xoops\Form\Element\getName(), Xoops\Form\Checkbox\getOptions(), Xoops\Form\Element\getValue(), Xoops\Html\Attributes\hasAttribute(), Xoops\Form\Element\renderAttributeString(), Xoops\Html\Attributes\setAttribute(), Xoops\Form\Element\setName(), and Xoops\Html\Attributes\unsetAttribute().
Xoops\Form\Checkbox::renderValidationJS | ( | ) |
Render custom javascript validation code
Definition at line 192 of file Checkbox.php.
References XoopsLocaleEn_US\F_ENTER, Xoops\Form\Element\getCaption(), Xoops\Form\Element\getName(), and Xoops\Form\Element\isRequired().
|
private |
Definition at line 48 of file Checkbox.php.
Referenced by Xoops\Form\Checkbox\__construct().
|
private |
Definition at line 34 of file Checkbox.php.
Referenced by Xoops\Form\Checkbox\addOptionArray(), and Xoops\Form\Checkbox\getOptions().
|
protected |
Definition at line 41 of file Checkbox.php.
Referenced by Xoops\Form\GroupCheckbox\__construct(), Xoops\Form\Checkbox\__construct(), Xoops\Form\Checkbox\addOption(), Xoops\Form\Checkbox\getOptions(), and Xoops\Form\Checkbox\render().