Liste de tous les membres
Fonctions membres publiques |
| __construct ($total, $limitstart, $limit, $prefix= '') |
| setAdditionalUrlParam ($key, $value) |
| getAdditionalUrlParam ($key) |
| getRowOffset ($index) |
| getData () |
| getPagesCounter () |
| getResultsCounter () |
| getPagesLinks () |
| getListFooter () |
| getLimitBox () |
| orderUpIcon ($i, $condition=true, $task= 'orderup', $alt= 'JLIB_HTML_MOVE_UP', $enabled=true, $checkbox= 'cb') |
| orderDownIcon ($i, $n, $condition=true, $task= 'orderdown', $alt= 'JLIB_HTML_MOVE_DOWN', $enabled=true, $checkbox= 'cb') |
| __construct ($properties=null) |
| __toString () |
| def ($property, $default=null) |
| get ($property, $default=null) |
| getProperties ($public=true) |
| getError ($i=null, $toString=true) |
| getErrors () |
| set ($property, $value=null) |
| setProperties ($properties) |
| setError ($error) |
| toString () |
Documentation des constructeurs et destructeur
JPagination::__construct |
( |
|
$total, |
|
|
|
$limitstart, |
|
|
|
$limit, |
|
|
|
$prefix = '' |
|
) |
| |
Constructor.
- Paramètres:
-
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. |
- Depuis:
- 11.1
Références $limit, et $total.
Documentation des fonctions membres
JPagination::_buildDataObject |
( |
| ) |
|
|
protected |
JPagination::_item_active |
( |
& |
$item | ) |
|
|
protected |
JPagination::_item_inactive |
( |
& |
$item | ) |
|
|
protected |
Method to create an inactive pagination string
- Paramètres:
-
object | &$item | The item to be processed |
- Renvoie:
- string
- Depuis:
- 11.1
Références $app, $item, et JFactory\getApplication().
JPagination::_list_footer |
( |
|
$list | ) |
|
|
protected |
Create the HTML for a list footer
- Paramètres:
-
array | $list | Pagination list data structure. |
- Renvoie:
- string HTML for a list footer
- Depuis:
- 11.1
Références $html, $list, et JText\_().
JPagination::_list_render |
( |
|
$list | ) |
|
|
protected |
Create the html for a list footer
- Paramètres:
-
array | $list | Pagination list data structure. |
- Renvoie:
- string HTML for a list start, previous, next,end
- Depuis:
- 11.1
Références $html, et $list.
JPagination::getAdditionalUrlParam |
( |
|
$key | ) |
|
Method to get an additional URL parameter (if it exists) to be added to all pagination class generated links.
- Paramètres:
-
string | $key | The name of the URL parameter for which to get the value. |
- Renvoie:
- mixed The value if it exists or null if it does not.
- Depuis:
- 11.1
Références $key, et null.
Return the pagination data object, only creating it if it doesn't already exist.
- Renvoie:
- object Pagination data object.
- Depuis:
- 11.1
Références $data.
JPagination::getLimitBox |
( |
| ) |
|
JPagination::getListFooter |
( |
| ) |
|
JPagination::getPagesCounter |
( |
| ) |
|
Create and return the pagination pages counter string, ie. Page 2 of 4.
- Renvoie:
- string Pagination pages counter string.
- Depuis:
- 11.1
Références $html, null, et JText\sprintf().
JPagination::getPagesLinks |
( |
| ) |
|
Create and return the pagination page list string, ie. Previous, Next, 1 2 3 ... x.
- Renvoie:
- string Pagination page list string.
- Depuis:
- 11.1
Références $app, $data, $i, $list, JFactory\getApplication(), JPATH_THEMES, null, pagination_item_active(), pagination_item_inactive(), et pagination_list_render().
JPagination::getResultsCounter |
( |
| ) |
|
JPagination::getRowOffset |
( |
|
$index | ) |
|
Return the rationalised offset for a row with a given index.
- Paramètres:
-
integer | $index | The row index |
- Renvoie:
- integer Rationalised offset for a row with a given index.
- Depuis:
- 11.1
JPagination::orderDownIcon |
( |
|
$i, |
|
|
|
$n, |
|
|
|
$condition = true , |
|
|
|
$task = 'orderdown' , |
|
|
|
$alt = 'JLIB_HTML_MOVE_DOWN' , |
|
|
|
$enabled = true , |
|
|
|
$checkbox = 'cb' |
|
) |
| |
Return the icon to move an item DOWN.
- Paramètres:
-
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. |
- Renvoie:
- string Either the icon to move an item down or a space.
- Depuis:
- 11.1
Références $enabled, $i, $task, et JHtml\_().
JPagination::orderUpIcon |
( |
|
$i, |
|
|
|
$condition = true , |
|
|
|
$task = 'orderup' , |
|
|
|
$alt = 'JLIB_HTML_MOVE_UP' , |
|
|
|
$enabled = true , |
|
|
|
$checkbox = 'cb' |
|
) |
| |
Return the icon to move an item UP.
- Paramètres:
-
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. |
- Renvoie:
- string Either the icon to move an item up or a space.
- Depuis:
- 11.1
Références $enabled, $i, $task, et JHtml\_().
JPagination::setAdditionalUrlParam |
( |
|
$key, |
|
|
|
$value |
|
) |
| |
Method to set an additional URL parameter to be added to all pagination class generated links.
- Paramètres:
-
string | $key | The name of the URL parameter for which to set a value. |
mixed | $value | The value to set for the URL parameter. |
- Renvoie:
- mixed The old value for the parameter.
- Depuis:
- 11.1
Références $key, et null.
Documentation des données membres
JPagination::$_additionalUrlParams = array() |
|
protected |
JPagination::$_viewall = false |
|
protected |
JPagination::$limit = null |
JPagination::$limitstart = null |
JPagination::$prefix = null |
JPagination::$total = null |
La documentation de cette classe a été générée à partir du fichier suivant :