Beispiel #1
0
 public static function init($mode = self::DEBUG_MODE_SILENT, $errorHandling = self::ERROR_MODE_DEFAULT, $sessionReady = FALSE)
 {
     if (self::$_locked) {
         return;
     }
     if (is_null(self::$_disabledErrorLevel)) {
         self::$_disabledErrorLevel = error_reporting();
     }
     self::$_sessionReady = self::$_sessionReady || $sessionReady;
     if ($errorHandling == self::ERROR_MODE_INTERNAL) {
         self::takeover();
     }
     self::switchMode(strtolower(trim($mode)));
     // 		print_r(array('switch debug mode', self::$_mode,isset($_SESSION)?$_SESSION:array(),self::$_enabled,self::$_verbose));
 }