mirror of
https://github.com/silverstripe/silverstripe-framework
synced 2024-10-02 14:18:46 +02:00
ENHANCEMENT GridFieldPaginatior->itemsPerPage accessors
This commit is contained in:
parent
344899ab77
commit
375ad464db
@ -139,6 +139,21 @@ class GridFieldPaginator implements GridField_HTMLProvider, GridField_DataManipu
|
|||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* @param Int
|
||||||
|
*/
|
||||||
|
public function setItemsPerPage($num) {
|
||||||
|
$this->itemsPerPage = $num;
|
||||||
|
return $this;
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* @return Int
|
||||||
|
*/
|
||||||
|
public function getItemsPerPage() {
|
||||||
|
return $this->itemsPerPage;
|
||||||
|
}
|
||||||
|
|
||||||
/** Duck check to see if list support methods we need to paginate */
|
/** Duck check to see if list support methods we need to paginate */
|
||||||
protected function getListPaginatable(SS_List $list) {
|
protected function getListPaginatable(SS_List $list) {
|
||||||
// If no list yet, not paginatable
|
// If no list yet, not paginatable
|
||||||
|
Loading…
Reference in New Issue
Block a user