Cheetah
modules
cheetah
payment
history.php
Go to the documentation of this file.
1
<?
php
2
8
ch_import
(
'Module'
,
$aModule
);
9
ch_import
(
'ChWsbPageView'
);
10
11
class
ChPmtHistoryPage
extends
ChWsbPageView
12
{
13
var
$_iVendorId
;
14
var
$_oPayments
;
15
16
function
__construct
(
$sType
, &
$oPayments
)
17
{
18
parent::__construct(
'ch_pmt_history'
);
19
20
$this->_iVendorId =
$sType
==
'site'
?
CH_PMT_ADMINISTRATOR_ID
:
CH_PMT_EMPTY_ID
;
21
$this->_oPayments = &
$oPayments
;
22
23
$GLOBALS
[
'oTopMenu'
]->setCurrentProfileID($this->_oPayments->_iUserId);
24
$GLOBALS
[
'oTopMenu'
]->setCustomVar(
'sys_payment_module_uri'
, $this->_oPayments->_oConfig->getUri());
25
}
26
function
getBlockCode_History
()
27
{
28
return
$this->_oPayments->getCartHistory($this->_iVendorId);
29
}
30
}
31
32
global
$_page
;
33
global
$_page_cont
;
34
global
$logged
;
35
36
$iIndex
= 2;
37
$_page
[
'name_index'
] =
$iIndex
;
38
$_page
[
'js_name'
] =
'orders.js'
;
39
$_page
[
'css_name'
] =
'orders.css'
;
40
41
check_logged
();
42
43
$sType
=
''
;
44
if
(isset($aRequest))
45
$sType
=
process_db_input
(array_shift($aRequest),
CH_TAGS_STRIP
);
46
47
$oPayments
=
new
ChPmtModule
(
$aModule
);
48
$oHistoryPage
=
new
ChPmtHistoryPage
(
$sType
,
$oPayments
);
49
$_page_cont
[
$iIndex
][
'page_main_code'
] =
$oHistoryPage
->getCode();
50
$_page_cont
[
$iIndex
][
'more_code'
] =
$oPayments
->getMoreWindow();
51
$_page_cont
[
$iIndex
][
'js_code'
] =
$oPayments
->getExtraJs(
'orders'
);
52
53
$oPayments
->_oTemplate->setPageTitle(
_t
(
'_payment_pcpt_cart_history'
));
54
PageCode
(
$oPayments
->_oTemplate);
process_db_input
process_db_input($sText, $iStripTags=0)
Definition:
utils.inc.php:256
CH_PMT_ADMINISTRATOR_ID
const CH_PMT_ADMINISTRATOR_ID
Definition:
ChPmtModule.php:17
$sType
$sType
Definition:
history.php:43
ChPmtHistoryPage\$_oPayments
$_oPayments
Definition:
history.php:14
$oPayments
$oPayments
Definition:
history.php:47
check_logged
check_logged()
Definition:
admin.inc.php:238
ChWsbPageView
Definition:
ChWsbPageView.php:99
$iIndex
$iIndex
Definition:
history.php:36
$aModule
$aModule
Definition:
classifieds.php:21
ch_import
ch_import($sClassName, $aModule=array())
Definition:
utils.inc.php:1218
ChPmtHistoryPage
Definition:
history.php:12
ChPmtHistoryPage\$_iVendorId
$_iVendorId
Definition:
history.php:13
php
ChPmtModule
Definition:
ChPmtModule.php:79
ChPmtHistoryPage\getBlockCode_History
getBlockCode_History()
Definition:
history.php:26
$_page_cont
global $_page_cont
Definition:
history.php:33
$_page
global $_page
Definition:
history.php:32
$oHistoryPage
$oHistoryPage
Definition:
history.php:48
ChPmtHistoryPage\__construct
__construct($sType, &$oPayments)
Definition:
history.php:16
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
CH_PMT_EMPTY_ID
const CH_PMT_EMPTY_ID
Definition:
ChPmtModule.php:16
CH_TAGS_STRIP
const CH_TAGS_STRIP
Definition:
utils.inc.php:22
$logged
global $logged
Definition:
history.php:34
$GLOBALS
$GLOBALS['iAdminPage']
Definition:
advanced_settings.php:10
Generated by
1.8.20