classes/plugins/ThemePlugin.inc.php

Go to the documentation of this file.
00001 <?php
00002 
00015 //$Id$
00016 
00017 class ThemePlugin extends Plugin {
00018    function ThemePlugin() {
00019       parent::Plugin();
00020    }
00021 
00027    function getName() {
00028       // This should not be used as this is an abstract class
00029       return 'ThemePlugin';
00030    }
00031 
00037    function getDisplayName() {
00038       // This name should never be displayed because child classes
00039       // will override this method.
00040       return 'Abstract Theme Plugin';
00041    }
00042 
00046    function getDescription() {
00047       return 'This is the ThemePlugin base class. Its functions can be overridden by subclasses to provide theming support.';
00048    }
00049 
00053    function activate(&$templateMgr) {
00054       // Subclasses may override this function.
00055 
00056       if (($stylesheetFilename = $this->getStylesheetFilename()) != null) {
00057          $path = Request::getBaseUrl() . '/' . $this->getPluginPath() . '/' . $stylesheetFilename;
00058          $templateMgr->addStyleSheet($path);
00059       }
00060    }
00061 }
00062 ?>

Generated on 25 Jul 2013 for Open Conference Systems by  doxygen 1.4.7