Public Member Functions | |
| __construct ($parent, $name='', $label='') | |
| add (&$item, $after=null) | |
| add_class ($a_class) | |
| get_form () | |
| get_group ($name) | |
| hide () | |
| label_position ($pos='before') | |
| layout ($layout_model, $opt1='') | |
| remove ($field) | |
| style ($s) | |
| render () | |
Public Attributes | |
| $name = '' | |
| Group name (DOM ID) | |
| $classes = array() | |
| HTML classes. | |
| $type = 'group' | |
| The field type. | |
| $label = '' | |
| Group label for display. | |
| $group = null | |
| The parent group that this group belongs to. | |
| $parent = null | |
| The parent oblect. | |
| $hidden = false | |
| The group is hidden. | |
Define the form group class A group could be a fieldset, but not necessarily
| fm_group::__construct | ( | $parent, | |
$name = '', |
|||
$label = '' |
|||
| ) |
Constructor
| array | string | $data |
| fm_group::add | ( | & | $item, |
$after = null |
|||
| ) |
Add an item to a group
| object | $item | |
| string | $after |
| fm_group::add_class | ( | $a_class | ) |
Add a class to a group
| string | $a_class |
| fm_group::get_form | ( | ) |
Get the top-level form object
| fm_group::get_group | ( | $name | ) |
Find a group by name and return it
| string | $name |
| fm_group::hide | ( | ) |
Make this group hidden
| fm_group::label_position | ( | $pos = 'before' | ) |
Set the label position
| string | $pos |
| fm_group::layout | ( | $layout_model, | |
$opt1 = '' |
|||
| ) |
Set the layout model for rendering
| string | $layout_model | |
| string | $opt1 |
| fm_group::remove | ( | $field | ) |
Remove a field from a group
| object | $field |
| fm_group::render | ( | ) |
Render the group
| fm_group::style | ( | $s | ) |
Set the style for group div
| string | $s |
1.8.5