MobileFrontend
MobileoptimisedfrontendforMediaWiki
SpecialMobileOptions Class Reference

Adds a special page with mobile specific preferences. More...

+ Inheritance diagram for SpecialMobileOptions:
+ Collaboration diagram for SpecialMobileOptions:

Public Member Functions

 doesWrites ()
 
 setJsConfigVars ()
 Set the required config for the page.
 
 execute ( $par='')
 Render the special page. More...
 
- Public Member Functions inherited from MobileSpecialPage
 __construct ( $page)
 
 executeWhenAvailable ( $subPage)
 Executes the page when available in the current $mode. 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...
 
 getDesktopUrl ( $subPage)
 When overridden in a descendant class, returns desktop URL for this special page. More...
 

Protected Attributes

 $hasDesktopVersion = true
 
- 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
 

Additional Inherited Members

- 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.
 

Detailed Description

Adds a special page with mobile specific preferences.

Member Function Documentation

◆ doesWrites()

SpecialMobileOptions::doesWrites ( )
Returns
bool

◆ execute()

SpecialMobileOptions::execute (   $par = '')

Render the special page.

Parameters
string | null$parParameter submitted as subpage

Reimplemented from MobileSpecialPage.


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