Class Storage_Result
Base class for storage query execution results.
- Core\Object implements Core\Chainable
- Core\Set implements Core\Accessor
- Core\Set\Mutable implements Core\Mutator
- Core\Field implements Core\Inquiry
- Core\Storage_Result implements Countable, Iterator
Direct known subclasses
Indirect known subclasses
Core\Storage\Driver\mysql_Result
,
Core\Storage\Driver\mysql_Result_Statement
,
Core\Storage\Driver\odbc_Result
,
Core\Storage\Driver\sqlite2_Result
,
Core\Storage\Driver\sqlite3_Result
Namespace: Core
Package: Core\Storage
Since: 3.0
Requires: PHP 5.3
Version: 1.1
Located at Storage.inc.php
Methods summary
public
integer
|
#
count( )
Adds compatibility for the PHP |
public
array|object
|
|
abstract public
integer|false
|
#
getAsTimestamp( string $key )
Returns a value from the current result row as a UNIX timestamp. This is only valid for date and time values stored natively by the back-end. |
public
integer
|
|
abstract public
|
|
abstract public
|
|
public
array|object
|
|
public
object|false
|
#
unpack( string $key, string|string[] $class )
Returns an instance from a packed column of the current result row. |
public
boolean
|
Methods inherited from Core\Field
getDataForKey()
,
getDataForKeys()
,
getDataForUndefinedKey()
,
issetDataForKey()
,
offsetExists()
,
offsetGet()
,
offsetSet()
,
offsetUnset()
Methods inherited from Core\Set\Mutable
Methods inherited from Core\Object
__autocreateFactory()
,
__call()
,
__processParameters()
,
__toString()
,
attachMethod()
,
chain()
,
getValueForKey()
,
getValueForKeyPath()
,
getValueForUndefinedKey()
,
hash()
,
issetValueForKey()
,
setValueForKey()
,
setValueForKeyPath()
,
setValueForUndefinedKey()
,
uuid()
Constants summary
Constants inherited from Core\Object
AnyParameterType
,
AutochainParameterType
,
AutocreateParameterType
,
BooleanParameterType
,
CharParameterType
,
EnumParameterType
,
IntegerParameterType
,
RealParameterType
,
StringParameterType
,
UserParameterType
Properties summary
protected
integer
|
$_v_affectedRows
Number of rows affected by the backend query this result set derived from. |
#
0
|
protected
|
$_v_contextArgument
Context argument stored with result set (passed verbatim by driver). |
|
protected
|
$_v_driver
Reference to the specific storage driver interface that returned the result. |
|
protected
integer
|
$_v_insertID
Insert ID of back-end insert query. Only valid if the result set derived from an executed insert statements. |
|
protected
integer
|
$_v_position
Current result row index (same as |
#
-1
|
protected
string
|
$_v_rowClass
Name of class used to embed data sets in (used with |
|
protected
integer
|
$_v_rows
Number of rows in result set. For some back-end engine types, this value is always zero, even though there are multiple results, e.g. when using fetch mode with mySQL. |
Properties inherited from Core\Field
Magic properties
public read-only
integer
|
$affectedRows
Number of rows affected by the operation that lead to this result. |
public read-only
mixed
|
$contextArgument
|
public read-only
|
$driver
Reference to storage driver that created this result. |
public read-only
integer
|
$insertID
ID of inserted row if the result represents the outcome of an insert operation. |
public read-only
integer
|
$position
Index of current result row. |
public read-only
array
|
$row
Associative array of all values of the current storage entry. |
public read-only
string
|
$rowClass
Name of class each result row is automatically embedded into. |
public read-only
integer
|
$rows
Number of rows represented by this result. Depending on the back-end fetching mechanism, the number of rows is not known and is set to 0. |