Agile Toolkit  4.2
Agile Toolkit is a powerful web development framework. Inspired by GUI Applications development
Controller_MVCGrid Class Reference
Inheritance diagram for Controller_MVCGrid:
AbstractController AbstractObject

Public Member Functions

 setActualFields ($fields)
 importFields ($model, $fields=undefined)
 importField ($field)
 getFieldType ($field)
 update ($form)

Data Fields

 $model = null
 $grid = null
 $type_associations

Member Function Documentation

getFieldType ( field)

Redefine this to add special handling of your own fields

importField ( field)
importFields ( model,
fields = undefined 
)
setActualFields ( fields)
update ( form)

Field Documentation

$grid = null
$model = null

Connects regular grid with a model and imports fields as columns.

In most cases the following use is sufficient $grid->setModel('SomeModel');

You can use Grid only with a single Model to simplify select.

Reimplemented from AbstractObject.

$type_associations
Initial value:
array(
        'string'=>'text',
        'int'=>'number',
        'numeric'=>'number',
        'real'=>'real',
        'money'=>'money',
        'text'=>'shorttext',
        'reference'=>'text',
        'datetime'=>'timestamp',
        'date'=>'date',
        'daytime'=>'daytime',
        'daytime_total'=>'daytime_total',
        'boolean'=>'boolean',
        'list'=>'text',
        'readonly'=>'text',
        'image'=>'text',
        'file'=>'referenece',
    )

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