PHP 클래스 Storm\Core\Relational\Database

The databse represents a group of tables, their columns and relations.
저자: Elliot Levin ([email protected])
상속: use trait Storm\Core\Helpers\Type
파일 보기 프로젝트 열기: timetoogo/penumbra 1 사용 예제들

공개 메소드들

메소드 설명
Commit ( Transaction $Transaction ) : void Commits the supplied transaction.
GetTable ( string $Name ) : Storm\Core\Relational\ITable | null Gets a table by name.
GetTables ( ) : Storm\Core\Relational\ITable[]
GetTablesOrderedByDiscardingDependency ( ) : Storm\Core\Relational\ITable[]
GetTablesOrderedByPersistingDependency ( ) : Storm\Core\Relational\ITable[]
HasTable ( string $Name ) : boolean Whether or not a table has been registered.
Load ( Request $Request ) : ResultRow[] Load the rows specified by the request.
__construct ( )

보호된 메소드들

메소드 설명
CommitTransaction ( Transaction $Transaction ) : void This method should be implemented such that it commits the supplied transaction to the underlying database.
LoadResultRowData ( Request $Request ) : array[] This method should be implemented such that is returns the rows specified by the request from the underlying database.
RegisterTables ( Registrar $Registrar ) : void The method to specify the tables in the current database.

비공개 메소드들

메소드 설명
AddTableToOrderedTables ( Storm\Core\Relational\ITable $Table, array &$OrderedTables, integer $DependencyMode ) : void Adds a table to an array in a specified dependency order.
AddTables ( array $Tables ) Adds an array of tables.
VerifyTable ( $Method, Storm\Core\Relational\ITable $Table ) Verifies a table is registered in this database.

메소드 상세

Commit() 최종 공개 메소드

Commits the supplied transaction.
final public Commit ( Transaction $Transaction ) : void
$Transaction Transaction The transaction to commit
리턴 void

CommitTransaction() 추상적인 보호된 메소드

This method should be implemented such that it commits the supplied transaction to the underlying database.
abstract protected CommitTransaction ( Transaction $Transaction ) : void
$Transaction Transaction The transaction to commit
리턴 void

GetTable() 최종 공개 메소드

Gets a table by name.
final public GetTable ( string $Name ) : Storm\Core\Relational\ITable | null
$Name string The name of the table
리턴 Storm\Core\Relational\ITable | null The matching table or null if it has not been registered

GetTables() 최종 공개 메소드

final public GetTables ( ) : Storm\Core\Relational\ITable[]
리턴 Storm\Core\Relational\ITable[]

GetTablesOrderedByDiscardingDependency() 공개 메소드

public GetTablesOrderedByDiscardingDependency ( ) : Storm\Core\Relational\ITable[]
리턴 Storm\Core\Relational\ITable[]

GetTablesOrderedByPersistingDependency() 공개 메소드

public GetTablesOrderedByPersistingDependency ( ) : Storm\Core\Relational\ITable[]
리턴 Storm\Core\Relational\ITable[]

HasTable() 최종 공개 메소드

Whether or not a table has been registered.
final public HasTable ( string $Name ) : boolean
$Name string The name of the table
리턴 boolean

Load() 최종 공개 메소드

Load the rows specified by the request.
final public Load ( Request $Request ) : ResultRow[]
$Request Request The request to load
리턴 ResultRow[] The loaded result rows

LoadResultRowData() 추상적인 보호된 메소드

This method should be implemented such that is returns the rows specified by the request from the underlying database.
abstract protected LoadResultRowData ( Request $Request ) : array[]
$Request Request The request to load
리턴 array[] The loaded result rows data as an associative array indexed by column identifiers

RegisterTables() 추상적인 보호된 메소드

The method to specify the tables in the current database.
abstract protected RegisterTables ( Registrar $Registrar ) : void
$Registrar Storm\Core\Containers\Registrar The registrar to register the tables
리턴 void

__construct() 공개 메소드

public __construct ( )