Class SniffResponse

Description

Located in /class.SniffResponse.php (line 27)


	
			
Class Constant Summary
 JUST_OK = 'just_ok'
 MODERN = 'modern'
 NOT_OK = 'not_ok'
 UNKNOWN = 'unknown'
Method Summary
SniffResponse __construct ([String $inc_file_if_not_ok = ''], [String $inc_file_if_just_ok = ''], [String $inc_file_if_modern = ''], [String $inc_file_if_unknown = ''], [Number $iewin_min_ok = 5.5], [Number $iewin_min_modern = 6], [Number $iemac_min_ok = 5], [Number $iemac_min_modern = 5], [Number $netscape_min_ok = 6], [Number $netscape_min_modern = 7], [Number $opera_min_ok = 6], [Number $opera_min_modern = 6])
String getBrowser ()
string getBrowserStandard ()
String getVersion ()
Methods
Constructor __construct (line 61)

Set up SafetyBrowser with responses according to standard of browser

$inc_file_if_not_ok is the script included if using a browser which could mangle even relatively safe css (eg request to upgrade and exit or showing a very basic layout) $inc_file_if_just_ok is the script included if using a browser which usually displays relatively safe css OK (this setting is not usually needed) $inc_file_if_modern is the script included if using a browser which should display relatively safe css OK (this setting is not usually needed) $inc_file_if_unknown is the script included if using a browser where no user agent string available (possibly a Ghost program used or AOL proxy issue))

  • access: public
SniffResponse __construct ([String $inc_file_if_not_ok = ''], [String $inc_file_if_just_ok = ''], [String $inc_file_if_modern = ''], [String $inc_file_if_unknown = ''], [Number $iewin_min_ok = 5.5], [Number $iewin_min_modern = 6], [Number $iemac_min_ok = 5], [Number $iemac_min_modern = 5], [Number $netscape_min_ok = 6], [Number $netscape_min_modern = 7], [Number $opera_min_ok = 6], [Number $opera_min_modern = 6])
  • String $inc_file_if_not_ok
  • String $inc_file_if_just_ok
  • String $inc_file_if_modern
  • String $inc_file_if_unknown
  • Number $iewin_min_ok
  • Number $iewin_min_modern
  • Number $iemac_min_ok
  • Number $iemac_min_modern
  • Number $netscape_min_ok
  • Number $netscape_min_modern
  • Number $opera_min_ok
  • Number $opera_min_modern
getBrowser (line 357)

Return browser identified during construct

  • return: ('' if unknown)
  • access: public
String getBrowser ()
getBrowserStandard (line 346)

Returns browser standard as a constant eg MODERN

  • access: public
string getBrowserStandard ()
getVersion (line 372)

Return browser version identified during construct

  • return: ('' if unknown)
  • access: public
String getVersion ()
Class Constants
JUST_OK = 'just_ok' (line 30)
MODERN = 'modern' (line 31)
NOT_OK = 'not_ok' (line 29)
UNKNOWN = 'unknown' (line 32)

Documentation generated on Thu, 18 Aug 2005 11:36:10 +1200 by phpDocumentor 1.3.0RC3