MediaWiki  REL1_23
SpecialProtectedpages Class Reference

A special page that lists protected pages. More...

Inheritance diagram for SpecialProtectedpages:
Collaboration diagram for SpecialProtectedpages:

List of all members.

Public Member Functions

 __construct ()
 execute ($par)
 Default execute method Checks user permissions, calls the function given in mFunction.

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'

Detailed Description

A special page that lists protected pages.

Definition at line 29 of file SpecialProtectedpages.php.


Constructor & Destructor Documentation


Member Function Documentation

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

Parameters:
string | null$subPage

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::getCascadeCheck ( $  cascadeOnly) [protected]
Parameters:
bool$cascadeOnly
Returns:
string Formatted HTML

Definition at line 170 of file SpecialProtectedpages.php.

References Xml\checkLabel(), SpecialPage\msg(), and text.

Referenced by showOptions().

SpecialProtectedpages::getExpiryCheck ( $  indefOnly) [protected]
Parameters:
bool$indefOnly
Returns:
string Formatted HTML

Definition at line 157 of file SpecialProtectedpages.php.

References Xml\checkLabel(), SpecialPage\msg(), and text.

Referenced by showOptions().

Under which header this special page is listed in Special:SpecialPages See messages 'specialpages-group-*' for valid names This method defaults to group 'other'.

Returns:
string
Since:
1.21

Reimplemented from SpecialPage.

Definition at line 284 of file SpecialProtectedpages.php.

SpecialProtectedpages::getLevelMenu ( $  pr_level) [protected]

Creates the input label of the restriction level.

Parameters:
$pr_levelstring Protection level
Returns:
string Formatted HTML

Definition at line 255 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.

Parameters:
$namespaceMixed: pre-select namespace
Returns:
String

Definition at line 137 of file SpecialProtectedpages.php.

References array(), SpecialPage\msg(), Html\namespaceSelector(), Html\rawElement(), and text.

Referenced by showOptions().

SpecialProtectedpages::getRedirectCheck ( $  noRedirect) [protected]
Parameters:
bool$noRedirect
Returns:
string Formatted HTML

Definition at line 183 of file SpecialProtectedpages.php.

References Xml\checkLabel(), SpecialPage\msg(), and text.

Referenced by showOptions().

SpecialProtectedpages::getSizeLimit ( $  sizetype,
$  size 
) [protected]
Parameters:
string$sizetype"min" or "max"
mixed$size
Returns:
string Formatted HTML

Definition at line 197 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.

Parameters:
$pr_typestring Protection type
Returns:
string Formatted HTML

Definition at line 226 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,
$  noRedirect 
) [protected]
Parameters:
int$namespace
string$typeRestriction type
string$levelRestriction level
string$sizetype"min" or "max"
int$size
bool$indefOnlyOnly indefinite protection
bool$cascadeOnlyOnly cascading protection
bool$noRedirectDon't show redirects
Returns:
String: input form

Definition at line 104 of file SpecialProtectedpages.php.

References $size, $title, array(), Xml\closeElement(), Xml\element(), getCascadeCheck(), getExpiryCheck(), getLevelMenu(), getNamespaceMenu(), SpecialPage\getPageTitle(), getRedirectCheck(), getSizeLimit(), getTypeMenu(), global, Html\hidden(), SpecialPage\msg(), Xml\openElement(), Xml\submitButton(), and text.

Referenced by execute().


Member Data Documentation

SpecialProtectedpages::$IdLevel = 'level' [protected]

Definition at line 31 of file SpecialProtectedpages.php.

SpecialProtectedpages::$IdType = 'type' [protected]

Definition at line 32 of file SpecialProtectedpages.php.


The documentation for this class was generated from the following file: