Go to the documentation of this file.
40 parent::__construct(
'ComparePages' );
57 'label-message' =>
'compare-page1',
60 'validation-callback' =>
array( $this,
'checkExistingTitle' ),
65 'label-message' =>
'compare-rev1',
68 'validation-callback' =>
array( $this,
'checkExistingRevision' ),
73 'label-message' =>
'compare-page2',
76 'validation-callback' =>
array( $this,
'checkExistingTitle' ),
81 'label-message' =>
'compare-rev2',
84 'validation-callback' =>
array( $this,
'checkExistingRevision' ),
99 $form->setSubmitTextMsg(
'compare-submit' );
100 $form->suppressReset();
101 $form->setMethod(
'get' );
102 $form->setSubmitCallback(
array( __CLASS__,
'showDiff' ) );
105 $form->displayForm(
'' );
113 if ( $rev1 && $rev2 ) {
117 $contentHandler = $revision->getContentHandler();
118 $de = $contentHandler->createDifferenceEngine(
$form->getContext(),
122 ( $data[
'Action'] ==
'purge' ),
123 ( $data[
'Unhide'] ==
'1' )
125 $de->showDiffPage(
true );
136 return $title->getLatestRevID();
149 return $this->
msg(
'compare-invalid-title' )->parseAsBlock();
151 if ( !
$title->exists() ) {
152 return $this->
msg(
'compare-title-not-exists' )->parseAsBlock();
163 if ( $revision ===
null ) {
164 return $this->
msg(
'compare-revision-not-exists' )->parseAsBlock();
static newFromText( $text, $defaultNamespace=NS_MAIN)
Create a new Title from text, such as what one would find in a link.
skin txt MediaWiki includes four core it has been set as the default in MediaWiki since the replacing Monobook it had been been the default skin since before being replaced by Vector largely rewritten in while keeping its appearance Several legacy skins were removed in the as the burden of supporting them became too heavy to bear Those in etc for skin dependent CSS etc for skin dependent JavaScript These can also be customised on a per user by etc This feature has led to a wide variety of user styles becoming that gallery is a good place to ending in php
static newFromId( $id, $flags=0)
Load a page revision from a given revision ID number.
usually copyright or history_copyright This message must be in HTML not wikitext $subpages will be ignored and the rest of subPageSubtitle() will run. 'SkinTemplateBuildNavUrlsNav_urlsAfterPermalink' whether MediaWiki currently thinks this is a CSS JS page Hooks may change this value to override the return value of Title::isCssOrJsPage(). 'TitleIsAlwaysKnown' whether MediaWiki currently thinks this page is known isMovable() always returns false. $title whether MediaWiki currently thinks this page is movable Hooks may change this value to override the return value of Title::isMovable(). 'TitleIsWikitextPage' whether MediaWiki currently thinks this is a wikitext page Hooks may change this value to override the return value of Title::isWikitextPage() 'TitleMove' use UploadVerification and UploadVerifyFile instead $form
checkExistingRevision( $value, $alldata)
checkExistingTitle( $value, $alldata)
Implements Special:ComparePages.
the array() calling protocol came about after MediaWiki 1.4rc1.
List of Api Query prop modules.
setHeaders()
Sets headers - this should be called from the execute() method of all derived classes!
static showDiff( $data, HTMLForm $form)
getContext()
Gets the context this SpecialPage is executed in.
presenting them properly to the user as errors is done by the caller $title
msg()
Wrapper around wfMessage that sets the current context.
Parent class for all special pages.
getGroupName()
Under which header this special page is listed in Special:SpecialPages See messages 'specialpages-gro...
Represents a title within MediaWiki.
execute( $par)
Show a form for filtering namespace and username.
static revOrTitle( $revision, $title)
outputHeader( $summaryMessageKey='')
Outputs a summary message on top of special pages Per default the message key is the canonical name o...