示例#1
0
 /**
  * Constructor.
  * Creates the object that handles the concrete database access.
  *
  */
 private function __construct()
 {
     if (self::$mDatabase == NULL) {
         global $smwgBaseStore;
         switch ($smwgBaseStore) {
             case SMW_STORE_TESTING:
                 trigger_error('Testing store not implemented for NotifyMe extension.');
                 break;
             case SMW_STORE_MWDB:
             default:
                 global $smwgNMIP;
                 require_once $smwgNMIP . '/includes/storage/SMW_NMStorageSQL.php';
                 self::$mDatabase = new NMStorageSQL();
                 break;
         }
     }
 }