Cheetah
cart.php
Go to the documentation of this file.
1 <?php
2 
8 ch_import('Module', $aModule);
9 ch_import('ChWsbPageView');
10 
12 {
14 
16  {
17  parent::__construct('ch_pmt_cart');
18 
19  $this->_oPayments = &$oPayments;
20 
21  $GLOBALS['oTopMenu']->setCurrentProfileID($this->_oPayments->_iUserId);
22  $GLOBALS['oTopMenu']->setCustomVar('sys_payment_module_uri', $this->_oPayments->_oConfig->getUri());
23  }
25  {
26  return $this->_oPayments->getCartContent(CH_PMT_ADMINISTRATOR_ID);
27  }
29  {
30  return $this->_oPayments->getCartContent(CH_PMT_EMPTY_ID);
31  }
32 }
33 
37 
38 $iIndex = 1;
39 $_page['name_index'] = $iIndex;
40 $_page['css_name'] = array();
41 
42 check_logged();
43 
46 $_page_cont[$iIndex]['page_main_code'] = $oCartPage->getCode();
47 
48 $oPayments->_oTemplate->addJsTranslation(array(
49  '_payment_err_nothing_selected'
50 ));
51 $oPayments->_oTemplate->setPageTitle(_t('_payment_pcpt_view_cart'));
52 PageCode($oPayments->_oTemplate);
CH_PMT_ADMINISTRATOR_ID
const CH_PMT_ADMINISTRATOR_ID
Definition: ChPmtModule.php:17
$_page_cont
global $_page_cont
Definition: cart.php:35
$oPayments
$oPayments
Definition: cart.php:44
check_logged
check_logged()
Definition: admin.inc.php:238
ChWsbPageView
Definition: ChWsbPageView.php:99
$aModule
$aModule
Definition: classifieds.php:21
ch_import
ch_import($sClassName, $aModule=array())
Definition: utils.inc.php:1218
$iIndex
$iIndex
Definition: cart.php:38
ChPmtCartPage\$_oPayments
$_oPayments
Definition: cart.php:13
php
ChPmtModule
Definition: ChPmtModule.php:79
ChPmtCartPage\__construct
__construct(&$oPayments)
Definition: cart.php:15
$_page
global $_page
Definition: cart.php:34
ChPmtCartPage
Definition: cart.php:12
$oCartPage
$oCartPage
Definition: cart.php:45
global
if(!defined("GLOBAL_MODULE")) define("GLOBAL_MODULE" global
Definition: header.inc.php:25
_t
_t($key, $arg0="", $arg1="", $arg2="")
Definition: languages.inc.php:509
PageCode
PageCode($oTemplate=null)
Definition: design.inc.php:91
ChPmtCartPage\getBlockCode_Common
getBlockCode_Common()
Definition: cart.php:28
CH_PMT_EMPTY_ID
const CH_PMT_EMPTY_ID
Definition: ChPmtModule.php:16
ChPmtCartPage\getBlockCode_Featured
getBlockCode_Featured()
Definition: cart.php:24
$logged
global $logged
Definition: cart.php:36
$GLOBALS
$GLOBALS['iAdminPage']
Definition: advanced_settings.php:10