ProtectedPagesForm Class Reference
[SpecialPage]

List of all members.

Public Member Functions

 showList ($msg= '')
 formatRow ($row)
 Callback function to output a restriction.

Protected Member Functions

 showOptions ($namespace, $type='edit', $level, $sizetype, $size, $indefOnly, $cascadeOnly)
 getNamespaceMenu ($namespace=null)
 Prepare the namespace filter drop-down; standard namespace selector, sans the MediaWiki namespace.
 getExpiryCheck ($indefOnly)
 getCascadeCheck ($cascadeOnly)
 getSizeLimit ($sizetype, $size)
 getTypeMenu ($pr_type)
 getLevelMenu ($pr_level)

Protected Attributes

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


Detailed Description

Todo:
document

Definition at line 11 of file SpecialProtectedpages.php.


Member Function Documentation

ProtectedPagesForm::formatRow ( row  ) 

Callback function to output a restriction.

Parameters:
$row object Protected title
Returns:
string Formatted element

Definition at line 57 of file SpecialProtectedpages.php.

References $row, $size, $title, $wgContLang, $wgLang, $wgUser, Block::decodeExpiry(), SpecialPage::getTitleFor(), Title::makeTitleSafe(), wfMsg(), wfMsgHtml(), wfProfileIn(), wfProfileOut(), and wfSpecialList().

ProtectedPagesForm::getCascadeCheck ( cascadeOnly  )  [protected]

Returns:
string Formatted HTML

Definition at line 166 of file SpecialProtectedpages.php.

References Xml::checkLabel(), and wfMsg().

Referenced by showOptions().

ProtectedPagesForm::getExpiryCheck ( indefOnly  )  [protected]

Returns:
string Formatted HTML

Definition at line 158 of file SpecialProtectedpages.php.

References Xml::checkLabel(), and wfMsg().

Referenced by showOptions().

ProtectedPagesForm::getLevelMenu ( pr_level  )  [protected]

Returns:
string Formatted HTML

Definition at line 218 of file SpecialProtectedpages.php.

References $options, $text, $type, $wgRestrictionLevels, Xml::label(), Xml::option(), Xml::tags(), and wfMsg().

Referenced by showOptions().

ProtectedPagesForm::getNamespaceMenu ( namespace = null  )  [protected]

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

Parameters:
mixed $namespace Pre-select namespace
Returns:
string

Definition at line 149 of file SpecialProtectedpages.php.

References Xml::label(), Xml::namespaceSelector(), and wfMsg().

Referenced by showOptions().

ProtectedPagesForm::getSizeLimit ( sizetype,
size 
) [protected]

Returns:
string Formatted HTML

Definition at line 174 of file SpecialProtectedpages.php.

References $size, Xml::input(), Xml::label(), Xml::radioLabel(), and wfMsg().

Referenced by showOptions().

ProtectedPagesForm::getTypeMenu ( pr_type  )  [protected]

Returns:
string Formatted HTML

Definition at line 190 of file SpecialProtectedpages.php.

References $options, $text, $type, $wgRestrictionTypes, Xml::label(), Xml::option(), Xml::tags(), and wfMsg().

Referenced by showOptions().

ProtectedPagesForm::showList ( msg = ''  ) 

ProtectedPagesForm::showOptions ( namespace,
type = 'edit',
level,
sizetype,
size,
indefOnly,
cascadeOnly 
) [protected]

Parameters:
$namespace int
$type string
$level string
$minsize int
$indefOnly bool
$cascadeOnly bool
Returns:
string Input form
Access:
private

Definition at line 121 of file SpecialProtectedpages.php.

References $size, $title, $type, $wgScript, Xml::closeElement(), Xml::element(), getCascadeCheck(), getExpiryCheck(), getLevelMenu(), getNamespaceMenu(), getSizeLimit(), SpecialPage::getTitleFor(), getTypeMenu(), Xml::hidden(), Xml::openElement(), Xml::submitButton(), and wfMsg().

Referenced by showList().


Member Data Documentation

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

Definition at line 13 of file SpecialProtectedpages.php.

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

Definition at line 14 of file SpecialProtectedpages.php.


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

Generated on Sat Sep 5 02:08:45 2009 for MediaWiki by  doxygen 1.5.9