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

classes/plugins/Plugin.inc.php

00001 <?php
00002 
00016 import('lib.pkp.classes.plugins.PKPPlugin');
00017 
00018 class Plugin extends PKPPlugin {
00022    function Plugin() {
00023       parent::PKPPlugin();
00024    }
00025 
00035    function getSetting($pressId, $name) {
00036       if (defined('RUNNING_UPGRADE')) {
00037          // Bug #2504: Make sure plugin_settings table is not
00038          // used if it's not available.
00039          $versionDao =& DAORegistry::getDAO('VersionDAO');
00040          $version =& $versionDao->getCurrentVersion();
00041          if ($version->compare('2.1.0') < 0) return null;
00042       }
00043       return $this->getContextSpecificSetting(array($pressId), $name);
00044    }
00045 
00057    function updateSetting($pressId, $name, $value, $type = null) {
00058       $this->updateContextSpecificSetting(array($pressId), $name, $value, $type);
00059    }
00060 
00068    function getContextSpecificPluginSettingsFile() {
00069       // The default implementation delegates to the old
00070       // method for backwards compatibility.
00071       return $this->getNewPressPluginSettingsFile();
00072    }
00073 
00083    function getNewPressPluginSettingsFile() {
00084       return null;
00085    }
00086 
00099    function getManagementVerbLinkAction(&$request, $verb, $defaultUrl) {
00100       return null;
00101    }
00102 }
00103 
00104 ?>

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