Joomla CMS
2.5.24 (avec JPlatform 11.4 inclus)
Documentation des API du CMS Joomla en version 2.5 et du framework Joomla Platform intégré
|
Fonctions membres publiques | |
__construct ($userAgent=null, $accept=null) | |
match ($userAgent=null, $accept=null) | |
getPlatform () | |
setBrowser ($browser) | |
getBrowser () | |
getMajor () | |
getMinor () | |
getVersion () | |
getAgentString () | |
getHTTPProtocol () | |
setQuirk ($quirk, $value=true) | |
hasQuirk ($quirk) | |
getQuirk ($quirk) | |
setFeature ($feature, $value=true) | |
hasFeature ($feature) | |
getFeature ($feature) | |
isViewable ($mimetype) | |
isBrowser ($browser) | |
isRobot () | |
isMobile () | |
isSSLConnection () | |
Fonctions membres publiques inherited from JObject | |
__construct ($properties=null) | |
__toString () | |
def ($property, $default=null) | |
get ($property, $default=null) | |
getProperties ($public=true) | |
getError ($i=null, $toString=true) | |
getErrors () | |
set ($property, $value=null) | |
setProperties ($properties) | |
setError ($error) | |
toString () |
Fonctions membres publiques statiques | |
static | getInstance ($userAgent=null, $accept=null) |
static | _sortMime ($a, $b) |
Fonctions membres protégées | |
_setPlatform () | |
identifyBrowserVersion () |
Attributs protégés | |
$_majorVersion = 0 | |
$_minorVersion = 0 | |
$_browser = '' | |
$_agent = '' | |
$_lowerAgent = '' | |
$_accept = '' | |
$_accept_parsed = array() | |
$_platform = '' | |
$_robots | |
$_mobile = false | |
$_features | |
$_quirks | |
$_images = array('jpeg', 'gif', 'png', 'pjpeg', 'x-png', 'bmp') | |
Attributs protégés inherited from JObject | |
$_errors = array() |
Attributs protégés statiques | |
static | $instances = array() |
Fonctions membres privées | |
_setQuirk ($quirk, $value=true) | |
_setFeature ($feature, $value=true) |
Create a browser instance (constructor).
string | $userAgent | The browser string to parse. |
string | $accept | The HTTP_ACCEPT settings to use. |
|
private |
Internal copy of JBrowser::setFeature() to prevent deprecation warning.
string | $feature | The capability to set. |
string | $value | Special capability parameter. |
|
protected |
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.
|
private |
Set unique behavior for the current browser.
string | $quirk | The behavior to set. |
string | $value | Special behavior parameter. |
|
static |
Identify which of two types is preferred
string | $a | The first item in the comparision |
string | $b | The second item in the comparison |
Références elseif.
JBrowser::getAgentString | ( | ) |
Return the full browser agent string.
JBrowser::getBrowser | ( | ) |
Retrieve the current browser.
JBrowser::getFeature | ( | $feature | ) |
Retrieve the current browser capability.
string | $feature | The capability to retrieve. |
Références JLog\add(), null, et JLog\WARNING.
JBrowser::getHTTPProtocol | ( | ) |
Returns the server protocol in use on the current server.
Références null.
Returns the global Browser object, only creating it if it doesn't already exist.
string | $userAgent | The browser string to parse. |
string | $accept | The HTTP_ACCEPT settings to use. |
Référencé par JHtml\includeRelativeFiles(), modChrome_outline(), plgCaptchaRecaptcha\onInit(), et JApplication\redirect().
JBrowser::getMajor | ( | ) |
Retrieve the current browser's major version.
JBrowser::getMinor | ( | ) |
Retrieve the current browser's minor version.
JBrowser::getPlatform | ( | ) |
Return the currently matched platform.
JBrowser::getQuirk | ( | $quirk | ) |
Retrieve unique behavior for the current browser.
string | $quirk | The behavior to retrieve. |
Références JLog\add(), null, et JLog\WARNING.
JBrowser::getVersion | ( | ) |
Retrieve the current browser's version.
JBrowser::hasFeature | ( | $feature | ) |
Check the current browser capabilities.
string | $feature | The capability to check. |
Références JLog\add(), et JLog\WARNING.
JBrowser::hasQuirk | ( | $quirk | ) |
Check unique behavior for the current browser.
string | $quirk | The behavior to check. |
Références JLog\add(), et JLog\WARNING.
|
protected |
Set browser version, not by engine version Fallback to use when no other method identify the engine version
Références $version, JLog\add(), et JLog\NOTICE.
JBrowser::isBrowser | ( | $browser | ) |
Determine if the given browser is the same as the current.
string | $browser | The browser to check. |
JBrowser::isMobile | ( | ) |
Determines if the browser is mobile version or not.
JBrowser::isRobot | ( | ) |
Determines if the browser is a robot or not.
JBrowser::isSSLConnection | ( | ) |
Determine if we are using a secure (SSL) connection.
JBrowser::isViewable | ( | $mimetype | ) |
Determines if a browser can display a given MIME type.
Note that image/jpeg and image/pjpeg appear to be the same entity, but Mozilla doesn't seem to want to accept the latter. For our purposes, we will treat them the same.
string | $mimetype | The MIME type to check. |
Références $type.
Parses the user agent string and inititializes the object with all the known features and quirks for the given browser.
string | $userAgent | The browser string to parse. |
string | $accept | The HTTP_ACCEPT settings to use. |
JBrowser::setBrowser | ( | $browser | ) |
Sets the current browser.
string | $browser | The browser to set as current. |
JBrowser::setFeature | ( | $feature, | |
$value = true |
|||
) |
Set capabilities for the current browser.
string | $feature | The capability to set. |
string | $value | Special capability parameter. |
Références JLog\add(), et JLog\WARNING.
JBrowser::setQuirk | ( | $quirk, | |
$value = true |
|||
) |
Internal copy of JBrowser::setQuirk() to prevent deprecation warning.
string | $quirk | The behavior to set. |
string | $value | Special behavior parameter. |
Références JLog\add(), et JLog\WARNING.
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
staticprotected |