FreenetIS
 All Classes Namespaces Functions Variables Pages
Public Member Functions | Public Attributes | Protected Attributes | List of all members
Form_Group Class Reference
Inheritance diagram for Form_Group:
Forge

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.
- Public Member Functions inherited from Forge
 __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
- Public Attributes inherited from Forge
 $inputs = array()
 $hidden = array()
 $error_format = '<p class="error">{message}</p>'
 $newline_char = "\n"
 $visible = NULL

Protected Attributes

 $data
- Protected Attributes inherited from Forge
 $template
 $attr = array()

Member Function Documentation

Form_Group::__get (   $key)

Magic __get method.

Returns the specified form element.

Parameters
stringunique input name
Returns
object

Reimplemented from Forge.

Form_Group::html (   $template = 'forge_template',
  $custom = false 
)

Creates the form HTML.

Parameters
stringform view template name
booleanuse a custom view
Returns
string

Reimplemented from Forge.

Form_Group::label (   $val = NULL)
Parameters
string$val
Returns
Form_Group
Form_Group::visible (   $val = FALSE)

Sets visibility of group.

Author
Michal Kliment
Parameters
type$val
Returns
Form_Group

Member Data Documentation

Form_Group::$data
protected
Initial value:
array
(
'type' => 'group',
'class' => 'group',
'label' => '',
'message' => ''
)

The documentation for this class was generated from the following file: