journalId = $journalId; $this->plugin =& $plugin; parent::Form($plugin->getTemplatePath() . 'settingsForm.tpl'); } /** * Initialize form data. */ function initData() { $journalId = $this->journalId; $plugin =& $this->plugin; $this->_data = array( 'exclusions' => $plugin->getSetting($journalId, 'exclusions') ); } /** * Assign form data to user-submitted data. */ function readInputData() { $this->readUserVars(array('exclusions')); } /** * Save settings. */ function execute() { $plugin =& $this->plugin; $journalId = $this->journalId; $plugin->updateSetting($journalId, 'exclusions', trim($this->getData('exclusions')), 'string'); } } ?>