PHP Class Mobile, ezcrypt

Show file Open project: novaking/ezcrypt Class Usage Examples

Protected Properties

Property Type Description
$accept
$detectionRules
$isMobile Assume the visitor has a desktop environment.
$isTablet
$operatingSystemName
$operatingSystems List of mobile Operating Systems.
$phoneDeviceName
$phoneDevices List of mobile devices (phones)
$tabletDevicename
$tabletDevices List of tablet devices.
$userAgent
$userAgentName
$userAgents List of mobile User Agents.

Public Methods

Method Description
__call ( string $name, array $arguments ) : mixed Magic overloading method.
__construct ( )
getRules ( )
isMobile ( ) : boolean Check if the device is mobile.
isTablet ( ) : boolean Check if the device is a tablet.

Private Methods

Method Description
_detect ( type $key = '' ) : boolean | null Private method that does the detection of the mobile devices.

Method Details

__call() public method

Magic overloading method.
public __call ( string $name, array $arguments ) : mixed
$name string
$arguments array
return mixed

__construct() public method

public __construct ( )

getRules() public method

public getRules ( )

isMobile() public method

Returns true if any type of mobile device detected, including special ones
public isMobile ( ) : boolean
return boolean

isTablet() public method

Return true if any type of tablet device is detected.
public isTablet ( ) : boolean
return boolean

Property Details

$accept protected property

protected $accept

$detectionRules protected property

protected $detectionRules

$isMobile protected property

Assume the visitor has a desktop environment.
protected $isMobile

$isTablet protected property

protected $isTablet

$operatingSystemName protected property

protected $operatingSystemName

$operatingSystems protected property

List of mobile Operating Systems.
protected $operatingSystems

$phoneDeviceName protected property

protected $phoneDeviceName

$phoneDevices protected property

List of mobile devices (phones)
protected $phoneDevices

$tabletDevicename protected property

protected $tabletDevicename

$tabletDevices protected property

List of tablet devices.
protected $tabletDevices

$userAgent protected property

protected $userAgent

$userAgentName protected property

protected $userAgentName

$userAgents protected property

List of mobile User Agents.
protected $userAgents