MobileFrontend
MobileoptimisedfrontendforMediaWiki
MockSpecialMobileDiff Class Reference
+ Inheritance diagram for MockSpecialMobileDiff:
+ Collaboration diagram for MockSpecialMobileDiff:

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.
 
- Public Member Functions inherited from SpecialMobileDiff
 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...
 
- Public Member Functions inherited from MobileSpecialPage
 __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 Public Member Functions inherited from SpecialMobileDiff
static getMobileUrlFromDesktop (WebRequest $req)
 Get the url for the mobile diff special page to use in Desktop footer. More...
 

Additional Inherited Members

- Protected Member Functions inherited from SpecialMobileDiff
 getPrevId ()
 Returns the ID of the previous Revision, if it is set, otherwise 0. More...
 
- Protected Member Functions inherited from MobileSpecialPage
 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 inherited from SpecialMobileDiff
 $hasDesktopVersion = true
 
 $mDiffEngine
 
- Protected Attributes inherited from MobileSpecialPage
 $hasDesktopVersion = false
 
 $mode = 'stable'
 
 $listed = false
 
 $unstyledContent = true
 
 $config = null
 
 $errorNotFoundTitleMsg = 'mobile-frontend-generic-404-title'
 
 $errorNotFoundDescriptionMsg = 'mobile-frontend-generic-404-desc'
 
 $mobileContext
 

Member Function Documentation

◆ getRevision()

static MockSpecialMobileDiff::getRevision (   $id)
static

Get the revision object from ID.

Parameters
int$idID of the wanted revision
Returns
Revision

Reimplemented from SpecialMobileDiff.


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