PHP Class Storm\Core\Relational\ResultRow

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

Méthodes publiques

Méthode Description
GetAllDataFromColumns ( array $ResultRows, array $Columns ) : ResultRow[] Gets the data from the supplied columns from all of the supplied result rows NOTE: Keys are preserved.
GetData ( )
GetDataFromColumns ( array $Columns ) : ResultRow Gets the data from the supplied columns
GetPrimaryKey ( Storm\Core\Relational\ITable $Table ) : PrimaryKey Get a the primary key of the supplied table
GetPrimaryKeys ( ) : PrimaryKeys[]
GetRow ( Storm\Core\Relational\ITable $Table ) : Row Get a the row of the supplied table
GetRows ( ) : Row[]
GetTables ( ) : Storm\Core\Relational\ITable[]
IsOf ( Storm\Core\Relational\ITable $Table )
SetData ( array $Data )
__clone ( )
__construct ( array &$Columns, array $ColumnData = [] )

Méthodes protégées

Méthode Description
AddColumnData ( Storm\Core\Relational\IColumn $Column, $Data )
GetColumnData ( Storm\Core\Relational\IColumn $Column )
HasColumnData ( Storm\Core\Relational\IColumn $Column )
RemoveColumnData ( Storm\Core\Relational\IColumn $Column )

Private Methods

Méthode Description
InvalidTable ( Storm\Core\Relational\ITable $Table )

Method Details

AddColumnData() protected méthode

protected AddColumnData ( Storm\Core\Relational\IColumn $Column, $Data )
$Column Storm\Core\Relational\IColumn

GetAllDataFromColumns() final public static méthode

Gets the data from the supplied columns from all of the supplied result rows NOTE: Keys are preserved.
final public static GetAllDataFromColumns ( array $ResultRows, array $Columns ) : ResultRow[]
$ResultRows array The result rows to get the data from
$Columns array The columns to get the from
Résultat ResultRow[] The data of the supplied columns

GetColumnData() protected méthode

protected GetColumnData ( Storm\Core\Relational\IColumn $Column )
$Column Storm\Core\Relational\IColumn

GetData() public méthode

public GetData ( )

GetDataFromColumns() final public méthode

Gets the data from the supplied columns
final public GetDataFromColumns ( array $Columns ) : ResultRow
$Columns array The columns to get the from
Résultat ResultRow The data of the supplied columns

GetPrimaryKey() final public méthode

Get a the primary key of the supplied table
final public GetPrimaryKey ( Storm\Core\Relational\ITable $Table ) : PrimaryKey
$Table Storm\Core\Relational\ITable The table of the primary key to retreive
Résultat PrimaryKey The matching primary key

GetPrimaryKeys() final public méthode

final public GetPrimaryKeys ( ) : PrimaryKeys[]
Résultat PrimaryKeys[]

GetRow() final public méthode

Get a the row of the supplied table
final public GetRow ( Storm\Core\Relational\ITable $Table ) : Row
$Table Storm\Core\Relational\ITable The table of the row to retreive
Résultat Row The matching row

GetRows() final public méthode

final public GetRows ( ) : Row[]
Résultat Row[]

GetTables() final public méthode

final public GetTables ( ) : Storm\Core\Relational\ITable[]
Résultat Storm\Core\Relational\ITable[]

HasColumnData() protected méthode

protected HasColumnData ( Storm\Core\Relational\IColumn $Column )
$Column Storm\Core\Relational\IColumn

IsOf() final public méthode

final public IsOf ( Storm\Core\Relational\ITable $Table )
$Table Storm\Core\Relational\ITable

RemoveColumnData() protected méthode

protected RemoveColumnData ( Storm\Core\Relational\IColumn $Column )
$Column Storm\Core\Relational\IColumn

SetData() public méthode

public SetData ( array $Data )
$Data array

__clone() public méthode

public __clone ( )

__construct() public méthode

public __construct ( array &$Columns, array $ColumnData = [] )
$Columns array
$ColumnData array