MediaWiki  REL1_19
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.

Private Member Functions

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

References $page, and SpecialPage\getOutput().

Referenced by show().

Here is the call graph for this function:

Here is the caller graph for this function:

SpecialLog::execute ( par)

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:
$parString subpage string, if one was specified

Reimplemented from SpecialPage.

Definition at line 48 of file SpecialLog.php.

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

Here is the call graph for this function:

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

Definition at line 116 of file SpecialLog.php.

References $wgLogTypes, and FormOptions\setValue().

Referenced by execute().

Here is the call graph for this function:

Here is the caller graph for this function:

SpecialLog::show ( FormOptions opts,
array $  extraConds 
) [private]

Definition at line 132 of file SpecialLog.php.

References addHeader(), SpecialPage\getOutput(), SpecialPage\getSkin(), FormOptions\getValue(), and User\newFromName().

Referenced by execute().

Here is the call graph for this function:

Here is the caller graph for this function:


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


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