PHP Интерфейс RedBeanPHP\Cursor

A cursor is used by Query Writers to fetch Query Result rows one row at a time. This is useful if you expect the result set to be quite large. This interface dscribes the API of a database cursor. There can be multiple implementations of the Cursor, by default RedBeanPHP offers the PDOCursor for drivers shipping with RedBeanPHP and the NULLCursor.
Автор: Gabor de Mooij and the RedBeanPHP Community
Показать файл Открыть проект Примеры использования интерфейса

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

Метод Описание
close ( ) : void Closes the database cursor.
getNextItem ( ) : array Should retrieve the next row of the result set.

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

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

Some databases require a cursor to be closed before executing another statement/opening a new cursor.
public close ( ) : void
Результат void

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

This method is used to iterate over the result set.
public getNextItem ( ) : array
Результат array