dmBridge PHP API
UNLVRandomDataStoreFactory.php
00001 <?php
00002 #
00003 # dmBridge: a data access framework for CONTENTdm(R)
00004 #
00005 # Copyright © 2009, 2010, 2011 Board of Regents of the Nevada System of Higher
00006 # Education, on behalf of the University of Nevada, Las Vegas
00007 #
00008 
00013 abstract class UNLVRandomDataStoreFactory {
00014 
00018    public static function getDataStore() {
00019       $ds = DMDataStoreFactory::getDataStore();
00020       switch ($ds->getType()) {
00021          case DMDataStoreType::PDO_MySQL:
00022             $ds = UNLVRandomMySQLDataStore::getInstance();
00023             break;
00024          case DMDataStoreType::PDO_SQLite:
00025             $ds = UNLVRandomSQLiteDataStore::getInstance();
00026             break;
00027       }
00028       return $ds;
00029    }
00030 }
 All Data Structures Functions Variables