MediaWiki  master
AlphabeticPager.php
Go to the documentation of this file.
1 <?php
27 abstract class AlphabeticPager extends IndexPager {
28 
33  public function getNavigationBar() {
34  if ( !$this->isNavigationBarShown() ) {
35  return '';
36  }
37 
38  if ( isset( $this->mNavigationBar ) ) {
39  return $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 
50  return $this->mNavigationBar;
51  }
52 }
IndexPager with an alphabetic list and a formatted navigation bar.
Efficient paging for SQL queries that use a (roughly unique) index.
Definition: IndexPager.php:75
getNavigationBuilder()
@stable to override
Definition: IndexPager.php:798
string $mNavigationBar
Definition: IndexPager.php:151
isNavigationBarShown()
Returns whether to show the "navigation bar".
Definition: IndexPager.php:829