MediaWiki  REL1_20
SpecialProtectedtitles Class Reference

A special page that list protected titles from creation. More...

Inheritance diagram for SpecialProtectedtitles:
Collaboration diagram for SpecialProtectedtitles:

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.
 getLevelMenu ($pr_level)
 getNamespaceMenu ($namespace=null)
 Prepare the namespace filter drop-down; standard namespace selector, sans the MediaWiki namespace.
 showOptions ($namespace, $type='edit', $level)

Protected Attributes

 $IdLevel = 'level'
 $IdType = 'type'

Detailed Description

A special page that list protected titles from creation.

Definition at line 29 of file SpecialProtectedtitles.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 SpecialProtectedtitles.php.

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

Returns:
string Formatted HTML
Access:
private

Definition at line 156 of file SpecialProtectedtitles.php.

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

Referenced by showOptions().

Prepare the namespace filter drop-down; standard namespace selector, sans the MediaWiki namespace.

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

Definition at line 138 of file SpecialProtectedtitles.php.

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

Referenced by showOptions().

SpecialProtectedtitles::showOptions ( namespace,
type = 'edit',
level 
)
Parameters:
$namespaceInteger:
$typestring
$levelstring
Returns:
string
Access:
private

Definition at line 116 of file SpecialProtectedtitles.php.

References $title, Xml\element(), getLevelMenu(), getNamespaceMenu(), SpecialPage\getTitle(), Html\hidden(), SpecialPage\msg(), and Xml\submitButton().

Referenced by execute().


Member Data Documentation

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

Definition at line 31 of file SpecialProtectedtitles.php.

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

Definition at line 32 of file SpecialProtectedtitles.php.


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