MobileFrontend
Mobile optimised frontend for MediaWiki
|
MobileFrontend's device detector. More...
Public Member Functions | |
__construct (array $children) | |
detectDeviceProperties (WebRequest $request, array $server) | |
@inheritDoc | |
Static Public Member Functions | |
static | factory (Config $config) |
Given MobileFrontend's configuration, creates a new instance of the device detector. | |
MobileFrontend's device detector.
Detects the properties of a device by iterating over a list, //in order//, child device detectors until one returns a positive result.
The order of the child device detectors is defined in DeviceDetectorService::factory
.
MobileFrontend\Devices\DeviceDetectorService::__construct | ( | array | $children | ) |
DeviceDetector[] | $children |
MobileFrontend\Devices\DeviceDetectorService::detectDeviceProperties | ( | WebRequest | $request, |
array | $server ) |
@inheritDoc
Implements MobileFrontend\Devices\DeviceDetector.
|
static |
Given MobileFrontend's configuration, creates a new instance of the device detector.
If $wgMFAutodetectMobileView
is falsy, then no device detection will occur.
Config | $config | containing values for MFAutodetectMobileView and MFMobileHeader |