MediaWiki  REL1_19
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
 $mDestObj
 $mTarget
 $mTargetID
 $mTargetObj
 $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


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

Reimplemented from SpecialPage.

Definition at line 83 of file SpecialMergeHistory.php.

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

Here is the call graph for this function:

Returns:
void

Definition at line 45 of file SpecialMergeHistory.php.

References SpecialPage\getRequest(), SpecialPage\getUser(), Title\newFromURL(), and preCacheMessages().

Referenced by execute().

Here is the call graph for this function:

Here is the caller graph for this function:

Definition at line 290 of file SpecialMergeHistory.php.

References $comment, $count, WikiPage\factory(), MagicWord\get(), SpecialPage\getOutput(), Title\newFromID(), wfGetDB(), wfMsgExt(), wfMsgForContent(), wfRunHooks(), and wfTimestamp().

Referenced by execute().

Here is the call graph for this function:

Here is the caller graph for this function:

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

References wfMsgExt().

Referenced by loadRequestParams().

Here is the call graph for this function:

Here is the caller graph for this function:

Definition at line 131 of file SpecialMergeHistory.php.

References $wgScript, Xml\closeElement(), Xml\element(), SpecialPage\getOutput(), SpecialPage\getTitle(), Html\hidden(), Xml\input(), Xml\label(), Xml\openElement(), Xml\submitButton(), and wfMsg().

Referenced by execute(), and showHistory().

Here is the call graph for this function:

Here is the caller graph for this function:


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.

SpecialMergeHistory::$mDestObj

Definition at line 36 of file SpecialMergeHistory.php.

SpecialMergeHistory::$mTarget

Definition at line 31 of file SpecialMergeHistory.php.

SpecialMergeHistory::$mTargetID

Definition at line 31 of file SpecialMergeHistory.php.

SpecialMergeHistory::$mTargetObj

Definition at line 36 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: