The Browser:: class provides capability information for the current web client.
Browser identification is performed by examining the HTTP_USER_AGENT environment variable provided by the web server.
Located in /Browser/Browser.php (line 27)
HTTP_ACCEPT string
Full user agent string.
Browser name.
Features.
List of viewable image MIME subtypes.
This list of viewable images works for IE and Netscape/Mozilla.
Lower-case user agent string.
Major version number.
Minor version number.
Is this a mobile browser?
List of mobile user agents.
Browsers like Mobile Safari (iPhone, iPod Touch) are much more full featured than OpenWave style browsers. This makes it dicey in some cases to treat all "mobile" browsers the same way.
Platform the browser is running on.
Quirks
Regexp for matching those robot strings.
Known robots.
List of tv user agents.
Creates a browser instance (Constructor).
Determines if files can be uploaded to the system.
Returns the headers for a browser download.
Escapes characters in javascript code if the browser requires it. %23, %26, and %2B (for some browsers) and %27 need to be escaped or else javascript will interpret it as a single quote, pound sign, or ampersand and refuse to work.
Returns the full browser agent string.
Returns the current browser.
Returns the current browser capability.
Returns the server protocol in use on the current server.
Returns the IE version stored in the session, if available.
Returns the current browser's major version.
Returns the current browser's minor version.
Returns the currently matched platform.
Returns unique behavior for the current browser.
Returns the current browser's version.
Checks the current browser capabilities.
Checks unique behavior for the current browser.
Determines if the given browser is the same as the current.
Do we consider the current browser to be a mobile device?
Determines if the browser is a robot or not.
Determines if a browser can display a given MIME type.
Parses the user agent string and inititializes the object with all the known features and quirks for the given browser.
Sets the current browser.
Sets capabilities for the current browser.
Sets the IE version in the session.
Sets unique behavior for the current browser.
Returns a reference to the global Browser object, only creating it if it doesn't already exist.
This method must be invoked as:
Determines if we are using a secure (SSL) connection.
Determines if the file was uploaded or not. If not, will return the appropriate error message.
Matches the platform of the browser.
This is a pretty simplistic implementation, but it's intended to let us tell what line breaks to send, so it's good enough for its purpose.
Documentation generated on Sun, 30 Jan 2011 05:15:37 +0000 by phpDocumentor 1.4.3