MobileFrontend
MobileoptimisedfrontendforMediaWiki
|
Show the difference between two revisions of a page. More...
Public Member Functions | |
executeBadQuery () | |
Generate a 404 Error message, that revisions can not be found. | |
getRevisionsToCompare ( $revids) | |
Takes 2 ids/keywords and validates them returning respective revisions. More... | |
executeWhenAvailable ( $par) | |
Render the diff page. More... | |
getDesktopUrl ( $subPage) | |
Get the URL for Desktop version of difference view. More... | |
![]() | |
__construct ( $page) | |
execute ( $subPage) | |
Checks the availability of the special page in actual mode and display the page, if available. More... | |
setHeaders () | |
Add modules to headers and wrap content in div.content if unstyledContent = true. | |
isListed () | |
Returns if this page is listed on Special:SpecialPages. More... | |
Static Public Member Functions | |
static | getRevision ( $id) |
Get the revision object from ID. More... | |
static | getMobileUrlFromDesktop (WebRequest $req) |
Get the url for the mobile diff special page to use in Desktop footer. More... | |
Protected Member Functions | |
getPrevId () | |
Returns the ID of the previous Revision, if it is set, otherwise 0. More... | |
displayDiffPage () | |
Setups the mobile DifferenceEngine and displays a mobile optimised diff. | |
![]() | |
renderUnavailableBanner ( $msg) | |
Renders a banner telling the user the page is unavailable. More... | |
addModules () | |
Add mobile special page specific modules (styles and scripts) | |
showPageNotFound () | |
Render mobile specific error page, when special page can not be found. | |
Protected Attributes | |
$hasDesktopVersion = true | |
$mDiffEngine | |
![]() | |
$hasDesktopVersion = false | |
$mode = 'stable' | |
$listed = false | |
$unstyledContent = true | |
$config = null | |
$errorNotFoundTitleMsg = 'mobile-frontend-generic-404-title' | |
$errorNotFoundDescriptionMsg = 'mobile-frontend-generic-404-desc' | |
$mobileContext | |
Show the difference between two revisions of a page.
SpecialMobileDiff::executeWhenAvailable | ( | $par | ) |
Render the diff page.
string | null | $par | Revision IDs separated by three points (e.g. 123...124) |
Reimplemented from MobileSpecialPage.
SpecialMobileDiff::getDesktopUrl | ( | $subPage | ) |
Get the URL for Desktop version of difference view.
string | null | $subPage | URL of mobile diff page |
Reimplemented from MobileSpecialPage.
|
static |
Get the url for the mobile diff special page to use in Desktop footer.
WebRequest | $req |
|
protected |
Returns the ID of the previous Revision, if it is set, otherwise 0.
|
static |
Get the revision object from ID.
int | $id | ID of the wanted revision |
Reimplemented in MockSpecialMobileDiff.
SpecialMobileDiff::getRevisionsToCompare | ( | $revids | ) |
Takes 2 ids/keywords and validates them returning respective revisions.
int[] | $revids | Array of revision ids currently limited to 2 elements |
|
protected |
DifferenceEngine for this Diff-page