pages/manager/ManagerPaymentHandler.inc.php

Go to the documentation of this file.
00001 <?php
00002 
00015 //$Id$
00016 
00017 import('pages.manager.ManagerHandler');
00018 
00019 class ManagerPaymentHandler extends ManagerHandler {
00023    function ManagerPaymentHandler() {
00024       parent::ManagerHandler();
00025    }
00026 
00030    function paymentSettings() {
00031       $this->validate();
00032       $this->setupTemplate(true);
00033 
00034       $schedConf =& Request::getSchedConf();
00035       if (!$schedConf) Request::redirect (null, null, 'index');
00036 
00037       import('manager.form.PaymentSettingsForm');
00038 
00039       $settingsForm = new PaymentSettingsForm();
00040       $settingsForm->initData();
00041       $settingsForm->display();
00042    }
00043 
00047    function savePaymentSettings() {
00048       $this->validate();
00049       $this->setupTemplate(true);
00050 
00051       $schedConf =& Request::getSchedConf();
00052       if (!$schedConf) Request::redirect (null, null, 'index');
00053 
00054       import('manager.form.PaymentSettingsForm');
00055 
00056       $settingsForm = new PaymentSettingsForm();
00057       $settingsForm->readInputData();
00058 
00059       if ($settingsForm->validate()) {
00060          $settingsForm->execute();
00061 
00062          $templateMgr =& TemplateManager::getManager();
00063          $templateMgr->assign(array(
00064             'currentUrl' => Request::url(null, null, null, 'paymentSettings'),
00065             'pageTitle' => 'manager.payment.paymentSettings',
00066             'message' => 'common.changesSaved',
00067             'backLink' => Request::url(null, null, Request::getRequestedPage()),
00068             'backLinkLabel' => 'manager.conferenceSiteManagement'
00069          ));
00070          $templateMgr->display('common/message.tpl');
00071 
00072       } else {
00073          $settingsForm->display();
00074       }
00075    }
00076 }
00077 
00078 ?>

Generated on 25 Jul 2013 for Open Conference Systems by  doxygen 1.4.7