dmBridge PHP API
UNLVRandom.php
00001 <?php
00002 #
00003 # UNLVRandom: a dmBridge module for random objects
00004 #
00005 # Copyright © 2011 Board of Regents of the Nevada System of Higher
00006 # Education, on behalf of the University of Nevada, Las Vegas
00007 #
00008 
00020 class UNLVRandom extends DMAbstractDMBridgeModule
00021 implements DMBridgeControlPanelModule, DMBridgeDataStoreModule,
00022       DMBridgeRepresentationSchemaModule {
00023 
00027    public function getControlPanelMenuSections() {
00028       $sections = array();
00029       $section = new DMCPMenuSection("Random Object");
00030       $item = new DMCPMenuItem("Add",
00031             DMInternalURI::getURIWithParams("admin/random/add"));
00032       $section->addMenuItem($item);
00033       $item = new DMCPMenuItem("Pool",
00034             DMInternalURI::getURIWithParams("admin/random"));
00035       $section->addMenuItem($item);
00036       $sections[] = $section;
00037       return $sections;
00038    }
00039 
00043    public function getMinSupportedVersionSequence() {
00044       return 12;
00045    }
00046 
00050    public function getName() {
00051       return "UNLVRandom";
00052    }
00053 
00057    public function getPathToSchemas() {
00058       return $this->getAbsolutePathname() . "/schema";
00059    }
00060 
00068    public function getSetupSQLForMySQL() {
00069       return UNLVRandomMySQLDataStore::getSetupSQL();
00070    }
00071 
00079    public function getSetupSQLForSQLite() {
00080       return UNLVRandomSQLiteDataStore::getSetupSQL();
00081    }
00082 
00088    public function getSupportedDataStores() {
00089       return array(
00090          DMDataStoreType::PDO_MySQL,
00091          DMDataStoreType::PDO_SQLite
00092       );
00093    }
00094 
00104    function getUpgradeSQLForMySQL() {
00105       return UNLVRandomMySQLDataStore::getUpgradeSQL();
00106    }
00107 
00117    function getUpgradeSQLForSQLite() {
00118       return UNLVRandomSQLiteDataStore::getUpgradeSQL();
00119    }
00120 
00124    function getVersion() {
00125       return "1.0";
00126    }
00127 
00128 }
00129 
 All Data Structures Functions Variables