PHP Interface Storm\Core\Relational\ITable

Author: Elliot Levin ([email protected])
Afficher le fichier Open project: timetoogo/penumbra Interface Usage Examples

Méthodes publiques

Méthode Description
GetColumn ( string $Name ) : Storm\Core\Relational\IColumn | null
GetColumnByIdentifier ( string $Identifier ) : Storm\Core\Relational\IColumn | null
GetColumnIdentifiers ( ) : string[]
GetColumns ( ) : Storm\Core\Relational\IColumn[] Gets the table columns, indexed by their respective column name.
GetColumnsByIdentifier ( ) : Storm\Core\Relational\IColumn[]
GetDepedencyOrderBetween ( $DependencyMode, Storm\Core\Relational\ITable $OtherTable ) : integer
GetDiscardingOrderBetween ( Storm\Core\Relational\ITable $OtherTable ) : integer
GetName ( ) : string
GetPersistingOrderBetween ( Storm\Core\Relational\ITable $OtherTable ) : integer
GetPrimaryKeyColumnIdentifiers ( ) : string[]
GetPrimaryKeyColumns ( ) : Storm\Core\Relational\IColumn[] Gets the table columns which are primary keys, indexed by their respective column name.
GetPrimaryKeyColumnsByIdentifier ( ) : Storm\Core\Relational\IColumn[]
GetToManyRelations ( ) : Storm\Core\Relational\IToManyRelation[]
GetToOneRelations ( ) : Storm\Core\Relational\IToOneRelation[]
HasColumn ( string $Name ) : boolean
HasPrimaryKey ( string $Name ) : boolean
InitializeRelatedStructure ( Database $Database ) : void Initializes the related structure of the table.
InitializeRelations ( Database $Database ) : void Initializes the relations of the table.
InitializeStructure ( Database $Database ) : void Initializes the columns of the table.
Is ( Storm\Core\Relational\ITable $Table )
PrimaryKey ( array $Data = [] ) : PrimaryKey Get a primary key of this table
Row ( array $Data = [] ) : Row Get a row of this table

Method Details

GetColumn() public méthode

public GetColumn ( string $Name ) : Storm\Core\Relational\IColumn | null
$Name string The column name
Résultat Storm\Core\Relational\IColumn | null

GetColumnByIdentifier() public méthode

public GetColumnByIdentifier ( string $Identifier ) : Storm\Core\Relational\IColumn | null
$Identifier string The column identifier
Résultat Storm\Core\Relational\IColumn | null

GetColumnIdentifiers() public méthode

public GetColumnIdentifiers ( ) : string[]
Résultat string[]

GetColumns() public méthode

Gets the table columns, indexed by their respective column name.
public GetColumns ( ) : Storm\Core\Relational\IColumn[]
Résultat Storm\Core\Relational\IColumn[]

GetColumnsByIdentifier() public méthode

public GetColumnsByIdentifier ( ) : Storm\Core\Relational\IColumn[]
Résultat Storm\Core\Relational\IColumn[]

GetDepedencyOrderBetween() public méthode

public GetDepedencyOrderBetween ( $DependencyMode, Storm\Core\Relational\ITable $OtherTable ) : integer
$OtherTable Storm\Core\Relational\ITable The other table
Résultat integer The dependency order

GetDiscardingOrderBetween() public méthode

public GetDiscardingOrderBetween ( Storm\Core\Relational\ITable $OtherTable ) : integer
$OtherTable Storm\Core\Relational\ITable The other table
Résultat integer The dependency order

GetName() public méthode

public GetName ( ) : string
Résultat string

GetPersistingOrderBetween() public méthode

public GetPersistingOrderBetween ( Storm\Core\Relational\ITable $OtherTable ) : integer
$OtherTable Storm\Core\Relational\ITable The other table
Résultat integer The dependency order

GetPrimaryKeyColumnIdentifiers() public méthode

public GetPrimaryKeyColumnIdentifiers ( ) : string[]
Résultat string[]

GetPrimaryKeyColumns() public méthode

Gets the table columns which are primary keys, indexed by their respective column name.
public GetPrimaryKeyColumns ( ) : Storm\Core\Relational\IColumn[]
Résultat Storm\Core\Relational\IColumn[]

GetPrimaryKeyColumnsByIdentifier() public méthode

public GetPrimaryKeyColumnsByIdentifier ( ) : Storm\Core\Relational\IColumn[]
Résultat Storm\Core\Relational\IColumn[]

GetToManyRelations() public méthode

public GetToManyRelations ( ) : Storm\Core\Relational\IToManyRelation[]
Résultat Storm\Core\Relational\IToManyRelation[]

GetToOneRelations() public méthode

public GetToOneRelations ( ) : Storm\Core\Relational\IToOneRelation[]
Résultat Storm\Core\Relational\IToOneRelation[]

HasColumn() public méthode

public HasColumn ( string $Name ) : boolean
$Name string The column name
Résultat boolean

HasPrimaryKey() public méthode

public HasPrimaryKey ( string $Name ) : boolean
$Name string The column name
Résultat boolean

InitializeRelatedStructure() public méthode

Initializes the related structure of the table.
public InitializeRelatedStructure ( Database $Database ) : void
$Database Database The parent database
Résultat void

InitializeRelations() public méthode

Initializes the relations of the table.
public InitializeRelations ( Database $Database ) : void
$Database Database The parent database
Résultat void

InitializeStructure() public méthode

Initializes the columns of the table.
public InitializeStructure ( Database $Database ) : void
$Database Database The parent database
Résultat void

Is() public méthode

public Is ( Storm\Core\Relational\ITable $Table )
$Table Storm\Core\Relational\ITable

PrimaryKey() public méthode

Get a primary key of this table
public PrimaryKey ( array $Data = [] ) : PrimaryKey
$Data array The column data
Résultat PrimaryKey The row

Row() public méthode

Get a row of this table
public Row ( array $Data = [] ) : Row
$Data array The column data
Résultat Row The row