mirror of
https://github.com/silverstripe/silverstripe-framework
synced 2024-10-22 14:05:37 +02:00
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:
parent
0ad370ac30
commit
f3e4d7a298
@ -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;
|
||||
}
|
||||
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user