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

+ Inheritance diagram for MobileFrontend\Api\ApiParseExtender:
+ Collaboration diagram for MobileFrontend\Api\ApiParseExtender:

Public Member Functions

 onAPIGetAllowedParams ( $module, &$params, $flags)
 APIGetAllowedParams hook handler.
 

Static Public Member Functions

static isParseAction (string $action)
 Check if an API action can have the mobileformat param.
 

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()

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

APIGetAllowedParams hook handler.

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

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