JPagination/getData: Difference between revisions
From Joomla! Documentation
m removing red link to edit, no existant pages |
m preparing for archive only |
||
| Line 38: | Line 38: | ||
===Examples=== | ===Examples=== | ||
=== Code Examples === | |||
<dpl> | <dpl> | ||
noresultsheader=\n | noresultsheader=\n | ||
category=getData | category=getData | ||
category=JPagination | category=JPagination | ||
namespace=CodeExample | |||
category=MethodExample | category=MethodExample | ||
include=* | include=* | ||
Latest revision as of 01:00, 25 March 2017
Description
Return the pagination data object, only creating it if it doesn't already exist
[<! removed edit link to red link >]
<! removed transcluded page call, red link never existed >
Syntax
getData()
Returns
object Pagination data object
Defined in
libraries/joomla/html/pagination.php
Importing
jimport( 'joomla.html.pagination' );
Source Body
function getData()
{
static $data;
if (!is_object($data)) {
$data = $this->_buildDataObject();
}
return $data;
}
[<! removed edit link to red link >] <! removed transcluded page call, red link never existed >
Examples
Code Examples