PHP Class Pheasant\Database\Mysqli\ResultSet

Inheritance: implements IteratorAggregate, implements ArrayAccess, implements Countable
Afficher le fichier Open project: lox/pheasant

Méthodes publiques

Méthode Description
__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

Method Details

__construct() public méthode

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

affectedRows() public méthode

The number of rows that the statement affected
public affectedRows ( ) : integer
Résultat integer

column() public méthode

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

count() public méthode

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

fields() public méthode

The fields returned in the result set as an array of fields
public fields ( ) : Fields
Résultat Fields object

getIterator() public méthode

* (non-phpdoc)
See also: IteratorAggregate::getIterator()
public getIterator ( )

lastInsertId() public méthode

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

offsetExists() public méthode

public offsetExists ( $offset )

offsetGet() public méthode

array access
public offsetGet ( $offset )

offsetSet() public méthode

public offsetSet ( $offset, $value )

offsetUnset() public méthode

public offsetUnset ( $offset )

row() public méthode

Returns the next available row as an associative array.
public row ( ) : array
Résultat array or NULL on EOF

scalar() public méthode

Returns the nth column from the current row.
public scalar ( $idx ) : scalar
Résultat scalar or NULL on EOF

seek() public méthode

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

setHydrator() public méthode

public setHydrator ( $callback )

toArray() public méthode

public toArray ( ) : array
Résultat array