Liste de tous les membres
Fonctions membres publiques
Attributs publics
Documentation des constructeurs et destructeur
JBrowser::__construct |
( |
$ |
userAgent = null , |
|
|
$ |
accept = null |
|
) |
| |
Create a browser instance (Constructor).
- Paramètres:
-
string | $userAgent | The browser string to parse. |
string | $accept | The HTTP_ACCEPT settings to use. |
Documentation des fonctions membres
JBrowser::_setPlatform |
( |
| ) |
|
Match 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.
Références elseif.
JBrowser::getAgentString |
( |
| ) |
|
Return the full browser agent string.
- Renvoie:
- string The browser agent string.
Retrieve the current browser.
- Renvoie:
- string The current browser.
JBrowser::getFeature |
( |
$ |
feature | ) |
|
Retrieve the current browser capability.
- Paramètres:
-
string | $feature | The capability to retrieve. |
- Renvoie:
- string The value of the requested capability.
JBrowser::getHTTPProtocol |
( |
| ) |
|
Returns the server protocol in use on the current server.
- Renvoie:
- string The HTTP server protocol version.
& JBrowser::getInstance |
( |
$ |
userAgent = null , |
|
|
$ |
accept = null |
|
) |
| |
Retrieve the current browser's major version.
- Renvoie:
- integer The current browser's major version.
Retrieve the current browser's minor version.
- Renvoie:
- integer The current browser's minor version.
JBrowser::getPlatform |
( |
| ) |
|
Return the currently matched platform.
- Renvoie:
- string The user's platform.
JBrowser::getQuirk |
( |
$ |
quirk | ) |
|
Retrieve unique behavior for the current browser.
- Paramètres:
-
string | $quirk | The behavior to retrieve. |
- Renvoie:
- string The value for the requested behavior.
Retrieve the current browser's version.
- Renvoie:
- string The current browser's version.
JBrowser::hasFeature |
( |
$ |
feature | ) |
|
Check the current browser capabilities.
- Paramètres:
-
string | $feature | The capability to check. |
- Renvoie:
- boolean Does the browser have the capability set?
JBrowser::hasQuirk |
( |
$ |
quirk | ) |
|
Check unique behavior for the current browser.
- Paramètres:
-
string | $quirk | The behavior to check. |
- Renvoie:
- boolean Does the browser have the behavior set?
JBrowser::isBrowser |
( |
$ |
browser | ) |
|
Determine if the given browser is the same as the current.
- Paramètres:
-
string | $browser | The browser to check. |
- Renvoie:
- boolean Is the given browser the same as the current?
Determines if the browser is a robot or not.
- Renvoie:
- boolean True if browser is a known robot.
JBrowser::isSSLConnection |
( |
| ) |
|
Determine if we are using a secure (SSL) connection.
- Renvoie:
- boolean True if using SSL, false if not.
JBrowser::isViewable |
( |
$ |
mimetype | ) |
|
Determines if a browser can display a given MIME type.
- Paramètres:
-
string | $mimetype | The MIME type to check. |
- Renvoie:
- boolean True if the browser can display the MIME type.
Références $type.
JBrowser::match |
( |
$ |
userAgent = null , |
|
|
$ |
accept = null |
|
) |
| |
Parses the user agent string and inititializes the object with all the known features and quirks for the given browser.
- Paramètres:
-
string | $userAgent | The browser string to parse. |
string | $accept | The HTTP_ACCEPT settings to use. |
Références $version, et elseif.
JBrowser::setBrowser |
( |
$ |
browser | ) |
|
Sets the current browser.
- Paramètres:
-
string | $browser | The browser to set as current. |
JBrowser::setFeature |
( |
$ |
feature, |
|
|
$ |
value = true |
|
) |
| |
Set capabilities for the current browser.
- Paramètres:
-
string | $feature | The capability to set. |
string | $value | Special capability parameter. |
JBrowser::setQuirk |
( |
$ |
quirk, |
|
|
$ |
value = true |
|
) |
| |
Set unique behavior for the current browser.
- Paramètres:
-
string | $quirk | The behavior to set. |
string | $value | Special behavior parameter. |
Documentation des données membres
Valeur initiale : array(
'html' => true,
'hdml' => false,
'wml' => false,
'images' => true,
'iframes' => false,
'frames' => true,
'tables' => true,
'java' => true,
'javascript' => true,
'dom' => false,
'utf' => false,
'rte' => false,
'homepage' => false,
'accesskey' => false,
'optgroup' => false,
'xmlhttpreq' => false,
'cite' => false,
'xhtml+xml' => false,
'mathml' => false,
'svg' => false
)
JBrowser::$_images = array('jpeg', 'gif', 'png', 'pjpeg', 'x-png', 'bmp') |
JBrowser::$_lowerAgent = '' |
JBrowser::$_majorVersion = 0 |
JBrowser::$_minorVersion = 0 |
JBrowser::$_mobile = false |
JBrowser::$_platform = '' |
Valeur initiale : array(
'avoid_popup_windows' => false,
'break_disposition_header' => false,
'break_disposition_filename' => false,
'broken_multipart_form' => false,
'cache_same_url' => false,
'cache_ssl_downloads' => false,
'double_linebreak_textarea' => false,
'empty_file_input_value' => false,
'must_cache_forms' => false,
'no_filename_spaces' => false,
'no_hidden_overflow_tables' => false,
'ow_gui_1.3' => false,
'png_transparency' => false,
'scrollbar_in_way' => false,
'scroll_tds' => false,
'windowed_controls' => false,
)
La documentation de cette classe a été générée à partir du fichier suivant :