/**
  * Save changes to payment settings.
  */
 function savePayMethodSettings()
 {
     $journal =& Request::getJournal();
     import('classes.payment.ojs.form.PayMethodSettingsForm');
     $settingsForm = new PayMethodSettingsForm();
     $settingsForm->readInputData();
     $templateMgr =& TemplateManager::getManager();
     $templateMgr->assign('helpTopicId', 'journal.managementPages.payments');
     if ($settingsForm->validate()) {
         $settingsForm->execute();
         return true;
     } else {
         $settingsForm->display();
         return false;
     }
 }
Beispiel #2
0
 /**
  * Save changes to payment settings.
  */
 function savePayMethodSettings($request)
 {
     $journal = $request->getJournal();
     import('classes.payment.ojs.form.PayMethodSettingsForm');
     $settingsForm = new PayMethodSettingsForm();
     $settingsForm->readInputData();
     if ($settingsForm->validate()) {
         $settingsForm->execute();
         return true;
     } else {
         $settingsForm->display();
         return false;
     }
 }