MobileFrontend
Mobile optimised frontend for MediaWiki
Loading...
Searching...
No Matches
MobileFrontend\Api\ApiParseExtender Class Reference

Adds the mobileformat param to API calls which use ApiParse. More...

Static Public Member Functions

static isParseAction (string $action)
 Check if an API action can have the mobileformat param.
 
static onAPIGetAllowedParams (ApiBase $module, &$params)
 APIGetAllowedParams hook handler.
 

Detailed Description

Adds the mobileformat param to API calls which use ApiParse.

The param should be used in conjunction with the useskin paramater (to ensure ApiParse is in skin mode), and will cause MobileFrontend's onOutputPageBeforeHTML to apply mobile-specific page transformations.

Member Function Documentation

◆ isParseAction()

static MobileFrontend\Api\ApiParseExtender::isParseAction ( string $action)
static

Check if an API action can have the mobileformat param.

Parameters
string$action
Returns
bool

◆ onAPIGetAllowedParams()

static MobileFrontend\Api\ApiParseExtender::onAPIGetAllowedParams ( ApiBase $module,
& $params )
static

APIGetAllowedParams hook handler.

See also
https://www.mediawiki.org/wiki/Manual:Hooks/APIGetAllowedParams
Parameters
ApiBase$module
array | bool&$paramsArray of parameters

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