PHP Класс Storm\Core\Relational\Transaction

Автор: Elliot Levin ([email protected])
Показать файл Открыть проект Примеры использования класса

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

Метод Описание
Discard ( PrimaryKey $PrimaryKey ) : void Discard a row from its primary key within the transaction.
DiscardAll ( array $PrimaryKeys ) : void Discard an array of rows from their primary keys within the transaction.
DiscardWhere ( Criterion $Criterion ) : void Discard rows if they match the supplied criterion.
Execute ( Procedure $Procedure ) : void Add a procedure to be executed within the transaction.
GetDiscardedCriteria ( ) : Criterion[]
GetDiscardedPrimaryKeyGroups ( ) : PrimaryKey[][]
GetDiscardedPrimaryKeys ( ) : PrimaryKey[]
GetPersistedRowGroups ( ) : Row[][]
GetPersistedRows ( ) : Row[]
GetProcedures ( ) : Procedure[]
Persist ( Row $Row ) : void Persist a row within the transaction.
PersistAll ( array $Rows ) : void Persist an array of rows within the transaction.
SubscribeToPostPersistEvent ( Storm\Core\Relational\ITable $Table, callable $Event ) : void Subscribe a callback to after the supplied row was persisted.
SubscribeToPrePersistEvent ( Storm\Core\Relational\ITable $Table, callable $Event ) Subscribe a callback to when the supplied row will be persisted.
TriggerPostPersistEvent ( Storm\Core\Relational\ITable $Table ) : void Trigger the post persist callbacks for the supplied rows
TriggerPrePersistEvent ( Storm\Core\Relational\ITable $Table ) : void Trigger the pre persist callbacks for the supplied rows
__construct ( )

Приватные методы

Метод Описание
AddEvent ( Map $EventMap, objecy $Key, callable $Event ) : void Add an event to an event map
TriggerEvents ( Map $EventMap, object $Key, array $CustomArguments = [] ) : void Trigger all events in an event map with a specific key.

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

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

Discard a row from its primary key within the transaction.
public Discard ( PrimaryKey $PrimaryKey ) : void
$PrimaryKey PrimaryKey The primary key to discard
Результат void

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

Discard an array of rows from their primary keys within the transaction.
public DiscardAll ( array $PrimaryKeys ) : void
$PrimaryKeys array The primary keys to discard
Результат void

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

Discard rows if they match the supplied criterion.
public DiscardWhere ( Criterion $Criterion ) : void
$Criterion Criterion The criterion to match
Результат void

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

Add a procedure to be executed within the transaction.
public Execute ( Procedure $Procedure ) : void
$Procedure Procedure The procedure to execute
Результат void

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

public GetDiscardedCriteria ( ) : Criterion[]
Результат Criterion[]

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

public GetDiscardedPrimaryKeyGroups ( ) : PrimaryKey[][]
Результат PrimaryKey[][]

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

public GetDiscardedPrimaryKeys ( ) : PrimaryKey[]
Результат PrimaryKey[]

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

public GetPersistedRowGroups ( ) : Row[][]
Результат Row[][]

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

public GetPersistedRows ( ) : Row[]
Результат Row[]

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

public GetProcedures ( ) : Procedure[]
Результат Procedure[]

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

Persist a row within the transaction.
public Persist ( Row $Row ) : void
$Row Row The row to persist
Результат void

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

Persist an array of rows within the transaction.
public PersistAll ( array $Rows ) : void
$Rows array The rows to persist
Результат void

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

Subscribe a callback to after the supplied row was persisted.
public SubscribeToPostPersistEvent ( Storm\Core\Relational\ITable $Table, callable $Event ) : void
$Table Storm\Core\Relational\ITable
$Event callable
Результат void

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

Subscribe a callback to when the supplied row will be persisted.
public SubscribeToPrePersistEvent ( Storm\Core\Relational\ITable $Table, callable $Event )
$Table Storm\Core\Relational\ITable
$Event callable

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

Trigger the post persist callbacks for the supplied rows
public TriggerPostPersistEvent ( Storm\Core\Relational\ITable $Table ) : void
$Table Storm\Core\Relational\ITable The table to trigger
Результат void

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

Trigger the pre persist callbacks for the supplied rows
public TriggerPrePersistEvent ( Storm\Core\Relational\ITable $Table ) : void
$Table Storm\Core\Relational\ITable The table to trigger
Результат void

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

public __construct ( )