MediaWiki
REL1_24
|
A special page that lists protected pages. More...
Public Member Functions | |
__construct () | |
execute ($par) | |
Default execute method Checks user permissions. | |
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. | |
getRedirectCheck ($noRedirect) | |
getSizeLimit ($sizetype, $size) | |
getTypeMenu ($pr_type) | |
Creates the input label of the restriction type. | |
showOptions ($namespace, $type= 'edit', $level, $sizetype, $size, $indefOnly, $cascadeOnly, $noRedirect) | |
Protected Attributes | |
$IdLevel = 'level' | |
$IdType = 'type' |
A special page that lists protected pages.
Definition at line 29 of file SpecialProtectedpages.php.
Definition at line 33 of file SpecialProtectedpages.php.
SpecialProtectedpages::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 SpecialProtectedpages.php.
References $size, $type, array(), SpecialPage\getOutput(), SpecialPage\getRequest(), SpecialPage\outputHeader(), Title\purgeExpiredRestrictions(), SpecialPage\setHeaders(), and showOptions().
SpecialProtectedpages::getCascadeCheck | ( | $ | cascadeOnly | ) | [protected] |
bool | $cascadeOnly |
Definition at line 163 of file SpecialProtectedpages.php.
References Xml\checkLabel(), SpecialPage\msg(), and text.
Referenced by showOptions().
SpecialProtectedpages::getExpiryCheck | ( | $ | indefOnly | ) | [protected] |
bool | $indefOnly |
Definition at line 150 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 275 of file SpecialProtectedpages.php.
SpecialProtectedpages::getLevelMenu | ( | $ | pr_level | ) | [protected] |
Creates the input label of the restriction level.
string | $pr_level | Protection level |
Definition at line 248 of file SpecialProtectedpages.php.
References $options, $type, array(), as, SpecialPage\getConfig(), label, SpecialPage\msg(), Xml\option(), Xml\tags(), and text.
Referenced by showOptions().
SpecialProtectedpages::getNamespaceMenu | ( | $ | namespace = null | ) | [protected] |
Prepare the namespace filter drop-down; standard namespace selector, sans the MediaWiki namespace.
string | null | $namespace | Pre-select namespace |
Definition at line 130 of file SpecialProtectedpages.php.
References array(), SpecialPage\msg(), Html\namespaceSelector(), Html\rawElement(), and text.
Referenced by showOptions().
SpecialProtectedpages::getRedirectCheck | ( | $ | noRedirect | ) | [protected] |
bool | $noRedirect |
Definition at line 176 of file SpecialProtectedpages.php.
References Xml\checkLabel(), SpecialPage\msg(), and text.
Referenced by showOptions().
SpecialProtectedpages::getSizeLimit | ( | $ | sizetype, |
$ | size | ||
) | [protected] |
string | $sizetype | "min" or "max" |
mixed | $size |
Definition at line 190 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.
string | $pr_type | Protection type |
Definition at line 219 of file SpecialProtectedpages.php.
References $options, $type, array(), as, Title\getFilteredRestrictionTypes(), label, SpecialPage\msg(), Xml\option(), Xml\tags(), and text.
Referenced by showOptions().
SpecialProtectedpages::showOptions | ( | $ | namespace, |
$ | type = 'edit' , |
||
$ | level, | ||
$ | sizetype, | ||
$ | size, | ||
$ | indefOnly, | ||
$ | cascadeOnly, | ||
$ | noRedirect | ||
) | [protected] |
int | $namespace | |
string | $type | Restriction type |
string | $level | Restriction level |
string | $sizetype | "min" or "max" |
int | $size | |
bool | $indefOnly | Only indefinite protection |
bool | $cascadeOnly | Only cascading protection |
bool | $noRedirect | Don't show redirects |
Definition at line 99 of file SpecialProtectedpages.php.
References $size, $title, $type, array(), Xml\closeElement(), Xml\element(), getCascadeCheck(), getExpiryCheck(), getLevelMenu(), getNamespaceMenu(), SpecialPage\getPageTitle(), getRedirectCheck(), getSizeLimit(), getTypeMenu(), Html\hidden(), SpecialPage\msg(), Xml\openElement(), Xml\submitButton(), text, and wfScript().
Referenced by execute().
SpecialProtectedpages::$IdLevel = 'level' [protected] |
Definition at line 30 of file SpecialProtectedpages.php.
SpecialProtectedpages::$IdType = 'type' [protected] |
Definition at line 31 of file SpecialProtectedpages.php.