Jelly_Collection encapsulates a Database_Result object. It has the exact same
API. It offers a few special features that make it useful:
- Only one model is instantiated for the whole result set, which is significantly faster in terms of performance. - It is easily extensible, so things like polymorphism and recursive result sets can be easily implemented.
Jelly_Collection likes to know what model its result set is related to, though it's not required. Some features may disappear, however, if it doesn't know the model it's working with.
- Jelly_Core_Collection implements Iterator, Countable, SeekableIterator, ArrayAccess
Copyright: (c) 2010-2011 Jonathan Geiger
Author: Jonathan Geiger
Located at jelly/collection.php