mirror of
https://github.com/silverstripe/silverstripe-framework
synced 2024-10-22 12:05:37 +00:00
Remove deprecated ArrayList::getRange(), use limit() instead
This commit is contained in:
parent
7042d87fd1
commit
a2bd378d46
@ -111,19 +111,6 @@ class ArrayList extends ViewableData implements SS_List, SS_Filterable, SS_Sorta
|
||||
return $result;
|
||||
}
|
||||
|
||||
/**
|
||||
* Get a sub-range of this dataobjectset as an array
|
||||
*
|
||||
* @param int $offset
|
||||
* @param int $length
|
||||
* @return ArrayList
|
||||
*/
|
||||
public function getRange($offset, $length) {
|
||||
Deprecation::notice("3.0", 'getRange($offset, $length) is deprecated. Use limit($length, $offset) instead.'
|
||||
. ' Note the new argument order.');
|
||||
return $this->limit($length, $offset);
|
||||
}
|
||||
|
||||
/**
|
||||
* Get a sub-range of this dataobjectset as an array
|
||||
*
|
||||
|
Loading…
x
Reference in New Issue
Block a user