MediaWiki
REL1_20
|
Special page allowing users with the appropriate permissions to merge article histories, with some restrictions. More...
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 | |
Private Member Functions | |
loadRequestParams () | |
showHistory () |
Special page allowing users with the appropriate permissions to merge article histories, with some restrictions.
Definition at line 30 of file SpecialMergeHistory.php.
Definition at line 37 of file SpecialMergeHistory.php.
SpecialMergeHistory::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
$subPage | string|null |
Reimplemented from SpecialPage.
Definition at line 82 of file SpecialMergeHistory.php.
References SpecialPage\checkPermissions(), SpecialPage\checkReadOnly(), SpecialPage\getOutput(), loadRequestParams(), merge(), SpecialPage\msg(), SpecialPage\outputHeader(), SpecialPage\setHeaders(), showHistory(), showMergeForm(), and wfEscapeWikiText().
Definition at line 246 of file SpecialMergeHistory.php.
References $comment, $size, $user, Revision\DELETED_TEXT, Linker\formatRevisionSize(), SpecialPage\getLanguage(), SpecialPage\getUser(), Linker\linkKnown(), SpecialPage\msg(), Xml\radio(), Html\rawElement(), Linker\revComment(), Linker\revUserTools(), and wfTimestamp().
SpecialMergeHistory::loadRequestParams | ( | ) | [private] |
Definition at line 294 of file SpecialMergeHistory.php.
References $comment, $count, WikiPage\factory(), MagicWord\get(), SpecialPage\getOutput(), SpecialPage\msg(), Title\newFromID(), wfGetDB(), wfRunHooks(), and wfTimestamp().
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.
SpecialMergeHistory::showHistory | ( | ) | [private] |
Definition at line 162 of file SpecialMergeHistory.php.
References $out, Xml\closeElement(), SpecialPage\getOutput(), SpecialPage\getTitle(), SpecialPage\getUser(), Html\hidden(), Xml\input(), Xml\label(), SpecialPage\msg(), Xml\openElement(), LogEventsList\showLogExtract(), showMergeForm(), and Xml\submitButton().
Referenced by execute().
Definition at line 131 of file SpecialMergeHistory.php.
References Xml\closeElement(), Xml\element(), SpecialPage\getOutput(), SpecialPage\getTitle(), Html\hidden(), Xml\input(), Xml\label(), SpecialPage\msg(), Xml\openElement(), and Xml\submitButton().
Referenced by execute(), and showHistory().
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.