示例#1
0
 /**
  * Called as a plugin is registered to the registry. Subclasses over-
  * riding this method should call the parent method first.
  * @param $category String Name of category plugin was registered to
  * @param $path String The path the plugin was found in
  * @return boolean True iff plugin initialized successfully; if false,
  * 	the plugin will not be registered.
  */
 function register($category, $path)
 {
     $returner = parent::register($category, $path);
     if ($this->getNewConferencePluginSettingsFile()) {
         HookRegistry::register('ConferenceSiteSettingsForm::execute', array(&$this, 'installConferenceSettings'));
     }
     return $returner;
 }
示例#2
0
文件: Plugin.inc.php 项目: artkuo/ocs
 /**
  * Constructor
  */
 function Plugin()
 {
     parent::PKPPlugin();
 }
示例#3
0
 /**
  * Update a plugin setting.
  * @param $journalId int
  * @param $name string The name of the setting
  * @param $value mixed
  * @param $type string optional
  */
 function updateSetting($journalId, $name, $value, $type = null)
 {
     parent::updateSetting(array($journalId), $name, $value, $type);
 }
示例#4
0
 /**
  * Update a plugin setting.
  * @param $name string The name of the setting
  * @param $value mixed
  * @param $type string optional
  */
 function updateSetting($name, $value, $type = null)
 {
     parent::updateSetting(array(), $name, $value, $type);
 }