Class BeanCollection
BeanCollection.
The BeanCollection represents a collection of beans and makes it possible to use database cursors. The BeanCollection has a method next() to obtain the first, next and last bean in the collection. The BeanCollection does not implement the array interface nor does it try to act like an array because it cannot go backward or rewind itself.
Use the BeanCollection for large datasets where skip/limit is not an option. Keep in mind that ID-marking (querying a start ID) is a decent alternative though.
Copyright:
copyright (c) G.J.G.T. (Gabor) de Mooij and the RedBeanPHP Community This source file is subject to the BSD/GPLv2 License that is bundled with this source code in the file license.txt.
License: BSD/GPLv2
Author: Gabor de Mooij and the RedBeanPHP community
File: RedBeanPHP/BeanCollection.php
Located at BeanCollection.php
public
|
#
__construct( string $type,
Constructor, creates a new instance of the BeanCollection. |
public
|
|
public
|
protected
|
$cursor
|
#
NULL
|
protected
|
$repository
|
#
NULL
|
protected
string
|
$type
|
#
NULL
|