MobileFrontend
Mobile optimised frontend for MediaWiki
|
Detects mobile devices by testing whether a custom request header is present. More...
Public Member Functions | |
__construct (Config $config) | |
detectDeviceProperties (WebRequest $request, array $server) | |
@inheritDoc | |
Detects mobile devices by testing whether a custom request header is present.
$wgMFMobileHeader
. MobileFrontend\Devices\CustomHeaderDeviceDetector::__construct | ( | Config | $config | ) |
Config | $config | The global config. Currently this can be any instance of GlobalVarConfig . |
GlobalVarConfig#__construct
accepts a custom prefix to avoid repeating prefixes in #get
calls, e.g.MobileFrontend\Devices\CustomHeaderDeviceDetector::detectDeviceProperties | ( | WebRequest | $request, |
array | $server ) |
@inheritDoc
Implements MobileFrontend\Devices\DeviceDetector.