ENHANCEMENT GridFieldPaginatior->itemsPerPage accessors

This commit is contained in:
Ingo Schommer 2012-03-05 12:12:36 +01:00
parent 344899ab77
commit 375ad464db

View File

@ -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 */
protected function getListPaginatable(SS_List $list) {
// If no list yet, not paginatable