PHP Класс Pheasant\Database\Mysqli\ResultSet

Наследование: implements IteratorAggregate, implements ArrayAccess, implements Countable
Показать файл Открыть проект

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

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