MediaWiki REL1_39
AlphabeticPager.php
Go to the documentation of this file.
1<?php
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}
IndexPager with an alphabetic list and a formatted navigation bar.
IndexPager is an efficient pager which uses a (roughly unique) index in the data set to implement pag...
getNavigationBuilder()
string $mNavigationBar
isNavigationBarShown()
Returns whether to show the "navigation bar".