PHP Class Field_SQL_Relation, atk4

Inheritance: extends Field_Base
Exibir arquivo Open project: atk4/atk4

Public Properties

Property Type Description
$joinAlias
$joinKind
$leftField
$leftTable
$model SQL_Model
$referenceType
$rightField
$rightTable

Protected Properties

Property Type Description
$behaviour

Public Methods

Method Description
addField ( $name, $alias = null )
deleteInForeignTable ( $model )
hasMany ( $model, $their_field = UNDEFINED, $our_field = UNDEFINED, $reference_name = null )
hasOne ( $model, $our_field = UNDEFINED, $field_class = UNDEFINED )
insertInForeingTable ( $model )
join ( $foreign_table, $master_field = null, $join_kind = null, $_foreign_alias = null )
setBehaviour ( $behaviour )
setJoinAlias ( $joinAlias )
setJoinKind ( $joinKind )
setLeftField ( $leftField )
setLeftTable ( $table ) [leftTable] [joinKind] [rightTable] as [joinAlias] on [leftTable].[leftField] = [rightTable].[rightField].
setModel ( $model )
setRightField ( $rightField )
setRightTable ( $rightTable )
updateInForeingTable ( $model )

Method Details

addField() public method

public addField ( $name, $alias = null )

deleteInForeignTable() public method

public deleteInForeignTable ( $model )

hasMany() public method

public hasMany ( $model, $their_field = UNDEFINED, $our_field = UNDEFINED, $reference_name = null )

hasOne() public method

public hasOne ( $model, $our_field = UNDEFINED, $field_class = UNDEFINED )

insertInForeingTable() public method

public insertInForeingTable ( $model )

join() public method

public join ( $foreign_table, $master_field = null, $join_kind = null, $_foreign_alias = null )

setBehaviour() public method

public setBehaviour ( $behaviour )

setJoinAlias() public method

public setJoinAlias ( $joinAlias )

setJoinKind() public method

public setJoinKind ( $joinKind )

setLeftField() public method

public setLeftField ( $leftField )

setLeftTable() public method

[leftTable] [joinKind] [rightTable] as [joinAlias] on [leftTable].[leftField] = [rightTable].[rightField].
public setLeftTable ( $table )

setModel() public method

public setModel ( $model )

setRightField() public method

public setRightField ( $rightField )

setRightTable() public method

public setRightTable ( $rightTable )

updateInForeingTable() public method

public updateInForeingTable ( $model )

Property Details

$behaviour protected_oe property

protected $behaviour

$joinAlias public_oe property

public $joinAlias

$joinKind public_oe property

public $joinKind

$leftField public_oe property

public $leftField

$leftTable public_oe property

public $leftTable

$model public_oe property

public SQL_Model $model
return SQL_Model

$referenceType public_oe property

public $referenceType

$rightField public_oe property

public $rightField

$rightTable public_oe property

public $rightTable