MediaWiki  master
MediaWiki\Navigation\PrevNextNavigationRenderer Class Reference

Helper class for generating prev/next links for paging. More...

Public Member Functions

 __construct (MessageLocalizer $messageLocalizer)
 
 buildPrevNextNavigation (Title $title, $offset, $limit, array $query=[], $atend=false)
 Generate (prev x| next x) (20|50|100...) type links for paging (only suitable when paging by numeric offset, not when paging by index) More...
 

Detailed Description

Helper class for generating prev/next links for paging.

Deprecated:
since 1.39 Use PagerNavigationBuilder instead
Since
1.34

Definition at line 32 of file PrevNextNavigationRenderer.php.

Constructor & Destructor Documentation

◆ __construct()

MediaWiki\Navigation\PrevNextNavigationRenderer::__construct ( MessageLocalizer  $messageLocalizer)
Parameters
MessageLocalizer$messageLocalizer

Definition at line 42 of file PrevNextNavigationRenderer.php.

Member Function Documentation

◆ buildPrevNextNavigation()

MediaWiki\Navigation\PrevNextNavigationRenderer::buildPrevNextNavigation ( Title  $title,
  $offset,
  $limit,
array  $query = [],
  $atend = false 
)

Generate (prev x| next x) (20|50|100...) type links for paging (only suitable when paging by numeric offset, not when paging by index)

Parameters
Title$titleTitle object to link
int$offset
int$limit
array$queryOptional URL query parameter string
bool$atendOptional param for specified if this is the last page
Returns
string

Definition at line 57 of file PrevNextNavigationRenderer.php.

References $title.


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