• Main Page
  • Modules
  • Classes
  • Files
  • File List

classes/plugins/ThemePlugin.inc.php

00001 <?php
00002 
00017 import('classes.plugins.Plugin');
00018 
00019 class ThemePlugin extends Plugin {
00020    function ThemePlugin() {
00021       parent::Plugin();
00022    }
00023 
00029    function getName() {
00030       assert(false); // Should always be overridden
00031    }
00032 
00037    function getDisplayName() {
00038       assert(false); // Should always be overridden
00039    }
00040 
00044    function getDescription() {
00045       assert(false); // Should always be overridden
00046    }
00047 
00051    function activate(&$templateMgr) {
00052       // Subclasses may override this function.
00053 
00054       if (($stylesheetFilename = $this->getStylesheetFilename()) != null) {
00055          $path = Request::getBaseUrl() . '/' . $this->getPluginPath() . '/' . $stylesheetFilename;
00056          $templateMgr->addStyleSheet($path);
00057       }
00058    }
00059 }
00060 
00061 ?>

Generated on Mon Sep 17 2012 13:58:55 for Open Monograph Press by  doxygen 1.7.1