MediaWiki
REL1_20
|
Provides abstraction for a device. More...
Public Member Functions | |
detectDevice ($userAgent, $acceptHeader= '') | |
detectDeviceName ($userAgent, $acceptHeader= '') | |
detectDeviceProperties ($userAgent, $acceptHeader= '') | |
detectFormatName ($userAgent, $acceptHeader= '') | |
getCssFiles () | |
getDevice ($formatName) | |
getDeviceProperties ($deviceName) | |
Static Public Member Functions | |
static | factory () |
Returns an instance of detection class, overridable by extensions. | |
Static Private Attributes | |
static | $formats |
Provides abstraction for a device.
A device can select which format a request should receive and may be extended to provide access to particular device functionality.
Definition at line 122 of file DeviceDetection.php.
DeviceDetection::detectDevice | ( | $ | userAgent, |
$ | acceptHeader = '' |
||
) |
$userAgent | ||
string | $acceptHeader |
Definition at line 301 of file DeviceDetection.php.
References detectFormatName(), and getDevice().
DeviceDetection::detectDeviceName | ( | $ | userAgent, |
$ | acceptHeader = '' |
||
) |
$userAgent | string |
$acceptHeader | string |
Implements IDeviceDetector.
Definition at line 358 of file DeviceDetection.php.
References wfProfileIn(), and wfProfileOut().
Referenced by detectDeviceProperties(), and detectFormatName().
DeviceDetection::detectDeviceProperties | ( | $ | userAgent, |
$ | acceptHeader = '' |
||
) |
$userAgent | ||
string | $acceptHeader |
Implements IDeviceDetector.
Definition at line 311 of file DeviceDetection.php.
References detectDeviceName(), and getDeviceProperties().
DeviceDetection::detectFormatName | ( | $ | userAgent, |
$ | acceptHeader = '' |
||
) |
$userAgent | string |
$acceptHeader | string |
Definition at line 349 of file DeviceDetection.php.
References detectDeviceName().
Referenced by detectDevice().
static DeviceDetection::factory | ( | ) | [static] |
Returns an instance of detection class, overridable by extensions.
Definition at line 285 of file DeviceDetection.php.
Definition at line 449 of file DeviceDetection.php.
References $files.
DeviceDetection::getDevice | ( | $ | formatName | ) |
$formatName |
Definition at line 321 of file DeviceDetection.php.
Referenced by detectDevice().
DeviceDetection::getDeviceProperties | ( | $ | deviceName | ) |
$deviceName |
Implements IDeviceDetector.
Definition at line 329 of file DeviceDetection.php.
Referenced by detectDeviceProperties().
DeviceDetection::$formats [static, private] |
Definition at line 124 of file DeviceDetection.php.