PHP Class atk4\data\Join_SQL

Inheritance: extends Join, implements atk4\dsql\Expressionable
Show file Open project: atk4/data

Public Properties

Property Type Description
$foreign_alias A short symbolic name that will be used as an alias for the joined table.

Protected Properties

Property Type Description
$kind You can specify your own type of join by passing ['kind'=>'right'] as second argument to join().
$on By default we create ON expression ourselves, but if you want to specify it, use the 'on' property.

Public Methods

Method Description
afterInsert ( $model, $id )
afterLoad ( $model )
beforeInsert ( $model, &$data )
beforeUpdate ( $model, &$data )
doDelete ( $model, $id )
dsql ( )
getDSQLExpression ( $q )
getDesiredName ( ) Will use either foreign_alias or create #join_.
init ( ) This method is to figure out stuff.
initSelectQuery ( $model, $query ) Before query is executed, this method will be called.

Method Details

afterInsert() public method

public afterInsert ( $model, $id )

afterLoad() public method

public afterLoad ( $model )

beforeInsert() public method

public beforeInsert ( $model, &$data )

beforeUpdate() public method

public beforeUpdate ( $model, &$data )

doDelete() public method

public doDelete ( $model, $id )

dsql() public method

public dsql ( )

getDSQLExpression() public method

public getDSQLExpression ( $q )

getDesiredName() public method

Will use either foreign_alias or create #join_.
public getDesiredName ( )

init() public method

This method is to figure out stuff.
public init ( )

initSelectQuery() public method

Before query is executed, this method will be called.
public initSelectQuery ( $model, $query )

Property Details

$foreign_alias public property

A short symbolic name that will be used as an alias for the joined table.
public $foreign_alias

$kind protected property

You can specify your own type of join by passing ['kind'=>'right'] as second argument to join().
protected $kind

$on protected property

By default we create ON expression ourselves, but if you want to specify it, use the 'on' property.
protected $on