mirror of
https://github.com/silverstripe/silverstripe-framework
synced 2024-10-22 12:05:37 +00:00
Remove deprecated PaginatedList::getPageLimits() and setPageLimits()
Use the individual getters on PaginatedList instead.
This commit is contained in:
parent
63983ad777
commit
78311c9ca6
@ -417,29 +417,4 @@ class PaginatedList extends SS_ListDecorator {
|
||||
}
|
||||
}
|
||||
|
||||
// DEPRECATED --------------------------------------------------------------
|
||||
|
||||
/**
|
||||
* @deprecated 3.0 Use individual getter methods.
|
||||
*/
|
||||
public function getPageLimits() {
|
||||
Deprecation::notice('3.0', 'Use getPageStart, getPageLength, or getTotalItems instead.');
|
||||
return array(
|
||||
'pageStart' => $this->getPageStart(),
|
||||
'pageLength' => $this->pageLength,
|
||||
'totalSize' => $this->getTotalItems(),
|
||||
);
|
||||
}
|
||||
|
||||
/**
|
||||
* @deprecated 3.0 Use individual setter methods.
|
||||
*/
|
||||
public function setPageLimits($pageStart, $pageLength, $totalSize) {
|
||||
Deprecation::notice('3.0', 'Use setPageStart, setPageLength, or setTotalItems instead.');
|
||||
$this->setPageStart($pageStart);
|
||||
$this->setPageLength($pageLength);
|
||||
$this->setTotalSize($totalSize);
|
||||
return $this;
|
||||
}
|
||||
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user