PHP Класс Horde_Db_Adapter_Base_Result, horde

Автор: Jan Schneider ([email protected])
Наследование: implements Iterator
Показать файл Открыть проект

Защищенные свойства (Protected)

Свойство Тип Описание
$_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

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

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

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

Метод Описание
_columnCount ( ) : integer Returns the number of columns in the result set.
_fetchArray ( ) : array | boolean Returns a row from a resultset.

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

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

Constructor.
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.

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

Destructor.
public __destruct ( )

_columnCount() абстрактный защищенный Метод

Returns the number of columns in the result set.
abstract protected _columnCount ( ) : integer
Результат integer Number of columns.

_fetchArray() абстрактный защищенный Метод

Returns a row from a resultset.
abstract protected _fetchArray ( ) : array | boolean
Результат array | boolean The next row in the resultset or false if there are no more results.

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

Returns the number of columns in the result set.
public columnCount ( ) : integer
Результат integer Number of columns.

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

Implementation of the current() method for Iterator.
public current ( ) : array
Результат array The current row, or null if no rows.

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

Returns the current row and advances the recordset one row.
public fetch ( integer $fetchmode = Horde_Db::FETCH_ASSOC )
$fetchmode integer The default fetch mode for this result. One of the Horde_Db::FETCH_* constants.

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

Implementation of the key() method for Iterator.
public key ( ) : mixed
Результат mixed The current row number (starts at 0), or null if no rows.

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

Implementation of the next() method for Iterator.
public next ( ) : array | null
Результат array | null The next row in the resultset or null if there are no more results.

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

Implementation of the rewind() method for iterator.
public rewind ( )

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

Sets the default fetch mode for this result.
public setFetchMode ( integer $fetchmode )
$fetchmode integer One of the Horde_Db::FETCH_* constants.

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

Implementation of the valid() method for Iterator.
public valid ( ) : boolean
Результат boolean Whether the iteration is valid.

Описание свойств

$_adapter защищенное свойство

protected Horde_Db_Adapter $_adapter
Результат Horde_Db_Adapter

$_arg1 защищенное свойство

protected mixed $_arg1
Результат mixed

$_arg2 защищенное свойство

protected string $_arg2
Результат string

$_current защищенное свойство

Current row.
protected array $_current
Результат array

$_eof защищенное свойство

Are we at the end of the result?
protected bool $_eof
Результат boolean

$_fetchMode защищенное свойство

Which kind of keys to use for results.
protected $_fetchMode

$_index защищенное свойство

Current offset.
protected int $_index
Результат integer

$_result защищенное свойство

Result resource.
protected resource $_result
Результат resource

$_sql защищенное свойство

protected string $_sql
Результат string