You are here

function Pagination::getInstance in Pagination (Node) 6

@desc Static call to return a single instance

Return value

object Pagination @static

7 calls to Pagination::getInstance()
pagination_admin_settings in ./pagination.module
@desc Pagination configuration
pagination_block in ./pagination.module
@desc Implementation of hook_block()
pagination_content_extra_fields in ./pagination.module
@desc Implementation of hook_content_extra_fields()
pagination_form_alter in ./pagination.module
@desc Implementation of hook_form_alter()
pagination_link in ./pagination.module
@desc Implementation of hook_link()

... See full list

File

./pagination.module, line 518
pagination.module @desc Allow for arbitrary nodes to be paginated. administrators can set which nodes they wish to paginate, and the length of content required to split a node into pages. Alternatively, content creators can set manual break points…

Class

Pagination
@desc Handles all the pagination logic

Code

function getInstance() {
  static $pagination = [];
  if (empty($pagination)) {
    $pagination['instance'] =& new Pagination();
  }
  return $pagination['instance'];
}