Semantic MediaWiki and related extensions
Static Public Member Functions | Static Public Attributes | List of all members
SMW\Utils\Pager Class Reference

Static Public Member Functions

static pagination (Title $title, $limit, $offset=0, $count=0, array $query=[], $prefix='')
 
static filter (Title $title, $limit=0, $offset=0, $filter='')
 
static getPagingLinks (Title $title, $limit, $offset, $count=0, array $query=[], $prefix='')
 

Static Public Attributes

static $language = ''
 

Detailed Description

GNU GPL v2+

Since
3.0
Author
mwjames

Member Function Documentation

◆ filter()

static SMW\Utils\Pager::filter ( Title  $title,
  $limit = 0,
  $offset = 0,
  $filter = '' 
)
static
Since
3.0
Parameters
Title$title
integer$limit
integer$offset
Returns
string

◆ getPagingLinks()

static SMW\Utils\Pager::getPagingLinks ( Title  $title,
  $limit,
  $offset,
  $count = 0,
array  $query = [],
  $prefix = '' 
)
static

Generate (prev x| next x) (20|50|100...) type links for paging

Parameters
Title$titleTitle object to link
int$offset
int$limit
integer$count
array$queryOptional URL query parameter string
Returns
string

◆ pagination()

static SMW\Utils\Pager::pagination ( Title  $title,
  $limit,
  $offset = 0,
  $count = 0,
array  $query = [],
  $prefix = '' 
)
static
Since
2.4

The documentation for this class was generated from the following file:

About | General disclaimer | Privacy policy