Ejemplo n.º 1
0
/**
 * By default, all errors are logged through here. Hence to see any error; we have to expicilty request for it
 * This function helps to do the real error logging into the DErrorHandler class.
 * @see DErrorHandler
*/
function _DBTSRSetErrors($error, $errorString, $filename, $line, $symbols)
{
    //check to make sure error isnt fatal
    $tag = DArray::getInstance(explode(SLASH, $filename))->last() . " ({$line}) ";
    DErrorHandler::addError("{$tag} : <b>{$errorString}</b>", $tag);
}
Ejemplo n.º 2
0
 /**
  * Finishing touches...
  * its important to show the Buffer of errors as all the errors are logged away and can only be 
  * explicitly accessed.
  * @see DErrorHandler
  */
 function __destruct()
 {
     //its important to show the Buffer of errors as all the errors are logged away and can only be
     // explicitly accessed
     DErrorHandler::showAll();
 }
Ejemplo n.º 3
0
 public static function clear()
 {
     self::$errorList = array();
 }