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])
Показать файл Открыть проект

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

Метод Описание
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() публичный Метод

public GetDiscardingDependencyOrder ( ) : integer
Результат integer

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

public GetPersistingDependencyOrder ( ) : integer
Результат integer

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