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

Implements additional functions to use in MobileFrontend. More...

Static Public Member Functions

static blankUserPageHTML (OutputPage $out, Title $title)
 Provide alternative HTML for a user page which has not been created.
 
static domParseWithContentProvider (IContentProvider $provider, OutputPage $out, $mobileFormatHtml=true)
 Obtains content using the given content provider and routes it to the mobile formatter if required.
 
static getWikibaseDescription ( $item)
 Returns a short description of a page from Wikidata.
 

Static Protected Member Functions

static getUserPageContent (IContextSource $output, User $pageUser, Title $title)
 Generate user page content for non-existent user pages.
 

Detailed Description

Implements additional functions to use in MobileFrontend.

Member Function Documentation

◆ blankUserPageHTML()

static ExtMobileFrontend::blankUserPageHTML ( OutputPage $out,
Title $title )
static

Provide alternative HTML for a user page which has not been created.

Let the user know about it with pretty graphics and different texts depending on whether the user is the owner of the page or not.

◆ domParseWithContentProvider()

static ExtMobileFrontend::domParseWithContentProvider ( IContentProvider $provider,
OutputPage $out,
$mobileFormatHtml = true )
static

Obtains content using the given content provider and routes it to the mobile formatter if required.

Parameters
IContentProvider$provider
OutputPage$out
bool$mobileFormatHtmlwhether content should be run through the MobileFormatter
Returns
string

◆ getUserPageContent()

static ExtMobileFrontend::getUserPageContent ( IContextSource $output,
User $pageUser,
Title $title )
staticprotected

Generate user page content for non-existent user pages.

Parameters
IContextSource$output
User$pageUserowner of the user page
Title$title
Returns
string

◆ getWikibaseDescription()

static ExtMobileFrontend::getWikibaseDescription ( $item)
static

Returns a short description of a page from Wikidata.

Parameters
string$itemWikibase id of the page
Returns
string|null

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