MediaWiki 1.40.4
AlphabeticPager.php
Go to the documentation of this file.
1<?php
27abstract class AlphabeticPager extends IndexPager {
28
33 public function getNavigationBar() {
34 if ( !$this->isNavigationBarShown() ) {
35 return '';
36 }
37
38 if ( isset( $this->mNavigationBar ) ) {
40 }
41
42 $navBuilder = $this->getNavigationBuilder()
43 ->setPrevMsg( 'prevn' )
44 ->setNextMsg( 'nextn' )
45 ->setFirstMsg( 'page_first' )
46 ->setLastMsg( 'page_last' );
47
48 $this->mNavigationBar = $navBuilder->getHtml();
49
51 }
52}
IndexPager with an alphabetic list and a formatted navigation bar.
Efficient paging for SQL queries that use a (roughly unique) index.
getNavigationBuilder()
string $mNavigationBar
isNavigationBarShown()
Returns whether to show the "navigation bar".