PHP Класс RedBeanPHP\Cursor\PDOCursor

Used by the BeanCollection to fetch one bean at a time. The PDO Cursor is used by Query Writers to support retrieval of large bean collections. For instance, this class is used to implement the findCollection()/BeanCollection functionality.
Автор: Gabor de Mooij and the RedBeanPHP Community
Наследование: implements RedBeanPHP\Cursor
Показать файл Открыть проект

Защищенные свойства (Protected)

Свойство Тип Описание
$fetchStyle string
$res PDOStatement

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

Метод Описание
__construct ( PDOStatement $res, string $fetchStyle ) : void Constructor, creates a new instance of a PDO Database Cursor.
close ( )
getNextItem ( )

Описание методов

__construct() публичный Метод

Constructor, creates a new instance of a PDO Database Cursor.
public __construct ( PDOStatement $res, string $fetchStyle ) : void
$res PDOStatement the PDO statement
$fetchStyle string fetch style constant to use
Результат void

close() публичный Метод

См. также: Cursor::close
public close ( )

getNextItem() публичный Метод

См. также: Cursor::getNextItem
public getNextItem ( )

Описание свойств

$fetchStyle защищенное свойство

protected string $fetchStyle
Результат string

$res защищенное свойство

protected PDOStatement $res
Результат PDOStatement