Form_Field_Group_Model Class Reference

This container model enables a group of Form_Field_Models to act a single Form_Field_Model. More...

Inheritance diagram for Form_Field_Group_Model:
Form_Field_Model

Public Member Functions

 __construct ($pretty_name, array $fields=array())
 add_field (Form_Field_Model $field)
 get_fields ()
 get_type ()
 process_data (array $raw_data, Form_Result_Model $result)

Detailed Description

This container model enables a group of Form_Field_Models to act a single Form_Field_Model.

That means that you can, for example, group together a bunch of form fields inside a conditional form field (

See also:
Form_Field_Conditional_Model), to toggle all of them at once.

Constructor & Destructor Documentation

Form_Field_Group_Model::__construct ( pretty_name,
array $  fields = array() 
)
Parameters:
$pretty_name string
$fields array

Member Function Documentation

Form_Field_Group_Model::add_field ( Form_Field_Model field  ) 
Parameters:
$field Form_Field_Model
Form_Field_Group_Model::get_fields (  ) 
Returns:
array
Form_Field_Group_Model::get_type (  ) 
Returns:
string

Reimplemented from Form_Field_Model.

Form_Field_Group_Model::process_data ( array $  raw_data,
Form_Result_Model result 
)
Parameters:
$raw_data array
$result Form_Result_Model
Exceptions:
FormException 

Reimplemented from Form_Field_Model.


The documentation for this class was generated from the following file:
 All Data Structures Functions Variables

Generated on 19 Dec 2018 for ninja by  doxygen 1.6.1