My Project
 All Data Structures Namespaces Functions Variables
Public Member Functions | Data Fields
CI_User_agent Class Reference

Public Member Functions

 __construct ()
 
 is_browser ($key=NULL)
 
 is_robot ($key=NULL)
 
 is_mobile ($key=NULL)
 
 is_referral ()
 
 agent_string ()
 
 platform ()
 
 browser ()
 
 version ()
 
 robot ()
 
 mobile ()
 
 referrer ()
 
 languages ()
 
 charsets ()
 
 accept_lang ($lang= 'en')
 
 accept_charset ($charset= 'utf-8')
 

Data Fields

 $agent = NULL
 
 $is_browser = FALSE
 
 $is_robot = FALSE
 
 $is_mobile = FALSE
 
 $languages = array()
 
 $charsets = array()
 
 $platforms = array()
 
 $browsers = array()
 
 $mobiles = array()
 
 $robots = array()
 
 $platform = ''
 
 $browser = ''
 
 $version = ''
 
 $mobile = ''
 
 $robot = ''
 

Constructor & Destructor Documentation

__construct ( )

Constructor

Sets the User Agent and runs the compilation routine

public

Returns
void

Member Function Documentation

accept_charset (   $charset = 'utf-8')

Test for a particular character set

public

Returns
bool
accept_lang (   $lang = 'en')

Test for a particular language

public

Returns
bool
agent_string ( )

Agent String

public

Returns
string
browser ( )

Get Browser Name

public

Returns
string
charsets ( )

Get the accepted Character Sets

public

Returns
array
is_browser (   $key = NULL)

Is Browser

public

Returns
bool
is_mobile (   $key = NULL)

Is Mobile

public

Returns
bool
is_referral ( )

Is this a referral from another site?

public

Returns
bool
is_robot (   $key = NULL)

Is Robot

public

Returns
bool
languages ( )

Get the accepted languages

public

Returns
array
mobile ( )

Get the Mobile Device

public

Returns
string
platform ( )

Get Platform

public

Returns
string
referrer ( )

Get the referrer

public

Returns
bool
robot ( )

Get The Robot Name

public

Returns
string
version ( )

Get the Browser Version

public

Returns
string

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