MediaWiki
REL1_24
|
A special page that list protected titles from creation. More...
Public Member Functions | |
__construct () | |
execute ($par) | |
Default execute method Checks user permissions. | |
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 Member Functions | |
getGroupName () | |
Under which header this special page is listed in Special:SpecialPages See messages 'specialpages-group-*' for valid names This method defaults to group 'other'. | |
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 33 of file SpecialProtectedtitles.php.
SpecialProtectedtitles::execute | ( | $ | subPage | ) |
Default execute method Checks user permissions.
This must be overridden by subclasses; it will be made abstract in a future version
string | null | $subPage |
Reimplemented from SpecialPage.
Definition at line 37 of file SpecialProtectedtitles.php.
References $size, $type, array(), SpecialPage\getOutput(), SpecialPage\getRequest(), SpecialPage\outputHeader(), Title\purgeExpiredRestrictions(), SpecialPage\setHeaders(), and showOptions().
SpecialProtectedtitles::formatRow | ( | $ | row | ) |
Callback function to output a restriction.
object | $row | Database row |
Definition at line 74 of file SpecialProtectedtitles.php.
References $link, $title, $user, array(), Html\element(), SpecialPage\getContext(), Linker\getInvalidTitleDescription(), SpecialPage\getLanguage(), SpecialPage\getUser(), Linker\link(), Title\makeTitleSafe(), SpecialPage\msg(), Html\rawElement(), wfGetDB(), wfProfileIn(), and wfProfileOut().
SpecialProtectedtitles::getGroupName | ( | ) | [protected] |
Under which header this special page is listed in Special:SpecialPages See messages 'specialpages-group-*' for valid names This method defaults to group 'other'.
Reimplemented from SpecialPage.
Definition at line 206 of file SpecialProtectedtitles.php.
SpecialProtectedtitles::getLevelMenu | ( | $ | pr_level | ) |
string | $pr_level | Determines which option is selected as default |
Definition at line 176 of file SpecialProtectedtitles.php.
References $options, $type, array(), as, SpecialPage\getConfig(), label, SpecialPage\msg(), Xml\option(), Xml\tags(), and text.
Referenced by showOptions().
SpecialProtectedtitles::getNamespaceMenu | ( | $ | namespace = null | ) |
Prepare the namespace filter drop-down; standard namespace selector, sans the MediaWiki namespace.
string | null | $namespace | Pre-select namespace |
Definition at line 157 of file SpecialProtectedtitles.php.
References array(), SpecialPage\msg(), Html\namespaceSelector(), and text.
Referenced by showOptions().
SpecialProtectedtitles::showOptions | ( | $ | namespace, |
$ | type = 'edit' , |
||
$ | level | ||
) |
int | $namespace | |
string | $type | |
string | $level |
Definition at line 135 of file SpecialProtectedtitles.php.
References $special, $title, array(), Xml\element(), getLevelMenu(), getNamespaceMenu(), SpecialPage\getPageTitle(), Html\hidden(), SpecialPage\msg(), Xml\submitButton(), text, and wfScript().
Referenced by execute().
SpecialProtectedtitles::$IdLevel = 'level' [protected] |
Definition at line 30 of file SpecialProtectedtitles.php.
SpecialProtectedtitles::$IdType = 'type' [protected] |
Definition at line 31 of file SpecialProtectedtitles.php.