MediaWiki
REL1_19
|
A special page that list protected titles from creation. More...
Public Member Functions | |
__construct () | |
execute ($par) | |
Default execute method Checks user permissions, calls the function given in mFunction. | |
formatRow ($row) | |
Callback function to output a restriction. | |
getLevelMenu ($pr_level) | |
getNamespaceMenu ($namespace=null) | |
Prepare the namespace filter drop-down; standard namespace selector, sans the MediaWiki namespace. | |
showOptions ($namespace, $type='edit', $level) | |
Protected Attributes | |
$IdLevel = 'level' | |
$IdType = 'type' |
A special page that list protected titles from creation.
Definition at line 29 of file SpecialProtectedtitles.php.
Definition at line 34 of file SpecialProtectedtitles.php.
SpecialProtectedtitles::execute | ( | $ | par | ) |
Default execute method Checks user permissions, calls the function given in mFunction.
This must be overridden by subclasses; it will be made abstract in a future version
$par | String subpage string, if one was specified |
Reimplemented from SpecialPage.
Definition at line 38 of file SpecialProtectedtitles.php.
References $size, SpecialPage\getOutput(), SpecialPage\getRequest(), SpecialPage\outputHeader(), Title\purgeExpiredRestrictions(), SpecialPage\setHeaders(), showOptions(), and wfMsgHtml().
SpecialProtectedtitles::formatRow | ( | $ | row | ) |
Callback function to output a restriction.
Definition at line 75 of file SpecialProtectedtitles.php.
References $title, SpecialPage\getLanguage(), Linker\link(), Title\makeTitleSafe(), wfGetDB(), wfMsg(), wfMsgHtml(), wfProfileIn(), and wfProfileOut().
SpecialProtectedtitles::getLevelMenu | ( | $ | pr_level | ) |
Definition at line 149 of file SpecialProtectedtitles.php.
References $options, $wgRestrictionLevels, Xml\label(), Xml\option(), Xml\tags(), and wfMsg().
Referenced by showOptions().
SpecialProtectedtitles::getNamespaceMenu | ( | $ | namespace = null | ) |
Prepare the namespace filter drop-down; standard namespace selector, sans the MediaWiki namespace.
$namespace | Mixed: pre-select namespace |
Definition at line 139 of file SpecialProtectedtitles.php.
References Xml\label(), Xml\namespaceSelector(), and wfMsg().
Referenced by showOptions().
SpecialProtectedtitles::showOptions | ( | $ | namespace, |
$ | type = 'edit' , |
||
$ | level | ||
) |
$namespace | Integer: |
$type | string |
$level | string |
Definition at line 117 of file SpecialProtectedtitles.php.
References $title, $wgScript, Xml\element(), getLevelMenu(), getNamespaceMenu(), SpecialPage\getTitle(), Html\hidden(), Xml\submitButton(), and wfMsg().
Referenced by execute().
SpecialProtectedtitles::$IdLevel = 'level' [protected] |
Definition at line 31 of file SpecialProtectedtitles.php.
SpecialProtectedtitles::$IdType = 'type' [protected] |
Definition at line 32 of file SpecialProtectedtitles.php.