PHP Class Mobile, ezcrypt

Mostra 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_oe property

protected $accept

$detectionRules protected_oe property

protected $detectionRules

$isMobile protected_oe property

Assume the visitor has a desktop environment.
protected $isMobile

$isTablet protected_oe property

protected $isTablet

$operatingSystemName protected_oe property

protected $operatingSystemName

$operatingSystems protected_oe property

List of mobile Operating Systems.
protected $operatingSystems

$phoneDeviceName protected_oe property

protected $phoneDeviceName

$phoneDevices protected_oe property

List of mobile devices (phones)
protected $phoneDevices

$tabletDevicename protected_oe property

protected $tabletDevicename

$tabletDevices protected_oe property

List of tablet devices.
protected $tabletDevices

$userAgent protected_oe property

protected $userAgent

$userAgentName protected_oe property

protected $userAgentName

$userAgents protected_oe property

List of mobile User Agents.
protected $userAgents