30 $oArticleFile =
oxNew(
'oxFile');
33 $oOrderFile =
oxNew(
'oxOrderFile');
34 if ($oOrderFile->load($sFileOrderId)) {
35 $sFileId = $oOrderFile->getFileId();
36 $blLoadedAndExists = $oArticleFile->load($sFileId) && $oArticleFile->exist();
37 if ($sFileId && $blLoadedAndExists && $oOrderFile->processOrderFile()) {
38 $oArticleFile->download();
40 $sError =
"ERROR_MESSAGE_FILE_DOESNOT_EXIST";
44 $sError =
"ERROR_MESSAGE_FILE_DOWNLOAD_FAILED";
47 $sError =
"ERROR_MESSAGE_WRONG_DOWNLOAD_LINK";
51 $oEx->setMessage($sError);