Class BROWSER

Description

Identifies the browser for this session.

Identifies as much as possible of the browser name and version, OS name and version, and the renderer name and version. The renderer is then used to determine which capabilites are supported.

Located in Program_Root/browser.php (line 103)



	

			
Variable Summary
 string $user_agent_string
Method Summary
 void BROWSER ()
 string domain ()
 DATE_TIME gecko_date ()
 string interpreted_system_name ()
 string ip_address ()
 bool is (integer $code)
 string name ()
 string renderer_name ()
 string renderer_version ()
 bool supports (integer $code)
 string system_id ()
 string system_name ()
 string system_version ()
 string version ()
Variables
string $user_agent_string (line 107)

User-agent string received in HTTP request.

  • var: string
Methods
Constructor BROWSER (line 109)
void BROWSER ()
domain (line 277)

Resolve the domain name of the browser.

  • return: string
string domain ()
gecko_date (line 207)

Build date of the browser, if built with Gecko.

Gecko is the mozilla browser technology. Conforming user agent strings include the build date of the Gecko component. (Can be empty)

  • return: DATE_TIME
DATE_TIME gecko_date ()
interpreted_system_name (line 176)

Calculated system name.

The most likely operating system derived from the user agent string.

  • return: string
string interpreted_system_name ()
ip_address (line 285)

Return actual ip address of browser (resolves proxies).

  • return: string
string ip_address ()
is (line 217)

Does the browser use this renderer or run on this operating system?.

See the browser renderer/OS constants.

  • return: bool
bool is (integer $code)
  • integer $code
name (line 139)

Name of the browser.

Not necessarily the same as the renderer name. AOL uses the IE engine or the Gecko engine, depending on version. MSN uses the IE engine.

  • return: string
string name ()
renderer_name (line 119)

Identifies the technology used by this browser.

This is often different than the name, since many browsers employ embedded renderers like Gecko, or are rebranded like Opera Composer browsers.

  • return: string
string renderer_name ()
renderer_version (line 129)

Identifies the version of the technology used by this browser.

This is the number used internall to identify whether a feature is supported.

string renderer_version ()
supports (line 227)

Is the requested functionality supported?.

See the browser functionality constants.

  • return: bool
bool supports (integer $code)
  • integer $code
system_id (line 187)

Fully formatted operating system id.

Returns as much information about the operating system as possible.

  • return: string
string system_id ()
system_name (line 158)

Specific name of the operating system.

  • return: string
string system_name ()
system_version (line 167)

Operating system version.

This is specific, like Windows NT 5.1 (Windows 2000) will return 5.1, not 2000.

  • return: string
string system_version ()
version (line 150)

Version of the browser.

Not necessarily the same as the renderer version. Largely useless identifier for determining feature support, but nice to use when showing a user which browser they are running. e.g. displaying 'MSN 7.0' instead of 'IE 5.5sp1'.

  • return: string
string version ()

Documention generated on Sun, 23 Feb 2003 11:05:38 +0100 by phpDocumentor 1.2.0rc1