dmBridge PHP API
UNLVHighlight.php
00001 <?php
00002 #
00003 # UNLVHighlight: a dmBridge module for highlighting 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 UNLVHighlight extends DMAbstractDMBridgeModule
00021 implements DMBridgeControlPanelModule, DMBridgeDataStoreModule,
00022       DMBridgeRepresentationSchemaModule {
00023 
00027    public function getControlPanelMenuSections() {
00028       $sections = array();
00029       $section = new DMCPMenuSection("Highlighted Object");
00030       $item = new DMCPMenuItem(
00031             "Add",
00032             DMInternalURI::getURIWithParams("admin/highlighted/add"));
00033       $section->addMenuItem($item);
00034       $item = new DMCPMenuItem(
00035             "Schedule",
00036             DMInternalURI::getURIWithParams("admin/highlighted"));
00037       $section->addMenuItem($item);
00038       $sections[] = $section;
00039       return $sections;
00040    }
00041 
00045    public function getMinSupportedVersionSequence() {
00046       return 12;
00047    }
00048 
00052    public function getName() {
00053       return "UNLVHighlight";
00054    }
00055 
00059    public function getPathToSchemas() {
00060       return $this->getAbsolutePathname() . "/schema";
00061    }
00062 
00070    public function getSetupSQLForMySQL() {
00071       return UNLVHighlightMySQLDataStore::getSetupSQL();
00072    }
00073 
00081    public function getSetupSQLForSQLite() {
00082       return UNLVHighlightSQLiteDataStore::getSetupSQL();
00083    }
00084 
00090    public function getSupportedDataStores() {
00091       return array(
00092          DMDataStoreType::PDO_MySQL,
00093          DMDataStoreType::PDO_SQLite
00094       );
00095    }
00096 
00106    function getUpgradeSQLForMySQL() {
00107       return UNLVHighlightMySQLDataStore::getUpgradeSQL();
00108    }
00109 
00119    function getUpgradeSQLForSQLite() {
00120       return UNLVHighlightSQLiteDataStore::getUpgradeSQL();
00121    }
00122 
00126    function getVersion() {
00127       return "1.0";
00128    }
00129 
00130 }
00131 
 All Data Structures Functions Variables