MobileFrontend
MobileoptimisedfrontendforMediaWiki
|
Public Member Functions | |
executeBadQuery () | |
Generate a 404 Error message, that revisions can not be found. | |
displayDiffPage () | |
Setups the mobile DifferenceEngine and displays a mobile optimised diff. | |
![]() | |
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... | |
Additional Inherited Members | |
![]() | |
getPrevId () | |
Returns the ID of the previous Revision, if it is set, otherwise 0. More... | |
![]() | |
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. | |
![]() | |
$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 | |
|
static |
Get the revision object from ID.
int | $id | ID of the wanted revision |
Reimplemented from SpecialMobileDiff.