1
0
mirror of https://github.com/dg/dibi.git synced 2025-08-20 21:02:05 +02:00

- DibiResultIterator is back (from rev. 123)

This commit is contained in:
David Grudl
2009-01-07 13:48:01 +00:00
parent c5f8a260c7
commit ca87994189
3 changed files with 139 additions and 2 deletions

View File

@@ -587,11 +587,11 @@ class DibiResult extends DibiObject implements IDataSource
* Required by the IteratorAggregate interface.
* @param int offset
* @param int limit
* @return ArrayIterator
* @return DibiResultIterator
*/
final public function getIterator($offset = NULL, $limit = NULL)
{
return new ArrayIterator($this->fetchAll($offset, $limit));
return new DibiResultIterator($this, $offset, $limit);
}