
Public Member Functions | |
| getBrand () | |
| The browser type. | |
| getVersionString () | |
| The whole version string. | |
| getMajorversion () | |
| Major version of the browser. | |
| isBot () | |
| Whether the 'browser' is actually a web crawler. | |
Public Attributes | |
| const | BROWSER_UNKNOWN = 0 |
| Unidentified browser. | |
| const | BROWSER_IE = 1 |
| Internet explorer. | |
| const | BROWSER_FIREFOX = 2 |
| Mozilla Firefox. | |
| const | BROWSER_SAFARI = 3 |
| Safari. | |
| const | BROWSER_CHROME = 4 |
| Google Chrome. | |
| const | BROWSER_OPERA = 5 |
| Opera. | |
Definition at line 6 of file IHttpClientBrowserInformation.interface.php.
| spunQ_IHttpClientBrowserInformation::getBrand | ( | ) |
The browser type.
Implemented in spunQ_HttpClientBrowserInformation.
| spunQ_IHttpClientBrowserInformation::getMajorversion | ( | ) |
Major version of the browser.
Some browser don't have a minor version (*cough* explorer *cough*), while others use obscure versioning strings that are incompatible with the actual browser version (*choke* safari). This is why the major version is the only part common to all browsers.
Implemented in spunQ_HttpClientBrowserInformation.
| spunQ_IHttpClientBrowserInformation::getVersionString | ( | ) |
The whole version string.
Note that version string need not contain its major version number.
Implemented in spunQ_HttpClientBrowserInformation.
| spunQ_IHttpClientBrowserInformation::isBot | ( | ) |
Whether the 'browser' is actually a web crawler.
We can be quite sure that a client is a browser, but we cannot know if a malicious bot is not spoofing its user-agent string, so don't trust this value too much.
Implemented in spunQ_HttpClientBrowserInformation.
1.5.9