PHP Класс LazyRecord\Schema\Relationship\Relationship

Наследование: implements IteratorAggregat\IteratorAggregate, implements ArrayAcces\ArrayAccess
Показать файл Открыть проект

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

Свойство Тип Описание
$accessor The accessor name
$data The stashed data
$onDelete
$onUpdate
$orderBy
$usingIndex
$where The SQLBuilder Condition Syntax Object

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

Метод Описание
__call ( $m, $as ) Provide dynamic cascading accessors.
__construct ( $accessor, array $data = [] )
__get ( $key )
__set ( $key, $val )
__set_state ( array $data ) To support var_export.
applyFilter ( BaseCollection &$collection )
applyOrder ( BaseCollection &$collection )
applyWhere ( BaseCollection &$collection )
by ( $column )
filter ( callback $filter ) Define filter for collection.
getForeignCollection ( )
getIterator ( ) To support foreach operation.
isHasMany ( )
isManyToMany ( )
isOneToMany ( )
isType ( $type )
newForeignCollection ( )
newForeignForeignCollection ( $junctionRelation ) : BaseCollection Resolve the junction relationship to retrieve foreign collection of the foreign collection.
newForeignModel ( )
newForeignSchema ( )
offsetExists ( $name )
offsetGet ( $name )
offsetSet ( $name, $value )
offsetUnset ( $name )
onDelete ( $action )
onUpdate ( $action )
order ( )
orderBy ( string $column, string $ordering ) Save order on the relationship.
usingIndex ( $index = true )
where ( $expr = null, array $args = [] )

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

__call() публичный метод

$relationship->foreign_schema('something') $relationship->view('something')
public __call ( $m, $as )

__construct() публичный метод

public __construct ( $accessor, array $data = [] )
$data array

__get() публичный метод

public __get ( $key )

__set() публичный метод

public __set ( $key, $val )

__set_state() публичный статический метод

To support var_export.
public static __set_state ( array $data )
$data array

applyFilter() публичный метод

public applyFilter ( BaseCollection &$collection )
$collection LazyRecord\BaseCollection

applyOrder() публичный метод

public applyOrder ( BaseCollection &$collection )
$collection LazyRecord\BaseCollection

applyWhere() публичный метод

public applyWhere ( BaseCollection &$collection )
$collection LazyRecord\BaseCollection

by() публичный метод

public by ( $column )

filter() публичный метод

Define filter for collection.
public filter ( callback $filter )
$filter callback filter callback.

getForeignCollection() публичный метод

getIterator() публичный метод

To support foreach operation.
public getIterator ( )

isHasMany() публичный метод

public isHasMany ( )

isManyToMany() публичный метод

public isManyToMany ( )

isOneToMany() публичный метод

public isOneToMany ( )

isType() публичный метод

public isType ( $type )

newForeignCollection() публичный метод

newForeignForeignCollection() публичный метод

This method is only for many-to-many relationship object.
public newForeignForeignCollection ( $junctionRelation ) : BaseCollection
Результат LazyRecord\BaseCollection The foreign foreign collection.

newForeignModel() публичный метод

public newForeignModel ( )

newForeignSchema() публичный метод

public newForeignSchema ( )

offsetExists() публичный метод

public offsetExists ( $name )

offsetGet() публичный метод

public offsetGet ( $name )

offsetSet() публичный метод

public offsetSet ( $name, $value )

offsetUnset() публичный метод

public offsetUnset ( $name )

onDelete() публичный метод

public onDelete ( $action )

onUpdate() публичный метод

public onUpdate ( $action )

order() публичный метод

public order ( )

orderBy() публичный метод

Save order on the relationship.
public orderBy ( string $column, string $ordering )
$column string
$ordering string

usingIndex() публичный метод

public usingIndex ( $index = true )

where() публичный метод

public where ( $expr = null, array $args = [] )
$args array

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

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

The accessor name
public $accessor

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

The stashed data
public $data

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

public $onDelete

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

public $onUpdate

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

public $orderBy

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

public $usingIndex

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

The SQLBuilder Condition Syntax Object
public $where