_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
stringoptional character set, defaults to 'utf-8'
boolaccepts_language(string $language) : bool
stringoptional ISO language code, defaults to 'en'
boolbrowser() : string
stringcharsets() : array
arrayis_mobiledevice() : bool
boolis_robot() : bool
boollanguages() : array
arrayplatform() : string
stringproperties() : array
arrayproperty(string $property) : string | null
string
stringnull
version() : string
stringget_from_browscap() : mixed
mixedarray if a match is found, of false if not cached yetparse_browscap() : array
\Exception |
|
|---|---|
\FuelException |
arrayarray with parsed download info, or empty if the download is disabled of failed$config : array
$defaults : array
$keys : array
$properties : array
$user_agent : string