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

Public Member Functions

 init ()
 addField ($n, $actual_field=null)
 join ($foreign_table, $master_field=null, $join_kind=null, $_foreign_alias=null)
 leftJoin ($foreign_table, $master_field=null, $join_kind=null, $_foreign_alias=null)
 hasOne ($model, $our_field=null, $display_field=null)
 hasMany ($model, $their_field=null, $our_field=null)
 set ($foreign_table, $master_field=null, $join_kind=null, $relation=null)
 beforeSave ($m)
 beforeInsert ($m, $q)
 afterInsert ($m, $id)
 beforeModify ($m, $q)
 beforeDelete ($m, $id)
 afterDelete ($m)
 beforeLoad ($m, $q=null)
 afterLoad ($m)
 afterUnload ($m)
 fieldExpr ($f)

Data Fields

 $f1 = null
 $t = null
 $expr = null
 $f2 = null
 $m2 = null
 $m1 = null
 $relation = null
 $delete_behaviour = 'cascade'

Member Function Documentation

addField ( n,
actual_field = null 
)

Second argument to addField() will specify how the field is really called

afterDelete ( m)
afterInsert ( m,
id 
)
afterLoad ( m)
afterUnload ( m)
beforeDelete ( m,
id 
)
beforeInsert ( m,
q 
)
beforeLoad ( m,
q = null 
)

Add query for the relation's ID, but then remove it from results. Remove ID when unloading.

beforeModify ( m,
q 
)
beforeSave ( m)
fieldExpr ( f)
hasMany ( model,
their_field = null,
our_field = null 
)
hasOne ( model,
our_field = null,
display_field = null 
)
init ( )

Initialize object. Always call parent

This method is called for initialization

Reimplemented from AbstractObject.

join ( foreign_table,
master_field = null,
join_kind = null,
_foreign_alias = null 
)
leftJoin ( foreign_table,
master_field = null,
join_kind = null,
_foreign_alias = null 
)
set ( foreign_table,
master_field = null,
join_kind = null,
relation = null 
)

Field Documentation

$delete_behaviour = 'cascade'
$expr = null
$f1 = null
$f2 = null
$m1 = null
$m2 = null
$relation = null
$t = null

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