addCheck(new FormValidator($this, 'depositorName', 'required', 'plugins.importexport.crossref.settings.form.depositorNameRequired')); $this->addCheck(new FormValidatorEmail($this, 'depositorEmail', 'required', 'plugins.importexport.crossref.settings.form.depositorEmailRequired')); } // // Implement template methods from DOIExportSettingsForm // /** * @see DOIExportSettingsForm::getFormFields() */ function getFormFields() { return array( 'depositorName' => 'string', 'depositorEmail' => 'string', 'username' => 'string', 'password' => 'string', 'automaticRegistration' => 'bool' ); } /** * @see DOIExportSettingsForm::isOptional() */ function isOptional($settingName) { return in_array($settingName, array('username', 'password', 'automaticRegistration')); } } ?>