Class JPagination
Pagination Class. Provides a common interface for content pagination for the Joomla! CMS.
Copyright: Copyright (C) 2005 - 2017 Open Source Matters, Inc. All rights reserved.
License: General Public License version 2 or later; see LICENSE.txt
Since: 1.5
Located at cms/pagination/pagination.php
Methods summary
public
|
#
__construct( integer $total, integer $limitstart, integer $limit, string $prefix = '',
Constructor. |
public
mixed
|
#
setAdditionalUrlParam( string $key, mixed $value )
Method to set an additional URL parameter to be added to all pagination class generated links. |
public
mixed
|
#
getAdditionalUrlParam( string $key )
Method to get an additional URL parameter (if it exists) to be added to all pagination class generated links. |
public
integer
|
|
public
|
|
public
string
|
|
public
string
|
#
getResultsCounter( )
Create and return the pagination result set counter string, e.g. Results 1-10 of 42 |
public
string
|
#
getPagesLinks( )
Create and return the pagination page list string, ie. Previous, Next, 1 2 3 ... x. |
public
string
|
#
getPaginationLinks( string $layoutId = 'joomla.pagination.links', array $options = array() )
Get the pagination links |
public
array
|
#
getPaginationPages( )
Create and return the pagination pages list, ie. Previous, Next, 1 2 3 ... x. |
public
string
|
|
public
string
|
|
public
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. |
public
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. |
protected
string
|
|
protected
string
|
|
protected
string
|
|
protected
string
|
|
protected
|
|
public
|
|
public
mixed
|
Magic methods summary
Properties summary
public
integer
|
$limitstart |
#
The record number to start displaying from. |
public
integer
|
$limit |
#
Number of rows to display per page. |
public
integer
|
$total |
#
Total number of rows. |
public
integer
|
$prefix |
#
Prefix used for request variables. |
public
integer
|
$pagesStart |
#
Value pagination object begins at |
public
integer
|
$pagesStop |
#
Value pagination object ends at |
public
integer
|
$pagesCurrent |
#
Current page |
public
integer
|
$pagesTotal |
#
Total number of pages |
protected
boolean
|
$viewall |
#
View all flag |
protected
array
|
$additionalUrlParams |
#
Additional URL parameters to be added to the pagination URLs generated by the class. These may be useful for filters and extra values when dealing with lists and GET requests. |
protected
|
$app |
#
The application object |
protected
object
|
$data |
#
Pagination data object |