Public Member Functions | |
CI_User_agent () | |
_load_agent_file () | |
_compile_data () | |
_set_platform () | |
_set_browser () | |
_set_robot () | |
_set_mobile () | |
_set_languages () | |
_set_charsets () | |
is_browser () | |
is_robot () | |
is_mobile () | |
is_referral () | |
agent_string () | |
platform () | |
browser () | |
version () | |
robot () | |
mobile () | |
referrer () | |
languages () | |
charsets () | |
accept_lang ($lang= 'en') | |
accept_charset ($charset= 'utf-8') | |
Public Attributes | |
$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 = '' |
CI_User_agent::_compile_data | ( | ) |
Compile the User Agent Data
private
CI_User_agent::_load_agent_file | ( | ) |
Compile the User Agent Data
private
CI_User_agent::_set_browser | ( | ) |
Set the Browser
private
CI_User_agent::_set_charsets | ( | ) |
Set the accepted character sets
private
CI_User_agent::_set_languages | ( | ) |
Set the accepted languages
private
CI_User_agent::_set_mobile | ( | ) |
Set the Mobile Device
private
CI_User_agent::_set_platform | ( | ) |
Set the Platform
private
CI_User_agent::_set_robot | ( | ) |
Set the Robot
private
CI_User_agent::accept_charset | ( | $ | charset = 'utf-8' |
) |
Test for a particular character set
public
CI_User_agent::accept_lang | ( | $ | lang = 'en' |
) |
Test for a particular language
public
CI_User_agent::agent_string | ( | ) |
Agent String
public
CI_User_agent::browser | ( | ) |
Get Browser Name
public
CI_User_agent::charsets | ( | ) |
Get the accepted Character Sets
public
CI_User_agent::CI_User_agent | ( | ) |
Constructor
Sets the User Agent and runs the compilation routine
public
CI_User_agent::is_browser | ( | ) |
Is Browser
public
CI_User_agent::is_mobile | ( | ) |
Is Mobile
public
CI_User_agent::is_referral | ( | ) |
Is this a referral from another site?
public
CI_User_agent::is_robot | ( | ) |
Is Robot
public
CI_User_agent::languages | ( | ) |
Get the accepted languages
public
CI_User_agent::mobile | ( | ) |
Get the Mobile Device
public
CI_User_agent::platform | ( | ) |
Get Platform
public
CI_User_agent::referrer | ( | ) |
Get the referrer
public
CI_User_agent::robot | ( | ) |
Get The Robot Name
public
CI_User_agent::version | ( | ) |
Get the Browser Version
public
CI_User_agent::$agent = NULL |
CI_User_agent::$browser = '' |
CI_User_agent::$browsers = array() |
CI_User_agent::$charsets = array() |
CI_User_agent::$is_browser = FALSE |
CI_User_agent::$is_mobile = FALSE |
CI_User_agent::$is_robot = FALSE |
CI_User_agent::$languages = array() |
CI_User_agent::$mobile = '' |
CI_User_agent::$mobiles = array() |
CI_User_agent::$platform = '' |
CI_User_agent::$platforms = array() |
CI_User_agent::$robot = '' |
CI_User_agent::$robots = array() |
CI_User_agent::$version = '' |