remove debug notes
This commit is contained in:
parent
5ffd071954
commit
caeaa02aa6
@ -29,6 +29,8 @@ class orderPdfGenerator
|
|||||||
* @param $sFilename
|
* @param $sFilename
|
||||||
* @param int $iSelLang
|
* @param int $iSelLang
|
||||||
* @param string $target
|
* @param string $target
|
||||||
|
*
|
||||||
|
* @throws d3noPdfHandlerFoundException
|
||||||
*/
|
*/
|
||||||
public function generatePdf(Order $order, $sFilename, $iSelLang = 0, $target = 'I')
|
public function generatePdf(Order $order, $sFilename, $iSelLang = 0, $target = 'I')
|
||||||
{
|
{
|
||||||
@ -38,24 +40,26 @@ class orderPdfGenerator
|
|||||||
$Pdf->genPdf($sFilename, $iSelLang, $target);
|
$Pdf->genPdf($sFilename, $iSelLang, $target);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* @param Order $order
|
||||||
|
*
|
||||||
|
* @return OrderPdfInterface
|
||||||
|
* @throws d3noPdfHandlerFoundException
|
||||||
|
*/
|
||||||
public function getPdfClass(Order $order)
|
public function getPdfClass(Order $order)
|
||||||
{
|
{
|
||||||
echo __CLASS__." - ".__FUNCTION__." - ".__LINE__."<br>";
|
|
||||||
switch (Registry::getRequest()->getRequestParameter('pdftype')) {
|
switch (Registry::getRequest()->getRequestParameter('pdftype')) {
|
||||||
case ('dnote'):
|
case ('dnote'):
|
||||||
case ('dnote_without_logo'):
|
case ('dnote_without_logo'):
|
||||||
echo __CLASS__." - ".__FUNCTION__." - ".__LINE__."<br>";
|
|
||||||
$pdfInstance= oxNew(deliverynotePdf::class);
|
$pdfInstance= oxNew(deliverynotePdf::class);
|
||||||
$pdfInstance->setOrder($order);
|
$pdfInstance->setOrder($order);
|
||||||
return $pdfInstance;
|
return $pdfInstance;
|
||||||
case ('standart'):
|
case ('standart'):
|
||||||
case('standart_without_logo'):
|
case('standart_without_logo'):
|
||||||
echo __CLASS__." - ".__FUNCTION__." - ".__LINE__."<br>";
|
|
||||||
$pdfInvoice= oxNew(invoicePdf::class);
|
$pdfInvoice= oxNew(invoicePdf::class);
|
||||||
$pdfInvoice->setOrder($order);
|
$pdfInvoice->setOrder($order);
|
||||||
return $pdfInvoice;
|
return $pdfInvoice;
|
||||||
default:
|
default:
|
||||||
echo __CLASS__." - ".__FUNCTION__." - ".__LINE__."<br>";
|
|
||||||
return $this->getCustomPdfClass($order);
|
return $this->getCustomPdfClass($order);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -19,6 +19,14 @@ use OxidEsales\Eshop\Core\Exception\StandardException;
|
|||||||
|
|
||||||
class d3noPdfHandlerFoundException extends StandardException
|
class d3noPdfHandlerFoundException extends StandardException
|
||||||
{
|
{
|
||||||
|
/**
|
||||||
|
* d3noPdfHandlerFoundException constructor.
|
||||||
|
*
|
||||||
|
* @param $requestId
|
||||||
|
* @param string $sMessage
|
||||||
|
* @param int $iCode
|
||||||
|
* @param \Exception|null $previous
|
||||||
|
*/
|
||||||
public function __construct( $requestId, $sMessage = "no pdf handler defined for given request id", $iCode = 0, \Exception $previous = null )
|
public function __construct( $requestId, $sMessage = "no pdf handler defined for given request id", $iCode = 0, \Exception $previous = null )
|
||||||
{
|
{
|
||||||
$sMessage .= '"'.$requestId.'"';
|
$sMessage .= '"'.$requestId.'"';
|
||||||
|
Loading…
x
Reference in New Issue
Block a user