MediaWiki  REL1_22
SpecialMergeHistory Class Reference

Special page allowing users with the appropriate permissions to merge article histories, with some restrictions. More...

Inheritance diagram for SpecialMergeHistory:
Collaboration diagram for SpecialMergeHistory:

List of all members.

Public Member Functions

 __construct ()
 execute ($par)
 Default execute method Checks user permissions, calls the function given in mFunction.
 formatRevisionRow ($row)
 merge ()
 preCacheMessages ()
 As we use the same small set of messages in various methods and that they are called often, we call them once and save them in $this->message.
 showMergeForm ()

Public Attributes

 $mAction
 $mComment
 $mDest
 $mDestID
Title $mDestObj
 $mTarget
 $mTargetID
Title $mTargetObj
 $mTimestamp

Protected Member Functions

 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

 loadRequestParams ()
 showHistory ()

Detailed Description

Special page allowing users with the appropriate permissions to merge article histories, with some restrictions.

Definition at line 30 of file SpecialMergeHistory.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 82 of file SpecialMergeHistory.php.

References array(), SpecialPage\checkPermissions(), SpecialPage\checkReadOnly(), SpecialPage\getOutput(), loadRequestParams(), merge(), SpecialPage\msg(), SpecialPage\outputHeader(), SpecialPage\setHeaders(), showHistory(), showMergeForm(), and wfEscapeWikiText().

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 430 of file SpecialMergeHistory.php.

Returns:
void

Definition at line 44 of file SpecialMergeHistory.php.

Referenced by execute().

As we use the same small set of messages in various methods and that they are called often, we call them once and save them in $this->message.

Definition at line 75 of file SpecialMergeHistory.php.


Member Data Documentation

SpecialMergeHistory::$mAction

Definition at line 31 of file SpecialMergeHistory.php.

SpecialMergeHistory::$mComment

Definition at line 31 of file SpecialMergeHistory.php.

SpecialMergeHistory::$mDest

Definition at line 31 of file SpecialMergeHistory.php.

SpecialMergeHistory::$mDestID

Definition at line 31 of file SpecialMergeHistory.php.

Title SpecialMergeHistory::$mDestObj

Definition at line 35 of file SpecialMergeHistory.php.

SpecialMergeHistory::$mTarget

Definition at line 31 of file SpecialMergeHistory.php.

SpecialMergeHistory::$mTargetID

Definition at line 31 of file SpecialMergeHistory.php.

Title SpecialMergeHistory::$mTargetObj

Definition at line 35 of file SpecialMergeHistory.php.

SpecialMergeHistory::$mTimestamp

Definition at line 31 of file SpecialMergeHistory.php.


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