PHP Class Storm\Core\Relational\ResultRow

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

Public Methods

Method 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 = [] )

Protected Methods

Method 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

Method Description
InvalidTable ( Storm\Core\Relational\ITable $Table )

Method Details

AddColumnData() protected method

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

GetAllDataFromColumns() final public static method

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
return ResultRow[] The data of the supplied columns

GetColumnData() protected method

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

GetData() public method

public GetData ( )

GetDataFromColumns() final public method

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

GetPrimaryKey() final public method

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
return PrimaryKey The matching primary key

GetPrimaryKeys() final public method

final public GetPrimaryKeys ( ) : PrimaryKeys[]
return PrimaryKeys[]

GetRow() final public method

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
return Row The matching row

GetRows() final public method

final public GetRows ( ) : Row[]
return Row[]

GetTables() final public method

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

HasColumnData() protected method

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

IsOf() final public method

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

RemoveColumnData() protected method

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

SetData() public method

public SetData ( array $Data )
$Data array

__clone() public method

public __clone ( )

__construct() public method

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