MediaWiki master
AlphabeticPager.php
Go to the documentation of this file.
1<?php
8
15abstract class AlphabeticPager extends IndexPager {
16
21 public function getNavigationBar() {
22 if ( !$this->isNavigationBarShown() ) {
23 return '';
24 }
25
26 if ( $this->mNavigationBar !== null ) {
28 }
29
30 $navBuilder = $this->getNavigationBuilder()
31 ->setPrevMsg( 'prevn' )
32 ->setNextMsg( 'nextn' )
33 ->setFirstMsg( 'page_first' )
34 ->setLastMsg( 'page_last' );
35
36 $this->mNavigationBar = $navBuilder->getHtml();
37
39 }
40}
41
43class_alias( AlphabeticPager::class, 'AlphabeticPager' );
IndexPager with an alphabetic list and a formatted navigation bar.
Efficient paging for SQL queries that use a (roughly unique) index.
getNavigationBuilder()
Get a configured navigation builder for this pager.
isNavigationBarShown()
Returns whether to show the "navigation bar".