Properties

$agent

$agent : 

Type

$is_browser

$is_browser : 

Type

$is_robot

$is_robot : 

Type

$is_mobile

$is_mobile : 

Type

$languages

$languages : 

Type

$charsets

$charsets : 

Type

$platforms

$platforms : 

Type

$browsers

$browsers : 

Type

$mobiles

$mobiles : 

Type

$robots

$robots : 

Type

$platform

$platform : 

Type

$browser

$browser : 

Type

$version

$version : 

Type

$mobile

$mobile : 

Type

$robot

$robot : 

Type

Methods

__construct()

__construct() : void

Constructor

Sets the User Agent and runs the compilation routine

is_browser()

is_browser(  $key = NULL) : boolean

Is Browser

Parameters

$key

Returns

boolean

is_robot()

is_robot(  $key = NULL) : boolean

Is Robot

Parameters

$key

Returns

boolean

is_mobile()

is_mobile(  $key = NULL) : boolean

Is Mobile

Parameters

$key

Returns

boolean

is_referral()

is_referral() : boolean

Is this a referral from another site?

Returns

boolean

agent_string()

agent_string() : string

Agent String

Returns

string

platform()

platform() : string

Get Platform

Returns

string

browser()

browser() : string

Get Browser Name

Returns

string

version()

version() : string

Get the Browser Version

Returns

string

robot()

robot() : string

Get The Robot Name

Returns

string

mobile()

mobile() : string

Get the Mobile Device

Returns

string

referrer()

referrer() : boolean

Get the referrer

Returns

boolean

languages()

languages() : array

Get the accepted languages

Returns

array

charsets()

charsets() : array

Get the accepted Character Sets

Returns

array

accept_lang()

accept_lang(  $lang = 'en') : boolean

Test for a particular language

Parameters

$lang

Returns

boolean

accept_charset()

accept_charset(  $charset = 'utf-8') : boolean

Test for a particular character set

Parameters

$charset

Returns

boolean

_load_agent_file()

_load_agent_file() : boolean

Compile the User Agent Data

Returns

boolean

_compile_data()

_compile_data() : boolean

Compile the User Agent Data

Returns

boolean

_set_platform()

_set_platform() : mixed

Set the Platform

Returns

mixed

_set_browser()

_set_browser() : boolean

Set the Browser

Returns

boolean

_set_robot()

_set_robot() : boolean

Set the Robot

Returns

boolean

_set_mobile()

_set_mobile() : boolean

Set the Mobile Device

Returns

boolean

_set_languages()

_set_languages() : void

Set the accepted languages

_set_charsets()

_set_charsets() : void

Set the accepted character sets