MediaWiki  REL1_20
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.
 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'

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:
$subPagestring|null

Reimplemented from SpecialPage.

Definition at line 38 of file SpecialProtectedpages.php.

References $size, SpecialPage\getOutput(), SpecialPage\getRequest(), SpecialPage\outputHeader(), Title\purgeExpiredRestrictions(), SpecialPage\setHeaders(), and showOptions().

Callback function to output a restriction.

Parameters:
Title$rowProtected title
Returns:
string Formatted "<li>" element

Definition at line 76 of file SpecialProtectedpages.php.

References $size, $title, $user, false, Linker\formatRevisionSize(), SpecialPage\getLanguage(), SpecialPage\getTitleFor(), SpecialPage\getUser(), Linker\link(), Linker\linkKnown(), Title\makeTitleSafe(), SpecialPage\msg(), Html\rawElement(), wfGetDB(), wfProfileIn(), and wfProfileOut().

SpecialProtectedpages::getCascadeCheck ( cascadeOnly) [protected]
Returns:
string Formatted HTML

Definition at line 212 of file SpecialProtectedpages.php.

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

Referenced by showOptions().

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

Definition at line 204 of file SpecialProtectedpages.php.

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

Referenced by showOptions().

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 266 of file SpecialProtectedpages.php.

References $options, Xml\label(), SpecialPage\msg(), Xml\option(), and Xml\tags().

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 185 of file SpecialProtectedpages.php.

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

Referenced by showOptions().

SpecialProtectedpages::getSizeLimit ( sizetype,
size 
) [protected]
Returns:
string Formatted HTML

Definition at line 220 of file SpecialProtectedpages.php.

References $size, Xml\input(), Xml\label(), SpecialPage\msg(), and Xml\radioLabel().

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 238 of file SpecialProtectedpages.php.

References $options, Title\getFilteredRestrictionTypes(), Xml\label(), SpecialPage\msg(), Xml\option(), and Xml\tags().

Referenced by showOptions().

SpecialProtectedpages::showOptions ( namespace,
type = 'edit',
level,
sizetype,
size,
indefOnly,
cascadeOnly 
) [protected]
Parameters:
$namespaceInteger
$typeString: restriction type
$levelString: restriction level
$sizetypeString: "min" or "max"
$sizeInteger
$indefOnlyBoolean: only indefinie protection
$cascadeOnlyBoolean: only cascading protection
Returns:
String: input form

Definition at line 157 of file SpecialProtectedpages.php.

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

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: