MobileFrontend
Mobile optimised frontend for MediaWiki
|
Adds the mobileformat
param to API calls which use ApiParse.
More...
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. | |
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.
|
static |
Check if an API action can have the mobileformat param.
string | $action |
MobileFrontend\Api\ApiParseExtender::onAPIGetAllowedParams | ( | $module, | |
& | $params, | ||
$flags ) |
APIGetAllowedParams hook handler.
ApiBase | $module | |
array | &$params | Array of parameters |
int | $flags |