readInputData() public method

Assign form data to user-submitted data.
public readInputData ( )
コード例 #1
0
 /**
  * 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;
     }
 }
コード例 #2
0
ファイル: OJSPaymentAction.inc.php プロジェクト: utlib/ojs
 /**
  * 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;
     }
 }