class Row implements JsonSerializable (View source)

Row Object

The row object contains all the data for a row, stored in an array, indexed by columns.

Methods

__construct( array $valueArray)

Creates a new Row object with the given values.

mixed
getColumnValue( int $columnIndex)

Returns a column value from the Row.

array
jsonSerialize()

Custom json serialization of the row.

Details

at line 38
__construct( array $valueArray)

Creates a new Row object with the given values.

Parameters

array $valueArray Array of row values.

at line 57
mixed getColumnValue( int $columnIndex)

Returns a column value from the Row.

Parameters

int $columnIndex Column value to fetch from the row.

Return Value

mixed

Exceptions

InvalidColumnIndex

at line 72
array jsonSerialize()

Custom json serialization of the row.

Return Value

array