/** * 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); }
/** * 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(); }
public static function clear() { self::$errorList = array(); }