Xataface  2.0alpha2
Xataface Application Framework
 All Data Structures Namespaces Files Functions Variables Groups Pages
Public Member Functions | Data Fields
HTML_QuickForm_grid Class Reference

Public Member Functions

 getName ()
 HTML_QuickForm_grid ($elementName=null, $elementLabel=null, $attributes=null)
 addField (&$fieldDef, $element, $columnPermissions)
 Adds a column to the grid.
 getColumnFieldDef ($name)
 getColumnElement ($name)
 getColumnLabels ()
 getColumnIds ()
 getCellTemplate ($column, $fieldId, $value=null, $permissions=array('view'=>1,'edit'=>1))
 getEmptyCellTemplate ($column, $fieldId)
 toHtml ()

Data Fields

 $fields = array()
 $elements = array()
 $next_row_id = 0
 $addNew = true
 $addExisting = true
 $addExistingFilters
 $delete = true
 $reorder = true
 $edit = true
 $table = null
 $defaults = array()
 $columnPermissions = array()

Detailed Description

Definition at line 12 of file grid.php.

Member Function Documentation

addField ( $fieldDef,
  $element,
  $columnPermissions 
)

Adds a column to the grid.

Parameters
array&$fieldDefThe field definition of the column to add.
HTML_QuickForm_elementThe widget to use in the column.
array$columnPermissionsThe permissions to use in the column

Definition at line 50 of file grid.php.

getCellTemplate (   $column,
  $fieldId,
  $value = null,
  $permissions = array('view'=>1,'edit'=>1) 
)

Definition at line 81 of file grid.php.

getColumnElement (   $name)

Definition at line 60 of file grid.php.

getColumnFieldDef (   $name)

Definition at line 56 of file grid.php.

getColumnIds ( )

Definition at line 72 of file grid.php.

getColumnLabels ( )

Definition at line 64 of file grid.php.

getEmptyCellTemplate (   $column,
  $fieldId 
)

Definition at line 106 of file grid.php.

getName ( )

Definition at line 31 of file grid.php.

HTML_QuickForm_grid (   $elementName = null,
  $elementLabel = null,
  $attributes = null 
)

Definition at line 33 of file grid.php.

toHtml ( )

Definition at line 127 of file grid.php.

Field Documentation

$addExisting = true

Definition at line 19 of file grid.php.

$addExistingFilters

Definition at line 20 of file grid.php.

$addNew = true

Definition at line 18 of file grid.php.

$columnPermissions = array()

Definition at line 26 of file grid.php.

$defaults = array()

Definition at line 25 of file grid.php.

$delete = true

Definition at line 21 of file grid.php.

$edit = true

Definition at line 23 of file grid.php.

$elements = array()

Definition at line 16 of file grid.php.

$fields = array()

Definition at line 15 of file grid.php.

$next_row_id = 0

Definition at line 17 of file grid.php.

$reorder = true

Definition at line 22 of file grid.php.

$table = null

Definition at line 24 of file grid.php.


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