1
0
mirror of https://github.com/silverstripe/silverstripe-framework synced 2024-10-22 14:05:37 +02:00

ENHANCEMENT - Added new method to display the number of total items in a paginated list within templates

This commit is contained in:
Marco Kernler 2015-09-25 09:03:04 +02:00
parent 1aa1d65932
commit 5c04dc5d67

View File

@ -434,6 +434,13 @@ class PaginatedList extends SS_ListDecorator {
} }
} }
/**
* Returns the total number of items in the list
*/
public function TotalItems() {
return $this->getTotalItems();
}
/** /**
* Set the request object for this list * Set the request object for this list
* *