Browser detection

Class Methods

The following methods can be invoked on instances of this class.

handle()

Constructor

getUAKey(string strKey)

Returns a value from the cached useragent

getBrowser()

Returns the current web browser

getBrowserIsIE()

Returns true if the browser is IE

getBrowserIsGecko()

Returns true if the browser is Gecko

getBrowserIsWebkit()

Returns true if the browser is IE

getBrowserVersion()

Returns the current browser version

getBrowserFormatted()

Returns information about the browser as a formatted string

getPlatform()

Returns the platform of the user

getCrawler()

Returns the search engine / crawler

getIsMobile()

getUserAgent()

Returns the current user agent

getUserAgentArray(string strUA)

Returns a useragent array
If the $strUA parameter is not passed, the user agent from the current request will be used

getLanguage()

Returns the current user language

getAsString()

Returns the user agent as a readable string

__call(mixed strName, array arrArguments)

Magic function to trap calls to undefined functions and throw an exception rather than
a fatal error.

__callStatic(mixed strName, array arrArguments)

Magic function to trap static calls to undefined functions and throw an exception rather
than a fatal error.

classGetFolder()

Returns the folder where the class exists

__set_state(mixed arrValues)

classGetFolderResources()

Returns the folder where the class's resources exist

classGetSrcFile()

Returns the folder where the class exists

classGetSrcHash()

Returns the folder where the class exists

classGetReflection()

Returns the reflection data for the current class

classGetReflectionAnnotation(string strField)

Returns a specific class annotation for the current class