PHP 인터페이스 Storm\Core\Relational\IRelation

NOTE: The parent cardinality does not matter as retreiving related rows is always does in the context of many parent rows while persisting relating rows is always done in the context of one parent row.
저자: Elliot Levin ([email protected])
파일 보기 프로젝트 열기: timetoogo/penumbra

공개 메소드들

메소드 설명
AddRelationToRequest ( Request $Request, array $ParentRows = null ) : void Adds the relation constraint to the supplied request.
GetDiscardingDependencyOrder ( ) : integer
GetPersistingDependencyOrder ( ) : integer
GetRelationalParentColumns ( ) : void Adds the columns required by the relation to the parent request.
GetTable ( ) : Storm\Core\Relational\ITable Gets the related table.
MapRelationalParentDataToRelatedData ( ColumnData $ParentRow, ColumnData $RelatedRow ) : void Map the relational data (foreign key data) from the parent row to the related row.
RelationRequest ( array $ParentRows = null ) : Request Constructs a request that is constrained by this relation.

메소드 상세

AddRelationToRequest() 공개 메소드

If parent rows are specified the request will be constrained such that it only loads the related rows of the parents.
public AddRelationToRequest ( Request $Request, array $ParentRows = null ) : void
$Request Request
$ParentRows array The parent rows
리턴 void

GetDiscardingDependencyOrder() 공개 메소드

GetPersistingDependencyOrder() 공개 메소드

GetRelationalParentColumns() 공개 메소드

Adds the columns required by the relation to the parent request.
public GetRelationalParentColumns ( ) : void
리턴 void

GetTable() 공개 메소드

Gets the related table.
public GetTable ( ) : Storm\Core\Relational\ITable
리턴 Storm\Core\Relational\ITable

MapRelationalParentDataToRelatedData() 공개 메소드

Map the relational data (foreign key data) from the parent row to the related row.
public MapRelationalParentDataToRelatedData ( ColumnData $ParentRow, ColumnData $RelatedRow ) : void
$ParentRow ColumnData The parent row
$RelatedRow ColumnData The related row
리턴 void

RelationRequest() 공개 메소드

If parent rows are specified the request will be constrained such that it only loads the related rows of the parents.
public RelationRequest ( array $ParentRows = null ) : Request
$ParentRows array The parent rows
리턴 Request