PHP 클래스 Horde_Db_Adapter_Base_Result, horde

저자: Jan Schneider ([email protected])
상속: implements Iterator
파일 보기 프로젝트 열기: horde/horde

보호된 프로퍼티들

프로퍼티 타입 설명
$_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