示例#1
0
 public static function exceptionHandler($exception)
 {
     $msg = $exception->getMessage() . ' | ' . $exception->getFile() . ' #' . $exception->getLine();
     RTLog::set($msg, get_class($exception));
 }
示例#2
0
 protected static function getInstance()
 {
     if (self::$instance === NULL) {
         $class = __CLASS__;
         self::$instance = new $class();
     }
     return self::$instance;
 }