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:
@@ -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);
|
||||
}
|
||||
|
||||
|
||||
|
Reference in New Issue
Block a user