|
MediaWiki
REL1_19
|
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) | |
| 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 | ( | $ | 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 SpecialProtectedpages.php.
References $size, SpecialPage\getOutput(), SpecialPage\getRequest(), SpecialPage\outputHeader(), Title\purgeExpiredRestrictions(), SpecialPage\setHeaders(), showOptions(), and wfMsgHtml().

| SpecialProtectedpages::formatRow | ( | $ | row | ) |
Callback function to output a restriction.
| $row | object Protected title |
Definition at line 77 of file SpecialProtectedpages.php.
References $size, $title, false, Linker\formatRevisionSize(), SpecialPage\getLanguage(), SpecialPage\getTitleFor(), SpecialPage\getUser(), Linker\link(), Linker\linkKnown(), Title\makeTitleSafe(), Html\rawElement(), wfGetDB(), wfMsg(), wfMsgHtml(), wfProfileIn(), and wfProfileOut().

| SpecialProtectedpages::getCascadeCheck | ( | $ | cascadeOnly | ) | [protected] |
Definition at line 203 of file SpecialProtectedpages.php.
References Xml\checkLabel(), and wfMsg().
Referenced by showOptions().


| SpecialProtectedpages::getExpiryCheck | ( | $ | indefOnly | ) | [protected] |
Definition at line 195 of file SpecialProtectedpages.php.
References Xml\checkLabel(), and wfMsg().
Referenced by showOptions().


| SpecialProtectedpages::getLevelMenu | ( | $ | pr_level | ) | [protected] |
Creates the input label of the restriction level.
| $pr_level | string Protection level |
Definition at line 257 of file SpecialProtectedpages.php.
References $options, $wgRestrictionLevels, Xml\label(), Xml\option(), Xml\tags(), and wfMsg().
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 186 of file SpecialProtectedpages.php.
References Xml\label(), Xml\namespaceSelector(), and wfMsg().
Referenced by showOptions().


| SpecialProtectedpages::getSizeLimit | ( | $ | sizetype, |
| $ | size | ||
| ) | [protected] |
Definition at line 211 of file SpecialProtectedpages.php.
References $size, Xml\input(), Xml\label(), Xml\radioLabel(), and wfMsg().
Referenced by showOptions().


| SpecialProtectedpages::getTypeMenu | ( | $ | pr_type | ) | [protected] |
Creates the input label of the restriction type.
| $pr_type | string Protection type |
Definition at line 229 of file SpecialProtectedpages.php.
References $options, Title\getFilteredRestrictionTypes(), Xml\label(), Xml\option(), Xml\tags(), and wfMsg().
Referenced by showOptions().


| SpecialProtectedpages::showOptions | ( | $ | namespace, |
| $ | type = 'edit', |
||
| $ | level, | ||
| $ | sizetype, | ||
| $ | size, | ||
| $ | indefOnly, | ||
| $ | cascadeOnly | ||
| ) | [protected] |
| $namespace | Integer |
| $type | String: restriction type |
| $level | String: restriction level |
| $sizetype | String: "min" or "max" |
| $size | Integer |
| $indefOnly | Boolean: only indefinie protection |
| $cascadeOnly | Boolean: only cascading protection |
Definition at line 158 of file SpecialProtectedpages.php.
References $size, $title, $wgScript, Xml\closeElement(), Xml\element(), getCascadeCheck(), getExpiryCheck(), getLevelMenu(), getNamespaceMenu(), getSizeLimit(), SpecialPage\getTitle(), getTypeMenu(), Html\hidden(), Xml\openElement(), Xml\submitButton(), and wfMsg().
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.