19 $this->_aViewData[
"alangs"] = $oLang->getLanguageNames();
29 $soxId = $this->getEditObjectId();
30 if ($soxId !=
"-1" && isset($soxId)) {
32 $oOrder =
oxNew(
"oxorder");
33 if ($oOrder->load($soxId)) {
35 $sTrimmedBillName = trim($oOrder->oxorder__oxbilllname->getRawValue());
36 $sFilename = $oOrder->oxorder__oxordernr->value .
"_" . $sTrimmedBillName .
".pdf";
37 $sFilename = $this->makeValidFileName($sFilename);
40 $sPDF = ob_get_contents();
42 $oUtils->setHeader(
"Pragma: public");
43 $oUtils->setHeader(
"Cache-Control: must-revalidate, post-check=0, pre-check=0");
44 $oUtils->setHeader(
"Expires: 0");
45 $oUtils->setHeader(
"Content-type: application/pdf");
46 $oUtils->setHeader(
"Content-Disposition: attachment; filename=" . $sFilename);