1
0
mirror of https://github.com/dg/dibi.git synced 2025-08-07 06:36:44 +02:00

DibiResult::getIterator() - removed optional $offset and $limit parameters (BC break!)

This commit is contained in:
David Grudl
2010-08-03 16:59:31 +02:00
parent 792a25d57b
commit 019f6864cf
3 changed files with 8 additions and 38 deletions

View File

@@ -176,13 +176,14 @@ class DibiResult extends DibiObject implements IDataSource
/**
* Required by the IteratorAggregate interface.
* @param int offset
* @param int limit
* @return DibiResultIterator
*/
final public function getIterator($offset = NULL, $limit = NULL)
final public function getIterator()
{
return new DibiResultIterator($this, $offset, $limit);
if (func_num_args()) {
trigger_error(__METHOD__ . ' arguments $offset & $limit have been dropped; use SQL clauses instead.', E_USER_WARNING);
}
return new DibiResultIterator($this);
}