Remove deprecated ArrayList::getRange(), use limit() instead

This commit is contained in:
Sean Harvey 2012-11-16 14:35:05 +13:00
parent 7042d87fd1
commit a2bd378d46

View File

@ -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
*