CRM_Utils_Pager
class CRM_Utils_Pager extends Pager_Sliding
Class CRM_Utils_Pager
Constants
ROWCOUNT |
Constants for static parameters of the pager |
PAGE_ID |
Constants for static parameters of the pager |
PAGE_ID_TOP |
Constants for static parameters of the pager |
PAGE_ID_BOTTOM |
Constants for static parameters of the pager |
PAGE_ROWCOUNT |
Constants for static parameters of the pager |
Properties
array | $_response | The output of the pager. This is a name/value array with various keys that an application could use to display the pager |
Methods
The pager constructor. Takes a few values, and then assigns a lot of defaults to the PEAR pager class We have embedded some html in this class. Need to figure out how to export this to the top level at some point in time
Helper function to assign remaining pager options as good default values.
Figure out the current page number based on value of GET / POST variables. Hierarchy rules are followed, POST over-rides a GET, a POST at the top overrides a POST at the bottom (of the page)
Get the number of rows to display from either a GET / POST variable
Use the pager class to get the pageId and Offset.
No description
No description
No description
No description
No description
Build a url for pager links.
Details
at line 71
CRM_Utils_Pager
__construct(array $params)
The pager constructor. Takes a few values, and then assigns a lot of defaults to the PEAR pager class We have embedded some html in this class. Need to figure out how to export this to the top level at some point in time
at line 133
array
initialize(array $params)
Helper function to assign remaining pager options as good default values.
at line 190
int
getPageID(int $defaultPageId = 1, array $params)
Figure out the current page number based on value of GET / POST variables. Hierarchy rules are followed, POST over-rides a GET, a POST at the top overrides a POST at the bottom (of the page)
at line 223
int
getPageRowCount(int $defaultPageRowCount = self::ROWCOUNT)
Get the number of rows to display from either a GET / POST variable
at line 243
array
getOffsetAndRowCount()
Use the pager class to get the pageId and Offset.
at line 257
string
getCurrentLocation()
at line 266
string
getFirstPageLink()
at line 278
string
getLastPageLink()
at line 289
string
getBackPageLink()
at line 300
string
getNextPageLink()
at line 318
string
makeURL(string $key, string $value)
Build a url for pager links.