Constructor.
JPagination
__construct
(integer $total, integer $limitstart, integer $limit, [string $prefix = ''])
-
integer
$total: The total number of items.
-
integer
$limitstart: The offset of the item to start at.
-
integer
$limit: The number of items to display per page.
-
string
$prefix: The prefix used for request variables.
Returns a property of the object or the default value if the property is not set.
mixed
get
(string $property, [mixed $default = null])
-
string
$property: The name of the property.
-
mixed
$default: The default value.
Method to get an additional URL parameter (if it exists) to be added to all pagination class generated links.
mixed
getAdditionalUrlParam
(string $key)
-
string
$key: The name of the URL parameter for which to get the value.
Return the pagination data object, only creating it if it doesn't already exist.
object Pagination
getData
()
Creates a dropdown box for selecting how many records to show per page.
string
getLimitBox
()
Return the pagination footer.
string
getListFooter
()
Create and return the pagination pages counter string, ie. Page 2 of 4.
string
getPagesCounter
()
Create and return the pagination page list string, ie. Previous, Next, 1 2 3 ... x.
string
getPagesLinks
()
Create and return the pagination result set counter string, e.g. Results 1-10 of 42
string
getResultsCounter
()
Return the rationalised offset for a row with a given index.
integer
getRowOffset
(integer $index)
-
integer
$index: The row index
Return the icon to move an item DOWN.
string
orderDownIcon
(integer $i, integer $n, [boolean $condition = true], [string $task = 'orderdown'], [string $alt = 'JLIB_HTML_MOVE_DOWN'], [boolean $enabled = true], [string $checkbox = 'cb'])
-
integer
$i: The row index.
-
integer
$n: The number of items in the list.
-
boolean
$condition: True to show the icon.
-
string
$task: The task to fire.
-
string
$alt: The image alternative text string.
-
boolean
$enabled: An optional setting for access control on the action.
-
string
$checkbox: An optional prefix for checkboxes.
Return the icon to move an item UP.
string
orderUpIcon
(integer $i, [boolean $condition = true], [string $task = 'orderup'], [string $alt = 'JLIB_HTML_MOVE_UP'], [boolean $enabled = true], [string $checkbox = 'cb'])
-
integer
$i: The row index.
-
boolean
$condition: True to show the icon.
-
string
$task: The task to fire.
-
string
$alt: The image alternative text string.
-
boolean
$enabled: An optional setting for access control on the action.
-
string
$checkbox: An optional prefix for checkboxes.
Modifies a property of the object, creating it if it does not already exist.
void
set
(string $property, [mixed $value = null])
-
string
$property: The name of the property.
-
mixed
$value: The value of the property to set.
Method to set an additional URL parameter to be added to all pagination class generated links.
mixed
setAdditionalUrlParam
(string $key, mixed $value)
-
string
$key: The name of the URL parameter for which to set a value.
-
mixed
$value: The value to set for the URL parameter.
Create and return the pagination data object.
object Pagination
_buildDataObject
()
Method to create an active pagination link to the item
Method to create an inactive pagination string
Create the HTML for a list footer
string
_list_footer
(array $list)
-
array
$list: Pagination list data structure.
Create the html for a list footer
string
_list_render
(array $list)
-
array
$list: Pagination list data structure.