Pagination
class Pagination
Pagination Class. Provides a common interface for content pagination for the Joomla! CMS.
Properties
integer | $limitstart | ||
integer | $limit | ||
integer | $total | ||
integer | $prefix | ||
integer | $pagesStart | ||
integer | $pagesStop | ||
integer | $pagesCurrent | ||
integer | $pagesTotal | ||
boolean | $hideEmptyLimitstart |
Methods
Constructor.
Method to set an additional URL parameter to be added to all pagination class generated links.
Method to get an additional URL parameter (if it exists) to be added to all pagination class generated links.
Return the rationalised offset for a row with a given index.
Create and return the pagination pages counter string, ie. Page 2 of 4.
Create and return the pagination result set counter string, e.g. Results 1-10 of 42
Create and return the pagination page list string, ie. Previous, Next, 1 2 3 .
Get the pagination links
Create and return the pagination pages list, ie. Previous, Next, 1 2 3 .
Return the pagination footer.
Creates a dropdown box for selecting how many records to show per page.
Return the icon to move an item UP.
Return the icon to move an item DOWN.
Modifies a property of the object, creating it if it does not already exist.
Returns a property of the object or the default value if the property is not set.
Details
__construct(
integer $total,
integer $limitstart,
integer $limit,
string $prefix = '',
CMSApplication $app = null)
Constructor.
mixed
setAdditionalUrlParam(
string $key,
mixed $value)
Method to set an additional URL parameter to be added to all pagination class generated links.
mixed
getAdditionalUrlParam(
string $key)
Method to get an additional URL parameter (if it exists) to be added to all pagination class generated links.
string
getResultsCounter()
Create and return the pagination result set counter string, e.g. Results 1-10 of 42
string
getPagesLinks()
Create and return the pagination page list string, ie. Previous, Next, 1 2 3 .
.. x.
string
getPaginationLinks(
string $layoutId = 'joomla.pagination.links',
array $options = array())
Get the pagination links
array
getPaginationPages()
Create and return the pagination pages list, ie. Previous, Next, 1 2 3 .
.. x.
string
orderUpIcon(
integer $i,
boolean $condition = true,
string $task = 'orderup',
string $alt = 'JLIB_HTML_MOVE_UP',
boolean $enabled = true,
string $checkbox = 'cb')
Return the icon to move an item UP.
string
orderDownIcon(
integer $i,
integer $n,
boolean $condition = true,
string $task = 'orderdown',
string $alt = 'JLIB_HTML_MOVE_DOWN',
boolean $enabled = true,
string $checkbox = 'cb')
Return the icon to move an item DOWN.