MediaWiki
master
AlphabeticPager.php
Go to the documentation of this file.
1
<?php
21
namespace
MediaWiki\Pager
;
22
29
abstract
class
AlphabeticPager
extends
IndexPager
{
30
35
public
function
getNavigationBar
() {
36
if
( !$this->
isNavigationBarShown
() ) {
37
return
''
;
38
}
39
40
if
( isset( $this->mNavigationBar ) ) {
41
return
$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
52
return
$this->mNavigationBar
;
53
}
54
}
55
57
class_alias( AlphabeticPager::class,
'AlphabeticPager'
);
MediaWiki\Pager\AlphabeticPager
IndexPager with an alphabetic list and a formatted navigation bar.
Definition
AlphabeticPager.php:29
MediaWiki\Pager\AlphabeticPager\getNavigationBar
getNavigationBar()
Definition
AlphabeticPager.php:35
MediaWiki\Pager\IndexPager
Efficient paging for SQL queries that use a (roughly unique) index.
Definition
IndexPager.php:81
MediaWiki\Pager\IndexPager\getNavigationBuilder
getNavigationBuilder()
Definition
IndexPager.php:813
MediaWiki\Pager\IndexPager\isNavigationBarShown
isNavigationBarShown()
Returns whether to show the "navigation bar".
Definition
IndexPager.php:844
MediaWiki\Pager\IndexPager\$mNavigationBar
string $mNavigationBar
Definition
IndexPager.php:157
MediaWiki\Pager
Definition
HistoryPager.php:24
includes
pager
AlphabeticPager.php
Generated on Fri Sep 20 2024 17:24:19 for MediaWiki by
1.10.0