Class GetBrowser

Description

replacement for PHP's get_browser function

This class retrieves information about the user's browser. Using the UA string, this matches it against a list of regexps which identifies the browser and various features of it. The list of browsers comes from http://www.garykeith.com/browsers/downloads.asp, and this uses the csv version. Note that this can (preferably) be replaced with the built-in php function get_browser, and will do exactly that if possible.

  • todo: Override browscap to make sure dessci's search engine is recognized
  • version: 0.7
  • author: Maxwell Collins <maxwell@umn.edu>

Located in /get_browser_replace.php (line 36)


	
			
Method Summary
mixed Get ([ $ua_str = false])
void GetParent ( $parent)
void Update ( $location)
Methods
Get (line 345)

this function retrieves the UA's properties

This will return an associative array describing the user's browser. (i.e. what features it supports, what version number, whether it is a search engine crawler,etc) The keys of the array will be:

  • 'regex',
  • 'parent',
  • 'browser',
  • 'version',
  • 'majorver',
  • 'minorver',
  • 'platform',
  • 'authenticodeupdate',
  • 'cssversion',
  • 'frames',
  • 'iframes',
  • 'htmltables',
  • 'cookies',
  • 'backgroundsounds',
  • 'vbscript',
  • 'javascript',
  • 'javaapplets',
  • 'activexcontrols',
  • 'cdf',
  • 'aol',
  • 'beta',
  • 'win16',
  • 'crawler',
  • 'stripper',
  • 'wap',
  • 'netclr'

  • return: returns false on failure
mixed Get ([ $ua_str = false])
  • $ua_str
GetParent (line 298)
void GetParent ( $parent)
  • $parent
Update (line 199)
void Update ( $location)
  • $location

Documentation generated on Fri, 21 Jul 2006 10:44:31 -0500 by phpDocumentor 1.3.0RC6