FORGE dropdown input library.
More...
Public Member Functions |
| __get ($key) |
| Returns form attributes.
|
| html_element () |
| Returns the form input HTML.
|
| __construct ($name) |
| Sets the input element name.
|
| __call ($method, $args) |
| Sets form attributes, or return rules.
|
| matches ($input) |
| Sets a form element that this element must match the value of.
|
| callback ($callback) |
| Sets a callback method as a rule for this input.
|
| name ($val=NULL) |
| Sets name.
|
| label ($val=NULL) |
| Sets or returns the input label.
|
| help ($val=NULL) |
| Sets help.
|
| script ($type, $val=NULL) |
| Sets script.
|
| message ($val=NULL) |
| Set or return the error message.
|
| html () |
| Runs validation and returns the element HTML.
|
| add_error ($key, $val) |
| Add an error to the input.
|
| error_messages ($func=NULL, $message=NULL) |
| Set or return the error messages.
|
| validate () |
| Validate this input based on the set rules.
|
Protected Attributes |
| $data |
| $protect = array('type') |
| $data |
| $protect = array() |
| $rules = array() |
| $matches = array() |
| $callbacks = array() |
| $is_valid |
| $errors = array() |
| $error_messages = array() |
Additional Inherited Members |
| $method |
Detailed Description
FORGE dropdown input library.
Form_Radio label(string $label) Form_Radio rules(string $rules) Form_Radio class(string $class) Form_Radio value(string $value) Form_Radio options(array $options) Form_Radio onclick(string $script)
Member Function Documentation
Form_Radio::__get |
( |
|
$key | ) |
|
Returns form attributes.
- Parameters
-
- Returns
- string
Reimplemented from Form_Input.
Form_Radio::html_element |
( |
| ) |
|
Returns the form input HTML.
- Returns
- string
Reimplemented from Form_Input.
Form_Radio::load_value |
( |
| ) |
|
|
protected |
Load the value of the input, if form data is present.
- Returns
- void
Reimplemented from Form_Input.
Member Data Documentation
Initial value: array
(
'name' => '',
'class' => 'radio',
'type' => 'radio',
'options' => array(),
'onclick' => ''
)
The documentation for this class was generated from the following file: