Public Member Functions |
| __construct ($label= '', $class= 'group') |
| __get ($key) |
| Magic __get method.
|
| __set ($key, $val) |
| label ($val=NULL) |
| message ($val=NULL) |
| visible ($val=FALSE) |
| Sets visibility of group.
|
| html ($template= 'forge_template', $custom=false) |
| Creates the form HTML.
|
| __construct ($action=NULL, $title= '', $method=NULL, $attr=array()) |
| Form constructor.
|
| __call ($method, $args) |
| Magic __call method.
|
| set_attr ($key, $val=NULL) |
| Set a form attribute.
|
| validate () |
| Validates the form by running each inputs validation rules.
|
| as_array ($clean=TRUE) |
| Returns the form as an array of input names and values.
|
| error_format ($string= '') |
| Changes the error message format.
|
| __toString () |
| Returns the form HTML.
|
Public Attributes |
| $method |
| $inputs = array() |
| $hidden = array() |
| $error_format = '<p class="error">{message}</p>' |
| $newline_char = "\n" |
| $visible = NULL |
Protected Attributes |
| $data |
| $template |
| $attr = array() |
Member Function Documentation
Form_Group::__get |
( |
|
$key | ) |
|
Magic __get method.
Returns the specified form element.
- Parameters
-
- Returns
- object
Reimplemented from Forge.
Form_Group::html |
( |
|
$template = 'forge_template' , |
|
|
|
$custom = false |
|
) |
| |
Creates the form HTML.
- Parameters
-
string | form view template name |
boolean | use a custom view |
- Returns
- string
Reimplemented from Forge.
Form_Group::label |
( |
|
$val = NULL | ) |
|
Form_Group::visible |
( |
|
$val = FALSE | ) |
|
Sets visibility of group.
- Author
- Michal Kliment
- Parameters
-
- Returns
- Form_Group
Member Data Documentation
Initial value: array
(
'type' => 'group',
'class' => 'group',
'label' => '',
'message' => ''
)
The documentation for this class was generated from the following file: