UIElement Class Reference
List of all members.
Member Function Documentation
UIElement::attr |
( |
$ |
attr, |
|
|
$ |
value = null | |
|
) |
| | |
Sets the value of an attribute If the $value is null, the value of the attr is instead returned
- Parameters:
-
| string | $attr The attribute to set/return |
| string | $value The value of the attribute |
- Returns:
- Returns the value of the attribute
UIElement::insertAfter |
( |
$ |
element |
) |
|
UIElement::insertBefore |
( |
$ |
element |
) |
|
UIElement::isValidationSet |
( |
$ |
validation |
) |
|
Checks whether a validation is set or not
- Parameters:
-
| int | $validation Which validation to check for (use constants ie. VALIDATE_NOSPACES) |
- Returns:
- boolean Whether or not the validation is set or not
Returns this UIElement's parent
- Returns:
- UIElement this UIElement's parent
UIElement::registerValidation |
( |
$ |
validation |
) |
|
Registers a validation for this UIElements
- Parameters:
-
UIElement::renderAttr |
( |
|
) |
[protected] |
Returns a string for the attributes as html attributes
- Returns:
- string The attributes as html attributes
Resets the UIElement's value to the default, and unsets the $_POST variable's index
Reimplemented in UIElementArray.
UIElement::setPOST |
( |
$ |
index |
) |
|
Sets the specified POST value to this UIElement's value (used for preparing API calls)
- Parameters:
-
| string | $index The POST value to set |
UIElement::validate |
( |
$ |
value = false |
) |
|
Returns an array containing all the failed validations if $value is false, then use the $this->value, otherwise use $value
- Parameters:
-
| boolean | $value Whether or not to use $this->value or $value |
- Returns:
- array An Array containing all the failed validations
The documentation for this class was generated from the following file:
- extensions/UI/UIElement.php