JPagination/getData: Difference between revisions
From Joomla! Documentation
m clean up |
m preparing for archive only |
||
| Line 4: | Line 4: | ||
===Syntax=== | ===Syntax=== | ||
| Line 31: | Line 31: | ||
===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=* | ||
format= ,,, | format= ,,, | ||
</dpl> | </dpl> | ||
Latest revision as of 01:56, 25 March 2017
Description
Return the pagination data object, only creating it if it doesn't already exist.
Syntax
getData()
Returns
object Pagination data object.
Defined in
libraries/joomla/html/pagination.php
Importing
jimport( 'joomla.html.pagination' );
Source Body
public function getData()
{
static $data;
if (!is_object($data)) {
$data = $this->_buildDataObject();
}
return $data;
}
Examples
Code Examples