예제 #1
0
파일: LMSDB.php 프로젝트: kornelek/lms
 /**
  * Destroys database handler and singleton instance.
  * 
  * Useful for unit tests.
  * @return null Null database handler
  */
 public static function destroyInstance()
 {
     if (self::$db !== null) {
         self::$db->Destroy();
         self::$db = null;
     }
     return self::$db;
 }