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
00038
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
00070
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 ?>