MobileFrontend
MobileoptimisedfrontendforMediaWiki
|
Basic mobile implementation of SpecialPage to use in specific mobile special pages. More...
Public Member Functions | |
__construct ( $page) | |
executeWhenAvailable ( $subPage) | |
Executes the page when available in the current $mode. More... | |
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... | |
Protected Member Functions | |
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. | |
Basic mobile implementation of SpecialPage to use in specific mobile special pages.
MobileSpecialPage::__construct | ( | $page | ) |
string | $page |
MobileSpecialPage::execute | ( | $subPage | ) |
Checks the availability of the special page in actual mode and display the page, if available.
string | null | $subPage | parameter submitted as "subpage" |
Reimplemented in SpecialMobileOptions, and MobileSpecialPageFeed.
MobileSpecialPage::executeWhenAvailable | ( | $subPage | ) |
Executes the page when available in the current $mode.
string | null | $subPage | parameter as subpage of specialpage |
Reimplemented in SpecialMobileHistory, SpecialMobileContributions, SpecialMobileMenu, SpecialNearby, SpecialUploads, SpecialMobileDiff, SpecialMobileWatchlist, and SpecialMobileLanguages.
MobileSpecialPage::getDesktopUrl | ( | $subPage | ) |
When overridden in a descendant class, returns desktop URL for this special page.
string | null | $subPage | Subpage passed in URL |
Reimplemented in SpecialMobileDiff, SpecialMobileHistory, and SpecialMobileContributions.
MobileSpecialPage::isListed | ( | ) |
Returns if this page is listed on Special:SpecialPages.
|
protected |
Renders a banner telling the user the page is unavailable.
string | $msg | Message to display |