17 import(
'lib.pkp.classes.form.Form');
56 $this->_contextId = $contextId;
57 $this->_plugin = $plugin;
59 parent::__construct($plugin->getTemplateResource(
'settingsForm.tpl'));
77 $this->
setData($fieldName, $plugin->getSetting($contextId, $fieldName));
91 function execute(...$functionArgs) {
94 parent::execute(...$functionArgs);
96 $plugin->updateSetting($contextId, $fieldName, $this->
getData($fieldName), $fieldType);
110 'apiKey' =>
'string',
111 'automaticRegistration' =>
'bool',
122 return in_array($settingName, array(
'apiKey',
'automaticRegistration',
'testMode'));