MediaWiki
REL1_22
|
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 | |
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 () |
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 array(), SpecialPage\checkPermissions(), SpecialPage\checkReadOnly(), SpecialPage\getOutput(), loadRequestParams(), merge(), SpecialPage\msg(), SpecialPage\outputHeader(), SpecialPage\setHeaders(), showHistory(), showMergeForm(), and wfEscapeWikiText().
Definition at line 247 of file SpecialMergeHistory.php.
References $comment, $last, $rev, $size, $user, array(), Revision\DELETED_TEXT, Linker\formatRevisionSize(), SpecialPage\getLanguage(), SpecialPage\getUser(), Linker\linkKnown(), message, SpecialPage\msg(), Xml\radio(), Html\rawElement(), Linker\revComment(), Linker\revUserTools(), and wfTimestamp().
SpecialMergeHistory::getGroupName | ( | ) | [protected] |
Under which header this special page is listed in Special:SpecialPages See messages 'specialpages-group-*' for valid names This method defaults to group 'other'.
Reimplemented from SpecialPage.
Definition at line 430 of file SpecialMergeHistory.php.
SpecialMergeHistory::loadRequestParams | ( | ) | [private] |
Definition at line 295 of file SpecialMergeHistory.php.
References $comment, $count, array(), WikiPage\factory(), ContentHandler\getForTitle(), SpecialPage\getOutput(), SpecialPage\getUser(), 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 163 of file SpecialMergeHistory.php.
References $out, array(), Xml\closeElement(), SpecialPage\getOutput(), SpecialPage\getTitle(), SpecialPage\getUser(), Html\hidden(), Xml\input(), label, SpecialPage\msg(), Xml\openElement(), LogEventsList\showLogExtract(), showMergeForm(), Xml\submitButton(), and text.
Referenced by execute().
Definition at line 132 of file SpecialMergeHistory.php.
References array(), Xml\closeElement(), Xml\element(), SpecialPage\getOutput(), SpecialPage\getTitle(), global, Html\hidden(), Xml\input(), Xml\label(), SpecialPage\msg(), Xml\openElement(), Xml\submitButton(), and text.
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.