PHP 클래스 Pheasant\Database\Mysqli\ResultIterator

상속: implements SeekableIterator, implements Countable
파일 보기 프로젝트 열기: lox/pheasant

공개 메소드들

메소드 설명
__construct ( MySQLi_Result $result ) Constructor
__destruct ( ) Destructor Frees the Result object
count ( ) Returns the number of rows in the result
current ( ) : array Returns the row that matches the current position
key ( ) : integer Returns the current position
next ( ) Moves the internal pointer one step forward
rewind ( ) Rewinds the internal pointer
seek ( $position ) Seeks to a particular position in the result, offset is from 0.
setHydrator ( $callback ) Sets a hydrator
toArray ( )
valid ( ) : boolean Returns true if the current position is valid, false otherwise.

비공개 메소드들

메소드 설명
_fetch ( ) Template for fetching the array

메소드 상세

__construct() 공개 메소드

Constructor
public __construct ( MySQLi_Result $result )
$result MySQLi_Result

__destruct() 공개 메소드

Destructor Frees the Result object
public __destruct ( )

count() 공개 메소드

Returns the number of rows in the result
public count ( )

current() 공개 메소드

Returns the row that matches the current position
public current ( ) : array
리턴 array

key() 공개 메소드

Returns the current position
public key ( ) : integer
리턴 integer

next() 공개 메소드

Moves the internal pointer one step forward
public next ( )

rewind() 공개 메소드

Rewinds the internal pointer
public rewind ( )

seek() 공개 메소드

Seeks to a particular position in the result, offset is from 0.
public seek ( $position )

setHydrator() 공개 메소드

Sets a hydrator
public setHydrator ( $callback )

toArray() 공개 메소드

public toArray ( )

valid() 공개 메소드

Returns true if the current position is valid, false otherwise.
public valid ( ) : boolean
리턴 boolean