Main Page | Class Hierarchy | Alphabetical List | Class List | File List | Class Members | File Members | Related Pages

fbDebug Class Reference

Inheritance diagram for fbDebug:

Inheritance graph
[legend]
List of all members.

Detailed Description

Debugging support class.

Definition at line 240 of file Debug.php.

Public Member Functions

 addLevel ($level)
 addLevel - Add debug flag to existing debug flags


Static Public Member Functions

 fbDebug ()
 getLevel ()
 setLevel ($level)
 reset ()
 is_set ($flag)
 debugging ()
 getHttps ()
 setHttps ($https)
 hr ()
 br ()
 pre ($text)
 tt ($text)
 stackdump ($stack_frames_to_discard=1)
 deprecated ($msg)
 dump ($v, $text=null)
 dump_globals ($ignore_vars= '', $no_uc_vars=false)
 log ($s)
 trace ($text=false, $stack_frames_to_discard=0)
 _enter_or_leave ($text=null, $enter_or_leave= 'Entering', $stack_frames_to_discard=2)
 enter ($text=null)
 leave ($text=null)
 assertHandler ($file, $line, $code)
 init ()

Static Private Member Functions

 _level ()
 _https ()
 _ksort (&$array)
 _dump ($v, $text=null)
 _dump_globals ($ignore_vars= '', $no_uc_vars=false)
 _error_log ($s)
 _javascript ($s)
 _log ($s)


Constructor & Destructor Documentation

fbDebug::fbDebug  )  [static]
 

Constructor

Definition at line 247 of file Debug.php.

References _level().


Member Function Documentation

fbDebug::_dump v,
text = null
[static, private]
 

Definition at line 443 of file Debug.php.

References _ksort(), _level(), debugging(), FB_DEBUG_HTML, FB_DEBUG_JAVASCRIPT, FB_DEBUG_LOG, and FB_DEBUG_TEXT.

Referenced by _dump_globals(), and dump().

fbDebug::_dump_globals ignore_vars = '',
no_uc_vars = false
[static, private]
 

Definition at line 586 of file Debug.php.

References _dump(), debugging(), hr(), pre(), and reset().

Referenced by dump_globals().

fbDebug::_enter_or_leave text = null,
enter_or_leave = 'Entering',
stack_frames_to_discard = 2
[static]
 

Parameters:
$text string
$enter_or_leave string
$stack_frames_to_discard int
Returns:
string

Definition at line 836 of file Debug.php.

References debugging(), FB_DEBUG_TRACE, getLevel(), and log().

Referenced by enter(), and leave().

fbDebug::_error_log s  )  [static, private]
 

Definition at line 639 of file Debug.php.

References tempDirectory().

Referenced by _log().

fbDebug::_https  )  [static, private]
 

Definition at line 329 of file Debug.php.

Referenced by getHttps(), and setHttps().

fbDebug::_javascript s  )  [static, private]
 

Definition at line 658 of file Debug.php.

Referenced by _log().

fbDebug::_ksort &$  array  )  [static, private]
 

Definition at line 427 of file Debug.php.

Referenced by _dump().

fbDebug::_level  )  [static, private]
 

Definition at line 257 of file Debug.php.

References FB_DEBUG_DEFAULT.

Referenced by _dump(), _log(), addLevel(), br(), debugging(), fbDebug(), getLevel(), hr(), is_set(), pre(), reset(), setLevel(), and tt().

fbDebug::_log s  )  [static, private]
 

Definition at line 710 of file Debug.php.

References _error_log(), _javascript(), _level(), debugging(), FB_DEBUG_HTML, FB_DEBUG_JAVASCRIPT, FB_DEBUG_LOG, and FB_DEBUG_TEXT.

Referenced by dump(), dump_globals(), log(), and stackdump().

fbDebug::addLevel level  ) 
 

addLevel - Add debug flag to existing debug flags

Parameters:
$level int debug flag to logical OR (|) with existing debug level

Definition at line 305 of file Debug.php.

References _level().

fbDebug::assertHandler file,
line,
code
[static]
 

Parameters:
$file string
$line int
$code int
Returns:
void

Definition at line 923 of file Debug.php.

References FB_DEBUG_NO_ASSERTS, getLevel(), log(), pre(), and stackdump().

fbDebug::br  )  [static]
 

Definition at line 380 of file Debug.php.

References _level(), debugging(), FB_DEBUG_HTML, FB_DEBUG_JAVASCRIPT, FB_DEBUG_LOG, and FB_DEBUG_TEXT.

fbDebug::debugging  )  [static]
 

Definition at line 320 of file Debug.php.

References _level(), and FB_DEBUG_OFF.

Referenced by _dump(), _dump_globals(), _enter_or_leave(), _log(), br(), dump(), dump_globals(), enter(), hr(), leave(), log(), pre(), stackdump(), trace(), and tt().

fbDebug::deprecated msg  )  [static]
 

Definition at line 547 of file Debug.php.

References FB_DEBUG_DEPRECATED, getLevel(), pre(), and stackdump().

fbDebug::dump v,
text = null
[static]
 

Definition at line 559 of file Debug.php.

References _dump(), _log(), and debugging().

Referenced by fbGettext::_loadData(), _setLocaleWindows(), getDefaultLocale(), getLocale(), getNearestLocales(), fbGettext::gettext(), numberFormat(), pushLocale(), and fbBinarySearch_Array::search().

fbDebug::dump_globals ignore_vars = '',
no_uc_vars = false
[static]
 

Definition at line 624 of file Debug.php.

References _dump_globals(), _log(), and debugging().

fbDebug::enter text = null  )  [static]
 

Parameters:
$text string
Returns:
string

Definition at line 887 of file Debug.php.

References _enter_or_leave(), debugging(), FB_DEBUG_TRACE, and getLevel().

Referenced by fbGettext::_domain(), _getLocale(), _guessLocale(), fbGettext::_loadData(), _localeStack(), _setLocale(), _setLocaleWindows(), fbGettext::_text_domain(), fbGettext::_translation_map(), fbGettext::bindtextdomain(), getAvailableLocales(), getDefaultLocale(), getLocale(), getNearestLocales(), fbGettext::gettext(), numberFormat(), parseAcceptLanguages(), popLocale(), pushLocale(), setLocale(), and fbGettext::textdomain().

fbDebug::getHttps  )  [static]
 

Definition at line 344 of file Debug.php.

References _https().

fbDebug::getLevel  )  [static]
 

Definition at line 280 of file Debug.php.

References _level().

Referenced by _enter_or_leave(), assertHandler(), deprecated(), enter(), leave(), stackdump(), and trace().

fbDebug::hr  )  [static]
 

Definition at line 363 of file Debug.php.

References _level(), debugging(), FB_DEBUG_HTML, FB_DEBUG_JAVASCRIPT, FB_DEBUG_LOG, and FB_DEBUG_TEXT.

Referenced by _dump_globals().

fbDebug::init  )  [static]
 

Definition at line 936 of file Debug.php.

fbDebug::is_set flag  )  [static]
 

Definition at line 313 of file Debug.php.

References _level().

fbDebug::leave text = null  )  [static]
 

Parameters:
$text string
Returns:
string

Definition at line 904 of file Debug.php.

References _enter_or_leave(), debugging(), FB_DEBUG_TRACE, and getLevel().

Referenced by _getLocale(), _setLocale(), _setLocaleWindows(), getAvailableLocales(), getDefaultLocale(), getLocale(), getNearestLocales(), numberFormat(), parseAcceptLanguages(), popLocale(), pushLocale(), and setLocale().

fbDebug::log s  )  [static]
 

Definition at line 734 of file Debug.php.

References _log(), and debugging().

Referenced by _enter_or_leave(), fbGeoIP_Free_Binary::_formatIP4address(), fbGeoIP_Free_Ascii::_formatIP4address(), assertHandler(), fbGeoIP_Free_Binary::getCountryIdByIP(), fbGeoIP_Free_Ascii::getCountryIdByIP(), fbBinarySearch_Array::search(), and trace().

fbDebug::pre text  )  [static]
 

Definition at line 396 of file Debug.php.

References _level(), debugging(), FB_DEBUG_HTML, and FB_DEBUG_JAVASCRIPT.

Referenced by _dump_globals(), assertHandler(), deprecated(), and trace().

fbDebug::reset  )  [static]
 

Definition at line 296 of file Debug.php.

References _level(), and FB_DEBUG_DEFAULT.

Referenced by _dump_globals().

fbDebug::setHttps https  )  [static]
 

Definition at line 351 of file Debug.php.

References _https().

fbDebug::setLevel level  )  [static]
 

Definition at line 288 of file Debug.php.

References _level().

fbDebug::stackdump stack_frames_to_discard = 1  )  [static]
 

Definition at line 480 of file Debug.php.

References _log(), debugging(), FB_DEBUG_NO_STACKDUMP, and getLevel().

Referenced by assertHandler(), and deprecated().

fbDebug::trace text = false,
stack_frames_to_discard = 0
[static]
 

Definition at line 746 of file Debug.php.

References debugging(), FB_DEBUG_TRACE, getLevel(), log(), and pre().

fbDebug::tt text  )  [static]
 

Definition at line 411 of file Debug.php.

References _level(), debugging(), FB_DEBUG_HTML, and FB_DEBUG_JAVASCRIPT.


The documentation for this class was generated from the following file:
Generated on Fri Mar 19 12:52:31 2004 for Freebeer by doxygen 1.3.6-20040222