MediaWiki  REL1_24
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.
 formatRevisionRow ($row)
 merge ()
 Actually attempt the history move.
 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 ()

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

Protected Attributes

string $mAction
 *
string $mComment
 *
string $mDest
 *
int $mDestID
 *
Title $mDestObj
 *
bool $mMerge
 Was posted? *.
bool $mSubmitted
 Was submitted? *.
string $mTarget
 *
int $mTargetID
 *
Title $mTargetObj
 *
string $mTimestamp
 *

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

Definition at line 53 of file SpecialMergeHistory.php.

Referenced by loadRequestParams().


Member Function Documentation

Default execute method Checks user permissions.

This must be overridden by subclasses; it will be made abstract in a future version

Parameters:
string | null$subPage

Reimplemented from SpecialPage.

Definition at line 100 of file SpecialMergeHistory.php.

Definition at line 266 of file SpecialMergeHistory.php.

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

Returns:
void

Definition at line 60 of file SpecialMergeHistory.php.

References __construct().

Actually attempt the history move.

Todo:
if all versions of page A are moved to B and then a user tries to do a reverse-merge via the "unmerge" log link, then page A will still be a redirect (as it was after the original merge), though it will have the old revisions back from before (as expected). The user may have to "undo" the redirect manually to finish the "unmerge". Maybe this should delete redirects at the target page of merges?
Returns:
bool Success

Definition at line 327 of file SpecialMergeHistory.php.

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

Definition at line 179 of file SpecialMergeHistory.php.


Member Data Documentation

string SpecialMergeHistory::$mAction [protected]

*

Definition at line 31 of file SpecialMergeHistory.php.

string SpecialMergeHistory::$mComment [protected]

*

Definition at line 43 of file SpecialMergeHistory.php.

string SpecialMergeHistory::$mDest [protected]

*

Definition at line 35 of file SpecialMergeHistory.php.

int SpecialMergeHistory::$mDestID [protected]

*

Definition at line 41 of file SpecialMergeHistory.php.

Title SpecialMergeHistory::$mDestObj [protected]

*

Definition at line 51 of file SpecialMergeHistory.php.

bool SpecialMergeHistory::$mMerge [protected]

Was posted? *.

Definition at line 45 of file SpecialMergeHistory.php.

bool SpecialMergeHistory::$mSubmitted [protected]

Was submitted? *.

Definition at line 47 of file SpecialMergeHistory.php.

string SpecialMergeHistory::$mTarget [protected]

*

Definition at line 33 of file SpecialMergeHistory.php.

int SpecialMergeHistory::$mTargetID [protected]

*

Definition at line 39 of file SpecialMergeHistory.php.

Title SpecialMergeHistory::$mTargetObj [protected]

*

Definition at line 49 of file SpecialMergeHistory.php.

string SpecialMergeHistory::$mTimestamp [protected]

*

Definition at line 37 of file SpecialMergeHistory.php.


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