$_majorVersion
$_majorVersion : integer
Major version number.
This 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.
setQuirk(string $quirk, string $value = true)
Sets unique behavior for the current browser.
string | $quirk | The behavior to set. Quirks:
|
string | $value | Special behavior parameter. |
setFeature(string $feature, string $value = true)
Sets capabilities for the current browser.
string | $feature | The capability to set. Features:
|
string | $value | Special capability parameter. |
wasFileUploaded(string $field, string $name = null)
Determines if the file was uploaded or not. If not, will return the appropriate error message.
string | $field | The name of the field containing the uploaded file. |
string | $name | The file description string to use in the error message. Default: 'file'. |
downloadHeaders(string $filename = 'unknown', string $cType = null, boolean $inline = false, string $cLength = null)
Returns the headers for a browser download.
string | $filename | The filename of the download. |
string | $cType | The content-type description of the file. |
boolean | $inline | True if inline, false if attachment. |
string | $cLength | The content-length of this file. |