PHP 클래스 LazyRecord\Schema\Relationship\Relationship

상속: implements IteratorAggregat\IteratorAggregate, implements ArrayAcces\ArrayAccess
파일 보기 프로젝트 열기: corneltek/lazyrecord

공개 프로퍼티들

프로퍼티 타입 설명
$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