Go to the documentation of this file.00001 <?php
00002
00008 class Order_Downloads extends oxAdminDetails
00009 {
00010
00016 protected $_oEditObject = null;
00017
00024 public function render()
00025 {
00026 parent::render();
00027
00028 if ($oOrder = $this->getEditObject()) {
00029 $this->_aViewData["edit"] = $oOrder;
00030 }
00031
00032 return "order_downloads.tpl";
00033 }
00034
00040 public function getEditObject()
00041 {
00042 $soxId = $this->getEditObjectId();
00043 if ($this->_oEditObject === null && isset($soxId) && $soxId != "-1") {
00044 $this->_oEditObject = oxNew("oxOrderFileList");
00045 $this->_oEditObject->loadOrderFiles($soxId);
00046 }
00047
00048 return $this->_oEditObject;
00049 }
00050
00054 public function resetDownloadLink()
00055 {
00056 $sOrderFileId = oxRegistry::getConfig()->getRequestParameter('oxorderfileid');
00057 $oOrderFile = oxNew("oxorderfile");
00058 if ($oOrderFile->load($sOrderFileId)) {
00059 $oOrderFile->reset();
00060 $oOrderFile->save();
00061 }
00062 }
00063 }