MediaWiki REL1_34
|
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. | |
Private Member Functions | |
numLink (Title $title, $offset, $limit, array $query, $link, $tooltipMsg, $class) | |
Helper function for buildPrevNextNavigation() that generates links. | |
Private Attributes | |
MessageLocalizer | $messageLocalizer |
Helper class for generating prev/next links for paging.
Definition at line 33 of file PrevNextNavigationRenderer.php.
MediaWiki\Navigation\PrevNextNavigationRenderer::__construct | ( | MessageLocalizer | $messageLocalizer | ) |
MessageLocalizer | $messageLocalizer |
Definition at line 43 of file PrevNextNavigationRenderer.php.
References MediaWiki\Navigation\PrevNextNavigationRenderer\$messageLocalizer.
MediaWiki\Navigation\PrevNextNavigationRenderer::buildPrevNextNavigation | ( | Title | $title, |
$offset, | |||
$limit, | |||
array | $query = [] , |
||
$atend = false |
|||
) |
Generate (prev x| next x) (20|50|100...) type links for paging.
Title | $title | Title object to link |
int | $offset | |
int | $limit | |
array | $query | Optional URL query parameter string |
bool | $atend | Optional param for specified if this is the last page |
Definition at line 57 of file PrevNextNavigationRenderer.php.
References $lang, $title, and MediaWiki\Navigation\PrevNextNavigationRenderer\numLink().
|
private |
Helper function for buildPrevNextNavigation() that generates links.
Title | $title | Title object to link |
int | $offset | |
int | $limit | |
array | $query | Extra query parameters |
string | $link | Text to use for the link; will be escaped |
string | $tooltipMsg | Name of the message to use as tooltip |
string | $class | Value of the "class" attribute of the link |
Definition at line 111 of file PrevNextNavigationRenderer.php.
References $title.
Referenced by MediaWiki\Navigation\PrevNextNavigationRenderer\buildPrevNextNavigation().
|
private |
Definition at line 38 of file PrevNextNavigationRenderer.php.
Referenced by MediaWiki\Navigation\PrevNextNavigationRenderer\__construct().