MobileFrontend
MobileoptimisedfrontendforMediaWiki
SpecialMobileMenu Class Reference

Special page designed for rendering a skin's menu without an article Used for skins where the menu is hidden via JavaScript by default. More...

+ Inheritance diagram for SpecialMobileMenu:
+ Collaboration diagram for SpecialMobileMenu:

Public Member Functions

 executeWhenAvailable ( $par='')
 Render the navigation menu. 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...
 
 getDesktopUrl ( $subPage)
 When overridden in a descendant class, returns desktop URL for this special page. More...
 

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

Detailed Description

Special page designed for rendering a skin's menu without an article Used for skins where the menu is hidden via JavaScript by default.

Todo:
FIXME: Rename from MobileMenu to NavigationMenu

Member Function Documentation

◆ executeWhenAvailable()

SpecialMobileMenu::executeWhenAvailable (   $par = '')

Render the navigation menu.

Parameters
string | null$parnever used

Reimplemented from MobileSpecialPage.


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