PHP Класс Storm\Core\Relational\ResultRow

Автор: Elliot Levin ([email protected])
Наследование: extends ColumnData
Показать файл Открыть проект Примеры использования класса

Открытые методы

Метод Описание
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 = [] )

Защищенные методы

Метод Описание
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 )

Приватные методы

Метод Описание
InvalidTable ( Storm\Core\Relational\ITable $Table )

Описание методов

AddColumnData() защищенный Метод

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

GetAllDataFromColumns() закрытый публичный статический Метод

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
Результат ResultRow[] The data of the supplied columns

GetColumnData() защищенный Метод

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

GetData() публичный Метод

public GetData ( )

GetDataFromColumns() закрытый публичный Метод

Gets the data from the supplied columns
final public GetDataFromColumns ( array $Columns ) : ResultRow
$Columns array The columns to get the from
Результат ResultRow The data of the supplied columns

GetPrimaryKey() закрытый публичный Метод

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
Результат PrimaryKey The matching primary key

GetPrimaryKeys() закрытый публичный Метод

final public GetPrimaryKeys ( ) : PrimaryKeys[]
Результат PrimaryKeys[]

GetRow() закрытый публичный Метод

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
Результат Row The matching row

GetRows() закрытый публичный Метод

final public GetRows ( ) : Row[]
Результат Row[]

GetTables() закрытый публичный Метод

final public GetTables ( ) : Storm\Core\Relational\ITable[]
Результат Storm\Core\Relational\ITable[]

HasColumnData() защищенный Метод

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

IsOf() закрытый публичный Метод

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

RemoveColumnData() защищенный Метод

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

SetData() публичный Метод

public SetData ( array $Data )
$Data array

__clone() публичный Метод

public __clone ( )

__construct() публичный Метод

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