API CHANGE Removed @deprecated 2.3 SearchForm::numPerPage: Please use SearchForm::pageLength instead

git-svn-id: svn://svn.silverstripe.com/silverstripe/open/modules/sapphire/trunk@77376 467b73ca-7a2a-4603-9d3b-597d59a354a9
This commit is contained in:
Sean Harvey 2009-05-20 06:13:53 +00:00
parent 0ad370ac30
commit f3e4d7a298

View File

@ -20,11 +20,6 @@ class SearchForm extends Form {
*/
protected $showInSearchTurnOn;
/**
* @deprecated 2.3 Use {@link $pageLength}.
*/
protected $numPerPage;
/**
* @var int $pageLength How many results are shown per page.
* Relies on pagination being implemented in the search results template.
@ -280,8 +275,7 @@ class SearchForm extends Form {
* @return int
*/
public function getPageLength() {
// legacy handling for deprecated $numPerPage
return (isset($this->numPerPage)) ? $this->numPerPage : $this->pageLength;
return $this->pageLength;
}
}