PHP Класс atk4\data\Join_SQL

Наследование: extends Join, implements atk4\dsql\Expressionable
Показать файл Открыть проект

Открытые свойства

Свойство Тип Описание
$foreign_alias A short symbolic name that will be used as an alias for the joined table.

Защищенные свойства (Protected)

Свойство Тип Описание
$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.

Открытые методы

Метод Описание
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.

Описание методов

afterInsert() публичный Метод

public afterInsert ( $model, $id )

afterLoad() публичный Метод

public afterLoad ( $model )

beforeInsert() публичный Метод

public beforeInsert ( $model, &$data )

beforeUpdate() публичный Метод

public beforeUpdate ( $model, &$data )

doDelete() публичный Метод

public doDelete ( $model, $id )

dsql() публичный Метод

public dsql ( )

getDSQLExpression() публичный Метод

public getDSQLExpression ( $q )

getDesiredName() публичный Метод

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

init() публичный Метод

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

initSelectQuery() публичный Метод

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

Описание свойств

$foreign_alias публичное свойство

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

$kind защищенное свойство

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

$on защищенное свойство

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