\RedBeanPHP\CursorNullCursor

NULL Database Cursor Implementation of the NULL Cursor.

Used for an empty BeanCollection. This Cursor can be used for instance if a query fails but the interface demands a cursor to be returned.

Summary

Methods
Properties
Constants
getNextItem()
reset()
close()
No public properties found
No constants found
No protected methods found
No protected properties found
N/A
No private methods found
No private properties found
N/A

Methods

getNextItem()

getNextItem() : array

Should retrieve the next row of the result set.

This method is used to iterate over the result set.

Returns

array

reset()

reset() : void

Resets the cursor by closing it and re-executing the statement.

This reloads fresh data from the database for the whole collection.

close()

close() : void

Closes the database cursor.

Some databases require a cursor to be closed before executing another statement/opening a new cursor.