MediaWiki  REL1_24
SpecialDiff Class Reference

Redirect from Special:Diff/### to index.php?diff=### and from Special:Diff/###/### to index.php?oldid=###&diff=###. More...

Inheritance diagram for SpecialDiff:
Collaboration diagram for SpecialDiff:

List of all members.

Public Member Functions

 __construct ()
 getRedirect ($subpage)
 If the special page is a redirect, then get the Title object it redirects to.

Detailed Description

Redirect from Special:Diff/### to index.php?diff=### and from Special:Diff/###/### to index.php?oldid=###&diff=###.

All of the following are valid usages:

  • [[Special:Diff/12345]] (diff of a revision with the previous one)
  • [[Special:Diff/12345/prev]] (diff of a revision with the previous one as well)
  • [[Special:Diff/12345/next]] (diff of a revision with the next one)
  • [[Special:Diff/12345/cur]] (diff of a revision with the latest one of that page)
  • [[Special:Diff/12345/98765]] (diff between arbitrary two revisions)
Since:
1.23

Definition at line 39 of file SpecialDiff.php.


Constructor & Destructor Documentation

Definition at line 40 of file SpecialDiff.php.

References array().


Member Function Documentation

If the special page is a redirect, then get the Title object it redirects to.

False otherwise.

Parameters:
string$parSubpage string
Returns:
Title|bool

Reimplemented from RedirectSpecialPage.

Definition at line 45 of file SpecialDiff.php.


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