Static/PhpInclude/FareOfficeLib/AlphaCode/Debug.php File Reference

Includes debug functions. More...

Go to the source code of this file.

Enumerations

enum  EL_LEVEL_0
enum  EL_LEVEL_1
enum  EL_LEVEL_2
enum  EL_LEVEL_3
enum  EL_LEVEL_4
enum  ECAT_DIAGNOSTIC

Functions

 assertLog ($condition_, $errLevel_, $errCategory_, $subject_, $variables_=array())
 Enter description here.


Detailed Description

Includes debug functions.

Author:
Daniel Lindh <[email protected]>
Todo:
Find all code that are using assertlog, and modify.

Create a common interface for debug and unit test classes something assertNeedFalse etc.

Definition in file Debug.php.


Enumeration Type Documentation

Definition at line 20 of file Debug.php.

enum EL_LEVEL_0

Definition at line 14 of file Debug.php.

enum EL_LEVEL_1

Definition at line 15 of file Debug.php.

enum EL_LEVEL_2

Definition at line 16 of file Debug.php.

enum EL_LEVEL_3

Definition at line 17 of file Debug.php.

enum EL_LEVEL_4

Definition at line 18 of file Debug.php.


Function Documentation

assertLog ( condition_,
errLevel_,
errCategory_,
subject_,
variables_ = array() 
)

Enter description here.

..

Parameters:
$condition_ - bool - true - Everything is ok. false - Invalid condition, should assert.
$errLevel_ 
$errCategory_ 
$subject_ 
$variables_ 

Definition at line 33 of file Debug.php.

00034   {
00035     // Go through all assertLog, and see if any level should be changed,
00036     // maybe more SMS errors. Because most of the problems should never occure.
00037     if (!$condition_)
00038     {
00039       echo "<pre>asserted";
00040       var_dump(debug_backtrace());
00041       echo "</pre>";
00042       exit;
00043     }
00044   }


Generated on Wed May 6 23:28:24 2009 for fareofficelib by  doxygen 1.5.8