Class phpSniff_core

Description

*****************************************************************************

*****************************************************************************

Located in /libraries/other/phpSniff/phpSniff.core.php (line 23)


	
			
Direct descendents
Class Description
 class phpSniff *****************************************************************************
Variable Summary
Method Summary
 bool browser_is ($s $s)
 void get_property (mixed $p)
 bool has_feature ($s $s)
 bool has_quirk ($s $s)
 void init ()
 bool is ($s $s)
 bool language_is ($s $s)
 array/string property ([$p $p = null])
 void _build_regex ()
 void _get_features ()
 void _get_gecko ()
 void _get_ip ()
 void _get_javascript ()
 void _get_languages ()
 void _get_os_info ()
 void _get_quirks ()
 void _get_short_name (mixed $long_name)
 bool _perform_browser_search ($data $data)
 void _perform_language_search (mixed $data)
 void _set_browser (mixed $k, mixed $v)
 void _set_feature (mixed $k)
 void _set_quirk (mixed $k)
 void _test_cookies ()
Variables
mixed $_browser_info = array(
'ua' => '',
'browser' => 'Unknown',
'version' => 0,
'maj_ver' => 0,
'min_ver' => 0,
'letter_ver' => '',
'javascript' => '0.0',
'platform' => 'Unknown',
'os' => 'Unknown',
'ip' => 'Unknown',
'cookies' => 'Unknown', // remains for backwards compatability
'ss_cookies' => 'Unknown',
'st_cookies' => 'Unknown',
'language' => '',
'long_name' => '',
'gecko' => '',
'gecko_ver' => ''
)
(line 25)
mixed $_browser_search_regex = '([a-z]+)([0-9]*)([0-9.]*)(up|dn|\+|\-)?' (line 71)
mixed $_feature_set = array(
'html' => true,
'images' => true,
'frames' => true,
'tables' => true,
'java' => true,
'plugins' => true,
'iframes' => false,
'css2' => false,
'css1' => false,
'xml' => false,
'dom' => false,
'wml' => false,
'hdml' => false
)
(line 45)
mixed $_get_languages_ran_once = false (line 70)
mixed $_language_search_regex = '([a-z-]{2,})' (line 72)
mixed $_quirks = array(
'must_cache_forms' => false,
'avoid_popup_windows' => false,
'cache_ssl_downloads' => false,
'break_disposition_header' => false,
'empty_file_input_value' => false,
'scrollbar_in_way' => false
)
(line 61)
Methods
browser_is (line 147)

browser_is

  • return: true on success ex: $client->browser_is('OP5Up');
bool browser_is ($s $s)
  • $s $s: string search phrase for browser
get_property (line 119)

get_property

alias for property

void get_property (mixed $p)
has_feature (line 169)

has_feature

  • return: true on success ex: $client->has_feature('html');
bool has_feature ($s $s)
  • $s $s: string feature we're checking on
has_quirk (line 179)

has_quirk

  • return: true on success ex: $client->has_quirk('avoid_popup_windows');
bool has_quirk ($s $s)
  • $s $s: string quirk we're looking for
init (line 78)

init

this method starts the madness

void init ()
is (line 129)

is

  • return: true on success ex: $client->is('b:OP5Up');
bool is ($s $s)
  • $s $s: string search phrase format = l:lang;b:browser
language_is (line 158)

language_is

  • return: true on success ex: $client->language_is('en-US');
bool language_is ($s $s)
  • $s $s: string search phrase for language
property (line 106)

property

  • return: entire array or value of property
array/string property ([$p $p = null])
  • $p $p: property to return . optional (null returns entire array)
_build_regex (line 417)
void _build_regex ()
_get_browser_info (line 382)
void _get_browser_info ()
_get_features (line 485)
void _get_features ()
_get_gecko (line 509)
void _get_gecko ()
_get_ip (line 407)
void _get_ip ()
_get_javascript (line 469)
void _get_javascript ()
_get_languages (line 226)
void _get_languages ()
_get_os_info (line 240)
void _get_os_info ()
_get_quirks (line 497)
void _get_quirks ()
_get_short_name (line 427)
void _get_short_name (mixed $long_name)
_perform_browser_search (line 189)

_perform_browser_search

  • return: true on success
  • private:
bool _perform_browser_search ($data $data)
  • $data $data: string what we're searching for
_perform_language_search (line 220)
void _perform_language_search (mixed $data)
_set_browser (line 535)
void _set_browser (mixed $k, mixed $v)
_set_feature (line 539)
void _set_feature (mixed $k)
_set_quirk (line 543)
void _set_quirk (mixed $k)
_test_cookies (line 432)
void _test_cookies ()

Documentation generated on Thu, 20 Jan 2005 17:10:42 +0000 by phpDocumentor 1.3.0RC3