addLocaleData(); } return $success; } /* * Override protected methods from PKPPlugin */ /** * @see PKPPlugin::getName() */ function getName() { // Lazy load enabled plug-ins always use the plugin's class name // as plug-in name. Legacy plug-ins will override this method so // this implementation is backwards compatible. // NB: strtolower is required for PHP4 compatibility. return strtolower_codesafe(get_class($this)); } /* * Protected methods required to support lazy load. */ /** * Determine whether or not this plugin is currently enabled. * * @return boolean */ function getEnabled() { return $this->getContextSpecificSetting($this->getSettingMainContext(), 'enabled'); } /** * Set whether or not this plugin is currently enabled. * * @param $enabled boolean */ function setEnabled($enabled) { return $this->updateContextSpecificSetting($this->getSettingMainContext(), 'enabled', $enabled, 'bool'); } } ?>