MediaWiki master
AlphabeticPager.php
Go to the documentation of this file.
1<?php
21namespace MediaWiki\Pager;
22
29abstract class AlphabeticPager extends IndexPager {
30
35 public function getNavigationBar() {
36 if ( !$this->isNavigationBarShown() ) {
37 return '';
38 }
39
40 if ( isset( $this->mNavigationBar ) ) {
42 }
43
44 $navBuilder = $this->getNavigationBuilder()
45 ->setPrevMsg( 'prevn' )
46 ->setNextMsg( 'nextn' )
47 ->setFirstMsg( 'page_first' )
48 ->setLastMsg( 'page_last' );
49
50 $this->mNavigationBar = $navBuilder->getHtml();
51
53 }
54}
55
57class_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.
isNavigationBarShown()
Returns whether to show the "navigation bar".