PHP Class Storm\Drivers\Base\Relational\Relations\JoinTable

Inheritance: extends Storm\Drivers\Base\Relational\Table
Show file Open project: timetoogo/penumbra Class Usage Examples

Public Methods

Method Description
GetForeignKey ( Storm\Core\Relational\ITable $Table ) : ForeignKey
GetForeignKey1 ( ) : ForeignKey
GetForeignKey2 ( ) : ForeignKey
GetTable1 ( ) : Storm\Core\Relational\ITable
GetTable2 ( ) : Storm\Core\Relational\ITable
JoinRow ( ColumnData $PrimaryKey1, ColumnData $PrimaryKey2 ) : Row
__construct ( )

Protected Methods

Method Description
KeyGenerator ( Storm\Drivers\Base\Relational\PrimaryKeys\IKeyGeneratorSet $KeyGenerator )
MapForeignKey1 ( Map $Map, Storm\Core\Relational\ITable $Table1 )
MapForeignKey2 ( Map $Map, Storm\Core\Relational\ITable $Table2 )
OnInitializeRelatedStructure ( Database $Context )
OnInitializeStructure ( Database $Context )
RegisterRelationalTraits ( Registrar $Registrar, Database $Context )
RegisterStructuralTraits ( Registrar $Registrar )
RegisterToManyRelations ( Registrar $Registrar, Database $Context )
RegisterToOneRelations ( Registrar $Registrar, Database $Context )
Table1 ( Database $Database ) : Storm\Core\Relational\ITable
Table2 ( Database $Database ) : Storm\Core\Relational\ITable

Private Methods

Method Description
GetForeignKeyMap1 ( Storm\Core\Relational\ITable $Table1 )
GetForeignKeyMap2 ( Storm\Core\Relational\ITable $Table2 )
MakeForeignKey ( Storm\Core\Relational\ITable $Table, Map $ReferencedColumnMap )

Method Details

GetForeignKey() final public method

final public GetForeignKey ( Storm\Core\Relational\ITable $Table ) : ForeignKey
$Table Storm\Core\Relational\ITable
return Storm\Drivers\Base\Relational\Traits\ForeignKey

GetForeignKey1() final public method

final public GetForeignKey1 ( ) : ForeignKey
return Storm\Drivers\Base\Relational\Traits\ForeignKey

GetForeignKey2() final public method

final public GetForeignKey2 ( ) : ForeignKey
return Storm\Drivers\Base\Relational\Traits\ForeignKey

GetTable1() final public method

final public GetTable1 ( ) : Storm\Core\Relational\ITable
return Storm\Core\Relational\ITable

GetTable2() final public method

final public GetTable2 ( ) : Storm\Core\Relational\ITable
return Storm\Core\Relational\ITable

JoinRow() final public method

final public JoinRow ( ColumnData $PrimaryKey1, ColumnData $PrimaryKey2 ) : Row
$PrimaryKey1 Storm\Core\Relational\ColumnData
$PrimaryKey2 Storm\Core\Relational\ColumnData
return Storm\Core\Relational\Row

KeyGenerator() protected method

protected KeyGenerator ( Storm\Drivers\Base\Relational\PrimaryKeys\IKeyGeneratorSet $KeyGenerator )
$KeyGenerator Storm\Drivers\Base\Relational\PrimaryKeys\IKeyGeneratorSet

MapForeignKey1() abstract protected method

abstract protected MapForeignKey1 ( Map $Map, Storm\Core\Relational\ITable $Table1 )
$Map Storm\Core\Containers\Map
$Table1 Storm\Core\Relational\ITable

MapForeignKey2() abstract protected method

abstract protected MapForeignKey2 ( Map $Map, Storm\Core\Relational\ITable $Table2 )
$Map Storm\Core\Containers\Map
$Table2 Storm\Core\Relational\ITable

OnInitializeRelatedStructure() protected method

protected OnInitializeRelatedStructure ( Database $Context )
$Context Storm\Core\Relational\Database

OnInitializeStructure() protected method

protected OnInitializeStructure ( Database $Context )
$Context Storm\Core\Relational\Database

RegisterRelationalTraits() protected method

protected RegisterRelationalTraits ( Registrar $Registrar, Database $Context )
$Registrar Storm\Core\Containers\Registrar
$Context Storm\Core\Relational\Database

RegisterStructuralTraits() protected method

protected RegisterStructuralTraits ( Registrar $Registrar )
$Registrar Storm\Core\Containers\Registrar

RegisterToManyRelations() final protected method

final protected RegisterToManyRelations ( Registrar $Registrar, Database $Context )
$Registrar Storm\Core\Containers\Registrar
$Context Storm\Core\Relational\Database

RegisterToOneRelations() final protected method

final protected RegisterToOneRelations ( Registrar $Registrar, Database $Context )
$Registrar Storm\Core\Containers\Registrar
$Context Storm\Core\Relational\Database

Table1() abstract protected method

abstract protected Table1 ( Database $Database ) : Storm\Core\Relational\ITable
$Database Storm\Core\Relational\Database
return Storm\Core\Relational\ITable

Table2() abstract protected method

abstract protected Table2 ( Database $Database ) : Storm\Core\Relational\ITable
$Database Storm\Core\Relational\Database
return Storm\Core\Relational\ITable

__construct() public method

public __construct ( )