PHP 클래스 Pheasant\Database\Mysqli\ResultSet

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

공개 메소드들

메소드 설명
__construct ( $link, $result = false ) Constructor
affectedRows ( ) : integer The number of rows that the statement affected
column ( $column = null ) : Iterator Fetches an iterator that only returns a particular column, defaults to the first
count ( ) The number of rows in the result set, or the number of affected rows
fields ( ) : Fields The fields returned in the result set as an array of fields
getIterator ( ) * (non-phpdoc)
lastInsertId ( ) The last auto_increment value generated in the statement
offsetExists ( $offset )
offsetGet ( $offset ) array access
offsetSet ( $offset, $value )
offsetUnset ( $offset )
row ( ) : array Returns the next available row as an associative array.
scalar ( $idx ) : scalar Returns the nth column from the current row.
seek ( $offset ) Seeks to a particular row offset
setHydrator ( $callback )
toArray ( ) : array

메소드 상세

__construct() 공개 메소드

Constructor
public __construct ( $link, $result = false )
$link MySQLi
$result MySQLi_Result

affectedRows() 공개 메소드

The number of rows that the statement affected
public affectedRows ( ) : integer
리턴 integer

column() 공개 메소드

Fetches an iterator that only returns a particular column, defaults to the first
public column ( $column = null ) : Iterator
리턴 Iterator

count() 공개 메소드

The number of rows in the result set, or the number of affected rows
public count ( )

fields() 공개 메소드

The fields returned in the result set as an array of fields
public fields ( ) : Fields
리턴 Fields object

getIterator() 공개 메소드

* (non-phpdoc)
또한 보기: IteratorAggregate::getIterator()
public getIterator ( )

lastInsertId() 공개 메소드

The last auto_increment value generated in the statement
public lastInsertId ( )

offsetExists() 공개 메소드

public offsetExists ( $offset )

offsetGet() 공개 메소드

array access
public offsetGet ( $offset )

offsetSet() 공개 메소드

public offsetSet ( $offset, $value )

offsetUnset() 공개 메소드

public offsetUnset ( $offset )

row() 공개 메소드

Returns the next available row as an associative array.
public row ( ) : array
리턴 array or NULL on EOF

scalar() 공개 메소드

Returns the nth column from the current row.
public scalar ( $idx ) : scalar
리턴 scalar or NULL on EOF

seek() 공개 메소드

Seeks to a particular row offset
public seek ( $offset )

setHydrator() 공개 메소드

public setHydrator ( $callback )

toArray() 공개 메소드

public toArray ( ) : array
리턴 array