Property | Type | Description | |
---|---|---|---|
$_adapter | Horde_Db_Adapter | ||
$_arg1 | mixed | ||
$_arg2 | string | ||
$_current | array | Current row. | |
$_eof | boolean | Are we at the end of the result? | |
$_fetchMode | Which kind of keys to use for results. | ||
$_index | integer | Current offset. | |
$_result | resource | Result resource. | |
$_sql | string |
Method | Description | |
---|---|---|
__construct ( Horde_Db_Adapter $adapter, string $sql, mixed $arg1 = null, string $arg2 = null ) | Constructor. | |
__destruct ( ) | Destructor. | |
columnCount ( ) : integer | Returns the number of columns in the result set. | |
current ( ) : array | Implementation of the current() method for Iterator. | |
fetch ( integer $fetchmode = Horde_Db::FETCH_ASSOC ) | Returns the current row and advances the recordset one row. | |
key ( ) : mixed | Implementation of the key() method for Iterator. | |
next ( ) : array | null | Implementation of the next() method for Iterator. | |
rewind ( ) | Implementation of the rewind() method for iterator. | |
setFetchMode ( integer $fetchmode ) | Sets the default fetch mode for this result. | |
valid ( ) : boolean | Implementation of the valid() method for Iterator. |
Method | Description | |
---|---|---|
_columnCount ( ) : integer | Returns the number of columns in the result set. | |
_fetchArray ( ) : array | boolean | Returns a row from a resultset. |
public __construct ( Horde_Db_Adapter $adapter, string $sql, mixed $arg1 = null, string $arg2 = null ) | ||
$adapter | Horde_Db_Adapter | A driver instance. |
$sql | string | A SQL query. |
$arg1 | mixed | Either an array of bound parameters or a query name. |
$arg2 | string | If $arg1 contains bound parameters, the query name. |
abstract protected _columnCount ( ) : integer | ||
return | integer | Number of columns. |
abstract protected _fetchArray ( ) : array | boolean | ||
return | array | boolean | The next row in the resultset or false if there are no more results. |
public columnCount ( ) : integer | ||
return | integer | Number of columns. |
public setFetchMode ( integer $fetchmode ) | ||
$fetchmode | integer | One of the Horde_Db::FETCH_* constants. |