PHP Interface 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.
Author: Gabor de Mooij and the RedBeanPHP Community
Show file Open project: gabordemooij/redbean Interface Usage Examples

Public Methods

Method Description
close ( ) : void Closes the database cursor.
getNextItem ( ) : array Should retrieve the next row of the result set.

Method Details

close() public method

Some databases require a cursor to be closed before executing another statement/opening a new cursor.
public close ( ) : void
return void

getNextItem() public method

This method is used to iterate over the result set.
public getNextItem ( ) : array
return array