MobileFrontend
Mobile optimised frontend for MediaWiki
Loading...
Searching...
No Matches
SpecialMobileLanguages Class Reference

Provides a list of languages available for a page. More...

+ Inheritance diagram for SpecialMobileLanguages:
+ Collaboration diagram for SpecialMobileLanguages:

Public Member Functions

 __construct (LanguageConverterFactory $languageConverterFactory, LanguageNameUtils $languageNameUtils, MobileContext $mobileContext)
 
 execute ( $pagename)
 Render the page with a list of languages the page is available in.
 

Protected Member Functions

 processLanguages ( $data)
 Processes languages to add 'langname' property, update 'url' property to mobile domain, and sort languages in case-insensitive order.
 

Detailed Description

Provides a list of languages available for a page.

Constructor & Destructor Documentation

◆ __construct()

SpecialMobileLanguages::__construct ( LanguageConverterFactory $languageConverterFactory,
LanguageNameUtils $languageNameUtils,
MobileContext $mobileContext )
Parameters
LanguageConverterFactory$languageConverterFactory
LanguageNameUtils$languageNameUtils
MobileContext$mobileContext

Member Function Documentation

◆ execute()

SpecialMobileLanguages::execute ( $pagename)

Render the page with a list of languages the page is available in.

Parameters
string | null$pagenameThe name of the page
Exceptions
ErrorPageError

◆ processLanguages()

SpecialMobileLanguages::processLanguages ( $data)
protected

Processes languages to add 'langname' property, update 'url' property to mobile domain, and sort languages in case-insensitive order.

Parameters
array$datalist of languages to process
Returns
array list of processed languages

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