_init()
accepts_charset()
accepts_language()
browser()
charsets()
is_mobiledevice()
is_robot()
languages()
platform()
properties()
property()
version()
get_from_browscap()
parse_browscap()
$config
$defaults
$keys
$properties
$user_agent
Identifies the platform, browser, robot, or mobile device from the user agent string
This class uses PHP's get_browser() to get details from the browsers user agent string. If not available, it can use a coded alternative using the php_browscap.ini file from http://browsers.garykeith.com.
package | Fuel |
---|---|
subpackage | Core |
category | Core |
author | Harro Verton |
_init() : void
accepts_charset(string $charset) : bool
string
optional character set, defaults to 'utf-8'
bool
accepts_language(string $language) : bool
string
optional ISO language code, defaults to 'en'
bool
browser() : string
string
charsets() : array
array
is_mobiledevice() : bool
bool
is_robot() : bool
bool
languages() : array
array
platform() : string
string
properties() : array
array
property(string $property) : string | null
string
string
null
version() : string
string
get_from_browscap() : mixed
mixed
array if a match is found, of false if not cached yetparse_browscap() : array
\Exception |
|
---|---|
\FuelException |
array
array with parsed download info, or empty if the download is disabled of failed$config : array
$defaults : array
$keys : array
$properties : array
$user_agent : string