API Joomla 1.5.26
Documentation des API du CMS Joomla en version 1.5

Référence de la classe JBrowser

Graphe d'héritage de JBrowser:
Graphe de collaboration de JBrowser:

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$userAgentThe browser string to parse.
string$acceptThe 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.
JBrowser::getBrowser ( )

Retrieve the current browser.

Renvoie:
string The current browser.
JBrowser::getFeature ( feature)

Retrieve the current browser capability.

Paramètres:
string$featureThe 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 
)

Returns a reference to the global Browser object, only creating it if it doesn't already exist.

This method must be invoked as:

  $browser = &JBrowser::getInstance([$userAgent[, $accept]]);

public

Paramètres:
string$userAgentThe browser string to parse.
string$acceptThe HTTP_ACCEPT settings to use.
Renvoie:
JBrowser The Browser object.

Référencé par mosGetBrowser(), mosGetOS(), et plgEditorXstandard::onDisplay().

Voici le graphe d'appel pour cette fonction :

JBrowser::getMajor ( )

Retrieve the current browser's major version.

Renvoie:
integer The current browser's major version.
JBrowser::getMinor ( )

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$quirkThe behavior to retrieve.
Renvoie:
string The value for the requested behavior.
JBrowser::getVersion ( )

Retrieve the current browser's version.

Renvoie:
string The current browser's version.
JBrowser::hasFeature ( feature)

Check the current browser capabilities.

Paramètres:
string$featureThe 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$quirkThe 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$browserThe browser to check.
Renvoie:
boolean Is the given browser the same as the current?
JBrowser::isRobot ( )

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$mimetypeThe 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$userAgentThe browser string to parse.
string$acceptThe HTTP_ACCEPT settings to use.

Références $version, et elseif.

JBrowser::setBrowser ( browser)

Sets the current browser.

Paramètres:
string$browserThe browser to set as current.
JBrowser::setFeature ( feature,
value = true 
)

Set capabilities for the current browser.

Paramètres:
string$featureThe capability to set.
string$valueSpecial capability parameter.
JBrowser::setQuirk ( quirk,
value = true 
)

Set unique behavior for the current browser.

Paramètres:
string$quirkThe behavior to set.
string$valueSpecial behavior parameter.

Documentation des données membres

JBrowser::$_accept = ''
JBrowser::$_agent = ''
JBrowser::$_browser = ''
JBrowser::$_features
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 = ''
JBrowser::$_quirks
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,
    )
JBrowser::$_robots

La documentation de cette classe a été générée à partir du fichier suivant :