QVCI Library 3.1
 All Classes Namespaces Functions Variables
Public Member Functions | Public Attributes | List of all members
fm_group Class Reference

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.
 

Detailed Description

Define the form group class A group could be a fieldset, but not necessarily

Constructor & Destructor Documentation

fm_group::__construct (   $parent,
  $name = '',
  $label = '' 
)

Constructor

Parameters
array | string$data

Member Function Documentation

fm_group::add ( $item,
  $after = null 
)

Add an item to a group

Parameters
object$item
string$after
fm_group::add_class (   $a_class)

Add a class to a group

Parameters
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

Parameters
string$name
fm_group::hide ( )

Make this group hidden

Returns
fm_group
fm_group::label_position (   $pos = 'before')

Set the label position

Parameters
string$pos
fm_group::layout (   $layout_model,
  $opt1 = '' 
)

Set the layout model for rendering

Parameters
string$layout_model
string$opt1
fm_group::remove (   $field)

Remove a field from a group

Parameters
object$field
fm_group::render ( )

Render the group

fm_group::style (   $s)

Set the style for group div

Parameters
string$s

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