Constructor
JPagination
__construct
(mixed $total, mixed $limitstart, mixed $limit)
Redefinition of:
- JObject::__construct()
- Class constructor, overridden in descendant classes.
Creates a dropdown box for selecting how many records to show per page
string
getLimitBox
([mixed $link = null])
Return the pagination footer
string
getListFooter
()
Create and return the pagination counter string, ie. Results 1-10 of 42
string
getPagesCounter
()
Create and return the pagination page list string, ie. Previous, Next, 1 2 3 ... x
string
getPagesLinks
([mixed $link = null])
Return the icon to move an item DOWN
string
orderDownIcon
(int $i, int $n, [boolean $condition = true], [string $task = 'orderdown'], [string $alt = 'Move Down'])
-
int
$i: The row index
-
int
$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 alternate text string
Return the icon to move an item DOWN
string
orderDownIcon2
(int $id, int $order, [boolean $condition = true], [string $task = 'orderdown'], [string $alt = '#'])
-
int
$id: The row index
-
int
$order: The ordering value for the item
-
boolean
$condition: [Does Not Appear To Be Used]
-
string
$task: The task to fire
-
string
$alt: The image alternate text string
Return the icon to move an item UP
string
orderUpIcon
(int $i, [boolean $condition = true], [string $task = 'orderup'], [string $alt = 'Move Up'])
-
int
$i: The row index
-
boolean
$condition: True to show the icon
-
string
$task: The task to fire
-
string
$alt: The image alternate text string
Return the icon to move an item UP
string
orderUpIcon2
(int $id, int $order, [boolean $condition = true], [string $task = 'orderup'], [string $alt = '#'])
-
int
$id: The row index
-
int
$order: The ordering value for the item
-
boolean
$condition: [Does Not Appear To Be Used]
-
string
$task: The task to fire
-
string
$alt: The image alternate text string
Return the row number
int
rowNumber
(int $index)
-
int
$index: The row index
Sets the vars for the page navigation template
boolean
setTemplateVars
(object &$tmpl, [string $name = 'admin-list-footer'])
-
object
$tmpl: PatTemplate Object to add the pagination footer template to
-
string
$name: Name of the pagination footer template to add
Writes the html for the leafs counter, eg, Page 1 of x
void
writeLeafsCounter
()
Writes the dropdown select list for number of rows to show per page Use: print JPagination :: getLimitBox();
void
writeLimitBox
([mixed $link = null])
Writes the counter string Use: print $pagination->getLimitBox();
void
writePagesCounter
()
Writes the page list string Use: print $pagination->getPagesLinks();
void
writePagesLinks
([mixed $link = null])
Inherited Methods
Inherited From JObject
JObject::__construct()
JObject::JObject()
JObject::get()
JObject::set()
JObject::toString()
JObject::__destruct()