OXID eShop CE
4.8.10
Main Page
Related Pages
Classes
Files
File List
File Members
All
Classes
Files
Functions
Variables
Pages
order_downloads.php
Go to the documentation of this file.
1
<?php
2
8
class
Order_Downloads
extends
oxAdminDetails
9
{
10
16
protected
$_oEditObject
= null;
17
24
public
function
render
()
25
{
26
parent::render
();
27
28
if
( $oOrder = $this->
getEditObject
() ) {
29
$this->_aViewData[
"edit"
] = $oOrder;
30
}
31
32
return
"order_downloads.tpl"
;
33
}
34
40
public
function
getEditObject
()
41
{
42
$soxId = $this->
getEditObjectId
();
43
if
( $this->_oEditObject === null && isset( $soxId ) && $soxId !=
"-1"
) {
44
$this->_oEditObject =
oxNew
(
"oxOrderFileList"
);
45
$this->_oEditObject->loadOrderFiles( $soxId );
46
}
47
return
$this->_oEditObject
;
48
}
49
55
public
function
resetDownloadLink
()
56
{
57
$sOrderFileId =
oxConfig::getParameter
(
'oxorderfileid'
);
58
$oOrderFile =
oxNew
(
"oxorderfile"
);
59
if
( $oOrderFile->load($sOrderFileId) ) {
60
$oOrderFile->reset();
61
$oOrderFile->save();
62
}
63
}
64
}
application
controllers
admin
order_downloads.php
Generated by
1.8.1.2