示例#1
0
 /**
  * Constructor
  * Initialize the template and transaction object.
  *
  * @access      public
  * @param       string     $pageContent      content page
  */
 public function __construct($pageContent)
 {
     global $objDatabase;
     parent::__construct();
     $this->objTransaction = new Transaction($objDatabase);
     $this->objTemplate = new \Cx\Core\Html\Sigma('.');
     $this->objTemplate->setErrorHandling(PEAR_ERROR_DIE);
     $this->objTemplate->setTemplate($pageContent);
     \Cx\Core\Csrf\Controller\Csrf::add_placeholder($this->objTemplate);
 }
 /**
  * Constructor
  * Initialize the template and transaction object.
  *
  * @access      public
  */
 public function __construct()
 {
     global $objDatabase, $objTemplate, $_ARRAYLANG;
     parent::__construct();
     $this->arrStatusMessages['warning'][] = $_ARRAYLANG['TXT_CHECKOUT_SETTINGS_PSP_YELLOWPAY_ONLY_FOR_SWITZERLAND'];
     $_GET['act'] = !empty($_GET['act']) ? $_GET['act'] : '';
     $_GET['tpl'] = !empty($_GET['tpl']) ? $_GET['tpl'] : '';
     $this->objTransaction = new Transaction($objDatabase);
     $this->objSettingsGeneral = new SettingsGeneral($objDatabase);
     $this->objSettingsYellowpay = new SettingsYellowpay($objDatabase);
     $this->objSettingsMails = new SettingsMails($objDatabase);
     $objTemplate->setVariable('CONTENT_NAVIGATION', '<a href="index.php?cmd=Checkout&amp;act=overview"' . ($_GET['act'] == 'overview' || $_GET['act'] == '' ? ' class="active"' : '') . '>' . $_ARRAYLANG['TXT_CHECKOUT_OVERVIEW'] . '</a>
                                                      <a href="index.php?cmd=Checkout&amp;act=settings"' . ($_GET['act'] == 'settings' ? ' class="active"' : '') . '>' . $_ARRAYLANG['TXT_CHECKOUT_SETTINGS'] . '</a>');
     $this->objTemplate = new \Cx\Core\Html\Sigma(ASCMS_MODULE_PATH . '/Checkout/View/Template/Backend');
     $this->objTemplate->setErrorHandling(PEAR_ERROR_DIE);
 }