MobileFrontend
Mobile optimised frontend for MediaWiki
Loading...
Searching...
No Matches
MobileFrontend\Devices\DeviceProperties Class Reference

A Data Transfer Object whose properties are whether the device making the request is a mobile device, a tablet device, or neither. More...

Public Member Functions

 __construct ( $isMobileDevice, $isTabletDevice)
 
 isMobileDevice ()
 Is the device a mobile device?
 
 isTabletDevice ()
 Is the device a tablet device?
 

Detailed Description

A Data Transfer Object whose properties are whether the device making the request is a mobile device, a tablet device, or neither.

Constructor & Destructor Documentation

◆ __construct()

MobileFrontend\Devices\DeviceProperties::__construct ( $isMobileDevice,
$isTabletDevice )
Parameters
bool$isMobileDevice
bool$isTabletDevice

Member Function Documentation

◆ isMobileDevice()

MobileFrontend\Devices\DeviceProperties::isMobileDevice ( )

Is the device a mobile device?

Returns
bool

◆ isTabletDevice()

MobileFrontend\Devices\DeviceProperties::isTabletDevice ( )

Is the device a tablet device?

Returns
bool

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