File /lib/main/webcore/util/browser.php

Description

  • author Marco Von Ballmoos
  • version 3.2.0
  • copyright Copyright (c) 2002-2009 Marco Von Ballmoos
  • since 2.2.1
  • filesource Source Code for this file

Constant Summary

Classes

Constants

Constant Browser_alpha_PNG (line 47)

Does the browser support PNG images with alpha-transparency?

public Browser_alpha_PNG = 2

Constant Browser_anchors_in_posts (line 79)

Are HTML anchors in a form submission allowed? Determines whether the "action" of a FORM can contain an HTML anchor (#) or not.

public Browser_anchors_in_posts = 8

Does the browser support setting/getting cookies?

public Browser_cookie = 7

Constant Browser_CSS_1 (line 52)

Does the browser support CSS Level 1?

public Browser_CSS_1 = 3

Constant Browser_CSS_2 (line 57)

Does the browser support CSS Level 2?

public Browser_CSS_2 = 4

Constant Browser_CSS_Tables (line 62)

Does the browser support CSS Tables?

public Browser_CSS_Tables = 5

Constant Browser_DHTML (line 42)

Does the browser support DHTML?

public Browser_DHTML = 1

Constant Browser_DOM_2 (line 84)

Does the browser support DOM level 2?

public Browser_DOM_2 = 9

Constant Browser_extended_HTML_newsfeeds (line 89)

Does the browser accept full HTML in newsfeeds?

public Browser_extended_HTML_newsfeeds = 10

Constant Browser_gecko (line 100)

Browser uses the Gecko renderer.

public Browser_gecko = 'gecko'

Constant Browser_icab (line 134)

Browser uses the iCab renderer.

Mac OS X only.

public Browser_icab = 'icab'

Constant Browser_ie (line 128)

Browser uses the Internet Explorer renderer.

public Browser_ie = 'ie'

Constant Browser_JavaScript (line 67)

Does the browser support Javascript?

public Browser_JavaScript = 6

Constant Browser_khtml (line 107)

Browser uses the KHTML renderer.

As of this writing, this is used by Safari and Omniweb 4.5 on the Mac and Konqueror on Linux.

public Browser_khtml = 'khtml'

Constant Browser_netscape_4 (line 94)

Browser uses the Netscape 4 renderer.

public Browser_netscape_4 = 'netscape_4'

Constant Browser_newsreader (line 155)

Browser is a newsfeed reader.

public Browser_newsreader = 'newsreader'

Constant Browser_omniweb (line 140)

Browser uses the Omniweb renderer.

Mac OS X only.

public Browser_omniweb = 'omniweb'

Constant Browser_opera (line 112)

Browser uses the Opera renderer.

public Browser_opera = 'opera'

Constant Browser_os_linux (line 175)

Browser is running on Linux (some form).

public Browser_os_linux = 'linux'

Constant Browser_os_mac (line 170)

Browser is running on MacOS (Classic or OS X).

public Browser_os_mac = 'macos'

Constant Browser_os_windows (line 165)

Browser is running on Win32.

public Browser_os_windows = 'windows'

Constant Browser_presto (line 118)

Browser uses the newer Opera renderer; version numbers changed from browsers identified as Browser_opera.

public Browser_presto = 'presto'

Constant Browser_previewer (line 160)

Browser is a previewer, like the bot Facebook uses to generate previews for linked URLs.

public Browser_previewer = 'previewer'

Constant Browser_robot (line 150)

Browser is a search or other robot.

public Browser_robot = 'robot'

Constant Browser_text (line 145)

Browser uses a text renderer.

public Browser_text = 'lynx'

Constant Browser_webtv (line 123)

Browser uses the WebTV renderer.

public Browser_webtv = 'webtv'

Constant User_agent_final_browser (line 1170)

Marks a renderer that cannot be replaced.

A USER_AGENT_RENDERER_INFO marked as such will be used for both renderer and browser information if detected in the user agent.

public User_agent_final_browser = 3

Constant User_agent_final_browser_abort (line 1179)

Marks a final browser name (skips remaining entries).

Used only for special cases where a browser sticks its name in front of another valid browser name (that cannot be added to the ignored ids). The "Shiira" browser is such a case as it adds the "Safari" at the end of the user agent.

public User_agent_final_browser_abort = 4

Constant User_agent_final_browser_temporary_renderer (line 1187)

Marks a final browser name, but overridable renderer.

The browser name is definite, but the renderer can still be overridden. The "Opera Mini" browser works this way in that it places the renderer name and version at the end.

public User_agent_final_browser_temporary_renderer = 5

Constant User_agent_final_renderer (line 1161)

Marks a renderer that is not necessarily the final browser.

A USER_AGENT_RENDERER_INFO marked as such will be used for the renderer, but can be replaced as browser by an ensuing name/version pair.

public User_agent_final_renderer = 2

Constant User_agent_temporary_renderer (line 1152)

Marks a potential renderer and browser.

A USER_AGENT_RENDERER_INFO marked as such will be used for the renderer and browser only if no other renderers or browsers are detected.

public User_agent_temporary_renderer = 1