MediaWiki
REL1_22
|
A special page that lists protected pages. 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. | |
Protected Member Functions | |
getCascadeCheck ($cascadeOnly) | |
getExpiryCheck ($indefOnly) | |
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'. | |
getLevelMenu ($pr_level) | |
Creates the input label of the restriction level. | |
getNamespaceMenu ($namespace=null) | |
Prepare the namespace filter drop-down; standard namespace selector, sans the MediaWiki namespace. | |
getSizeLimit ($sizetype, $size) | |
getTypeMenu ($pr_type) | |
Creates the input label of the restriction type. | |
showOptions ($namespace, $type= 'edit', $level, $sizetype, $size, $indefOnly, $cascadeOnly) | |
Protected Attributes | |
$IdLevel = 'level' | |
$IdType = 'type' |
A special page that lists protected pages.
Definition at line 29 of file SpecialProtectedpages.php.
Definition at line 34 of file SpecialProtectedpages.php.
SpecialProtectedpages::execute | ( | $ | subPage | ) |
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
$subPage | string|null |
Reimplemented from SpecialPage.
Definition at line 38 of file SpecialProtectedpages.php.
References $size, array(), SpecialPage\getOutput(), SpecialPage\getRequest(), SpecialPage\outputHeader(), Title\purgeExpiredRestrictions(), SpecialPage\setHeaders(), and showOptions().
SpecialProtectedpages::formatRow | ( | $ | row | ) |
Callback function to output a restriction.
Title | $row | Protected title |
Definition at line 94 of file SpecialProtectedpages.php.
References $link, $size, $title, $user, array(), Html\element(), false, Linker\formatRevisionSize(), SpecialPage\getContext(), Linker\getInvalidTitleDescription(), SpecialPage\getLanguage(), SpecialPage\getTitleFor(), SpecialPage\getUser(), Linker\link(), Linker\linkKnown(), Title\makeTitleSafe(), SpecialPage\msg(), Html\rawElement(), wfGetDB(), wfProfileIn(), and wfProfileOut().
SpecialProtectedpages::getCascadeCheck | ( | $ | cascadeOnly | ) | [protected] |
bool | $cascadeOnly |
Definition at line 263 of file SpecialProtectedpages.php.
References Xml\checkLabel(), SpecialPage\msg(), and text.
Referenced by showOptions().
SpecialProtectedpages::getExpiryCheck | ( | $ | indefOnly | ) | [protected] |
bool | $indefOnly |
Definition at line 250 of file SpecialProtectedpages.php.
References Xml\checkLabel(), SpecialPage\msg(), and text.
Referenced by showOptions().
SpecialProtectedpages::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 364 of file SpecialProtectedpages.php.
SpecialProtectedpages::getLevelMenu | ( | $ | pr_level | ) | [protected] |
Creates the input label of the restriction level.
$pr_level | string Protection level |
Definition at line 335 of file SpecialProtectedpages.php.
References $options, array(), as, global, label, SpecialPage\msg(), Xml\option(), tags(), and text.
Referenced by showOptions().
SpecialProtectedpages::getNamespaceMenu | ( | $ | namespace = null | ) | [protected] |
Prepare the namespace filter drop-down; standard namespace selector, sans the MediaWiki namespace.
$namespace | Mixed: pre-select namespace |
Definition at line 230 of file SpecialProtectedpages.php.
References array(), SpecialPage\msg(), Html\namespaceSelector(), Html\rawElement(), and text.
Referenced by showOptions().
SpecialProtectedpages::getSizeLimit | ( | $ | sizetype, |
$ | size | ||
) | [protected] |
string | $sizetype | "min" or "max" |
mixed | $size |
Definition at line 277 of file SpecialProtectedpages.php.
References $size, array(), Xml\input(), label, SpecialPage\msg(), Xml\radioLabel(), and text.
Referenced by showOptions().
SpecialProtectedpages::getTypeMenu | ( | $ | pr_type | ) | [protected] |
Creates the input label of the restriction type.
$pr_type | string Protection type |
Definition at line 306 of file SpecialProtectedpages.php.
References $options, array(), as, Title\getFilteredRestrictionTypes(), label, SpecialPage\msg(), Xml\option(), tags(), and text.
Referenced by showOptions().
SpecialProtectedpages::showOptions | ( | $ | namespace, |
$ | type = 'edit' , |
||
$ | level, | ||
$ | sizetype, | ||
$ | size, | ||
$ | indefOnly, | ||
$ | cascadeOnly | ||
) | [protected] |
$namespace | Integer | |
string | $type | restriction type |
string | $level | restriction level |
string | $sizetype | "min" or "max" |
$size | Integer | |
$indefOnly | Boolean: only indefinie protection | |
$cascadeOnly | Boolean: only cascading protection |
Definition at line 198 of file SpecialProtectedpages.php.
References $size, $title, array(), Xml\closeElement(), Xml\element(), getCascadeCheck(), getExpiryCheck(), getLevelMenu(), getNamespaceMenu(), getSizeLimit(), SpecialPage\getTitle(), getTypeMenu(), global, Html\hidden(), SpecialPage\msg(), Xml\openElement(), Xml\submitButton(), and text.
Referenced by execute().
SpecialProtectedpages::$IdLevel = 'level' [protected] |
Definition at line 31 of file SpecialProtectedpages.php.
SpecialProtectedpages::$IdType = 'type' [protected] |
Definition at line 32 of file SpecialProtectedpages.php.