Remove deprecated PaginatedList::getPageLimits() and setPageLimits()

Use the individual getters on PaginatedList instead.
This commit is contained in:
Sean Harvey 2012-11-15 10:53:50 +13:00
parent 63983ad777
commit 78311c9ca6

View File

@ -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;
}
}