MediaWiki  REL1_22
SpecialLog Class Reference

A special page that lists log entries. More...

Inheritance diagram for SpecialLog:
Collaboration diagram for SpecialLog:

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

 addHeader ($type)
 Set page title and show header for this log type.
 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'.

Private Member Functions

 getRevisionButton ($formcontents)
 parseParams (FormOptions $opts, $par)
 show (FormOptions $opts, array $extraConds)

Private Attributes

 $typeOnUser
 List log type for which the target is a user Thus if the given target is in NS_MAIN we can alter it to be an NS_USER Title user instead.

Detailed Description

A special page that lists log entries.

Definition at line 31 of file SpecialLog.php.


Constructor & Destructor Documentation

Definition at line 43 of file SpecialLog.php.


Member Function Documentation

SpecialLog::addHeader ( type) [protected]

Set page title and show header for this log type.

Parameters:
$typestring
Since:
1.19

Definition at line 223 of file SpecialLog.php.

References SpecialPage\getOutput().

Referenced by show().

SpecialLog::execute ( subPage)

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 47 of file SpecialLog.php.

References FormOptions\add(), array(), false, SpecialPage\getRequest(), SpecialPage\getUser(), global, FormOptions\INTNULL, IP\isIPAddress(), LogPage\isLogType(), Title\makeTitleSafe(), User\newFromName(), Title\newFromText(), SpecialPage\outputHeader(), parseParams(), SpecialPage\setHeaders(), and show().

SpecialLog::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'.

Returns:
string
Since:
1.21

Reimplemented from SpecialPage.

Definition at line 229 of file SpecialLog.php.

SpecialLog::parseParams ( FormOptions opts,
par 
) [private]

Definition at line 115 of file SpecialLog.php.

References array(), global, and FormOptions\setValue().

Referenced by execute().


Member Data Documentation

SpecialLog::$typeOnUser [private]
Initial value:
 array(
        'block',
        'newusers',
        'rights',
    )

List log type for which the target is a user Thus if the given target is in NS_MAIN we can alter it to be an NS_USER Title user instead.

Definition at line 37 of file SpecialLog.php.


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