rename classses
This commit is contained in:
parent
0ecdc1281b
commit
3c2dc2df5f
@ -15,13 +15,10 @@
|
|||||||
|
|
||||||
namespace D3\PdfDocuments\Application\Controller;
|
namespace D3\PdfDocuments\Application\Controller;
|
||||||
|
|
||||||
use D3\PdfDocuments\Application\Model\Documents\deliverynotePdf;
|
|
||||||
use D3\PdfDocuments\Application\Model\Documents\invoicePdf;
|
|
||||||
use D3\PdfDocuments\Application\Model\Exceptions\noBaseObjectSetException;
|
use D3\PdfDocuments\Application\Model\Exceptions\noBaseObjectSetException;
|
||||||
use D3\PdfDocuments\Application\Model\Exceptions\noPdfHandlerFoundException;
|
use D3\PdfDocuments\Application\Model\Exceptions\noPdfHandlerFoundException;
|
||||||
use D3\PdfDocuments\Application\Model\Exceptions\pdfGeneratorExceptionAbstract;
|
use D3\PdfDocuments\Application\Model\Exceptions\pdfGeneratorExceptionAbstract;
|
||||||
use D3\PdfDocuments\Application\Model\Interfaces\pdfdocuments_order_interface;
|
use D3\PdfDocuments\Application\Model\Interfaces\pdfdocumentsOrderInterface;
|
||||||
use D3\PdfDocuments\Application\Model\Interfaces\pdfdocuments_order_interface as OrderPdfInterface;
|
|
||||||
use D3\PdfDocuments\Application\Model\Registries\registryOrderoverview;
|
use D3\PdfDocuments\Application\Model\Registries\registryOrderoverview;
|
||||||
use OxidEsales\Eshop\Application\Model\Order;
|
use OxidEsales\Eshop\Application\Model\Order;
|
||||||
use OxidEsales\Eshop\Core\Registry;
|
use OxidEsales\Eshop\Core\Registry;
|
||||||
@ -48,7 +45,7 @@ class orderOverviewPdfGenerator
|
|||||||
/**
|
/**
|
||||||
* @param Order $order
|
* @param Order $order
|
||||||
*
|
*
|
||||||
* @return OrderPdfInterface
|
* @return pdfdocumentsOrderInterface
|
||||||
* @throws noPdfHandlerFoundException
|
* @throws noPdfHandlerFoundException
|
||||||
*/
|
*/
|
||||||
public function getPdfClass(Order $order)
|
public function getPdfClass(Order $order)
|
||||||
@ -56,7 +53,7 @@ class orderOverviewPdfGenerator
|
|||||||
$requestedType = Registry::getRequest()->getRequestParameter('pdftype');
|
$requestedType = Registry::getRequest()->getRequestParameter('pdftype');
|
||||||
|
|
||||||
$generatorList = oxNew(registryOrderoverview::class);
|
$generatorList = oxNew(registryOrderoverview::class);
|
||||||
/** @var pdfdocuments_order_interface $generator */
|
/** @var pdfdocumentsOrderInterface $generator */
|
||||||
foreach ($generatorList->getList() as $generator) {
|
foreach ($generatorList->getList() as $generator) {
|
||||||
if ($generator->getRequestId() == $requestedType) {
|
if ($generator->getRequestId() == $requestedType) {
|
||||||
return $generator;
|
return $generator;
|
||||||
|
@ -18,18 +18,18 @@
|
|||||||
namespace D3\PdfDocuments\Application\Model\AbstractClasses;
|
namespace D3\PdfDocuments\Application\Model\AbstractClasses;
|
||||||
|
|
||||||
use D3\PdfDocuments\Application\Model\Exceptions\noBaseObjectSetException;
|
use D3\PdfDocuments\Application\Model\Exceptions\noBaseObjectSetException;
|
||||||
use D3\PdfDocuments\Application\Model\Interfaces\pdfdocuments_generic_interface as genericInterface;
|
use D3\PdfDocuments\Application\Model\Interfaces\pdfdocumentsGenericInterface as genericInterface;
|
||||||
use OxidEsales\Eshop\Core\Registry;
|
use OxidEsales\Eshop\Core\Registry;
|
||||||
use Smarty;
|
use Smarty;
|
||||||
use Spipu\Html2Pdf\Html2Pdf;
|
use Spipu\Html2Pdf\Html2Pdf;
|
||||||
|
|
||||||
abstract class pdfDocuments_generic implements genericInterface
|
abstract class pdfdocumentsGeneric implements genericInterface
|
||||||
{
|
{
|
||||||
/** @var Smarty */
|
/** @var Smarty */
|
||||||
public $oSmarty;
|
public $oSmarty;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* pdfDocuments_generic constructor.
|
* pdfDocumentsGeneric constructor.
|
||||||
*/
|
*/
|
||||||
public function __construct()
|
public function __construct()
|
||||||
{
|
{
|
@ -18,12 +18,12 @@
|
|||||||
namespace D3\PdfDocuments\Application\Model\AbstractClasses;
|
namespace D3\PdfDocuments\Application\Model\AbstractClasses;
|
||||||
|
|
||||||
use D3\PdfDocuments\Application\Model\Exceptions\noBaseObjectSetException;
|
use D3\PdfDocuments\Application\Model\Exceptions\noBaseObjectSetException;
|
||||||
use D3\PdfDocuments\Application\Model\Interfaces\pdfdocuments_order_interface as orderInterface;
|
use D3\PdfDocuments\Application\Model\Interfaces\pdfdocumentsOrderInterface as orderInterface;
|
||||||
use \OxidEsales\Eshop\Application\Model\Order;
|
use \OxidEsales\Eshop\Application\Model\Order;
|
||||||
use OxidEsales\Eshop\Application\Model\Payment;
|
use OxidEsales\Eshop\Application\Model\Payment;
|
||||||
use OxidEsales\Eshop\Application\Model\User;
|
use OxidEsales\Eshop\Application\Model\User;
|
||||||
|
|
||||||
abstract class pdfDocuments_order extends pdfDocuments_generic implements orderInterface
|
abstract class pdfdocumentsOrder extends pdfdocumentsGeneric implements orderInterface
|
||||||
{
|
{
|
||||||
/** @var Order */
|
/** @var Order */
|
||||||
public $oOrder;
|
public $oOrder;
|
@ -17,9 +17,9 @@
|
|||||||
|
|
||||||
namespace D3\PdfDocuments\Application\Model\Documents;
|
namespace D3\PdfDocuments\Application\Model\Documents;
|
||||||
|
|
||||||
use D3\PdfDocuments\Application\Model\AbstractClasses\pdfDocuments_order;
|
use D3\PdfDocuments\Application\Model\AbstractClasses\pdfdocumentsOrder;
|
||||||
|
|
||||||
class deliverynotePdf extends pdfDocuments_order
|
class deliverynotePdf extends pdfdocumentsOrder
|
||||||
{
|
{
|
||||||
/**
|
/**
|
||||||
* @return string
|
* @return string
|
||||||
|
@ -17,11 +17,11 @@
|
|||||||
|
|
||||||
namespace D3\PdfDocuments\Application\Model\Documents;
|
namespace D3\PdfDocuments\Application\Model\Documents;
|
||||||
|
|
||||||
use D3\PdfDocuments\Application\Model\AbstractClasses\pdfDocuments_order;
|
use D3\PdfDocuments\Application\Model\AbstractClasses\pdfdocumentsOrder;
|
||||||
use D3\PdfDocuments\Application\Model\Exceptions\noBaseObjectSetException;
|
use D3\PdfDocuments\Application\Model\Exceptions\noBaseObjectSetException;
|
||||||
use D3\PdfDocuments\Application\Model\Interfaces\pdfdocuments_orderinvoice_interface;
|
use D3\PdfDocuments\Application\Model\Interfaces\pdfdocumentsOrderinvoiceInterface;
|
||||||
|
|
||||||
class invoicePdf extends pdfDocuments_order implements pdfdocuments_orderinvoice_interface
|
class invoicePdf extends pdfdocumentsOrder implements pdfdocumentsOrderinvoiceInterface
|
||||||
{
|
{
|
||||||
protected $blIsNewOrder = false;
|
protected $blIsNewOrder = false;
|
||||||
|
|
||||||
|
@ -19,7 +19,7 @@ namespace D3\PdfDocuments\Application\Model\Interfaces;
|
|||||||
|
|
||||||
use D3\PdfDocuments\Application\Model\Exceptions\noBaseObjectSetException;
|
use D3\PdfDocuments\Application\Model\Exceptions\noBaseObjectSetException;
|
||||||
|
|
||||||
interface pdfdocuments_generic_interface
|
interface pdfdocumentsGenericInterface
|
||||||
{
|
{
|
||||||
/**
|
/**
|
||||||
* @return string
|
* @return string
|
@ -19,7 +19,7 @@ namespace D3\PdfDocuments\Application\Model\Interfaces;
|
|||||||
|
|
||||||
use OxidEsales\Eshop\Application\Model\Order;
|
use OxidEsales\Eshop\Application\Model\Order;
|
||||||
|
|
||||||
interface pdfdocuments_order_interface extends pdfdocuments_generic_interface
|
interface pdfdocumentsOrderInterface extends pdfdocumentsGenericInterface
|
||||||
{
|
{
|
||||||
/**
|
/**
|
||||||
* @param Order $order
|
* @param Order $order
|
@ -17,7 +17,7 @@
|
|||||||
|
|
||||||
namespace D3\PdfDocuments\Application\Model\Interfaces;
|
namespace D3\PdfDocuments\Application\Model\Interfaces;
|
||||||
|
|
||||||
interface pdfdocuments_orderinvoice_interface extends pdfdocuments_order_interface
|
interface pdfdocumentsOrderinvoiceInterface extends pdfdocumentsOrderInterface
|
||||||
{
|
{
|
||||||
public function setInvoiceNumber();
|
public function setInvoiceNumber();
|
||||||
|
|
@ -17,7 +17,7 @@
|
|||||||
|
|
||||||
namespace D3\PdfDocuments\Application\Model\Registries;
|
namespace D3\PdfDocuments\Application\Model\Registries;
|
||||||
|
|
||||||
use D3\PdfDocuments\Application\Model\Interfaces\pdfdocuments_generic_interface;
|
use D3\PdfDocuments\Application\Model\Interfaces\pdfdocumentsGenericInterface;
|
||||||
|
|
||||||
abstract class registryAbstract implements registryGenericInterface
|
abstract class registryAbstract implements registryGenericInterface
|
||||||
{
|
{
|
||||||
@ -25,9 +25,9 @@ abstract class registryAbstract implements registryGenericInterface
|
|||||||
|
|
||||||
/**
|
/**
|
||||||
* @param $className * generator fully qualified class name
|
* @param $className * generator fully qualified class name
|
||||||
* @param pdfdocuments_generic_interface $item
|
* @param pdfdocumentsGenericInterface $item
|
||||||
*/
|
*/
|
||||||
protected function addItem($className, pdfdocuments_generic_interface $item)
|
protected function addItem($className, pdfdocumentsGenericInterface $item)
|
||||||
{
|
{
|
||||||
$this->_aRegistry[$className] = $item;
|
$this->_aRegistry[$className] = $item;
|
||||||
}
|
}
|
||||||
|
@ -21,7 +21,7 @@ use D3\PdfDocuments\Application\Model\Documents\deliverynotePdf;
|
|||||||
use D3\PdfDocuments\Application\Model\Documents\deliverynotewithoutlogoPdf;
|
use D3\PdfDocuments\Application\Model\Documents\deliverynotewithoutlogoPdf;
|
||||||
use D3\PdfDocuments\Application\Model\Documents\invoicePdf;
|
use D3\PdfDocuments\Application\Model\Documents\invoicePdf;
|
||||||
use D3\PdfDocuments\Application\Model\Documents\invoicewithoutlogoPdf;
|
use D3\PdfDocuments\Application\Model\Documents\invoicewithoutlogoPdf;
|
||||||
use D3\PdfDocuments\Application\Model\Interfaces\pdfdocuments_order_interface;
|
use D3\PdfDocuments\Application\Model\Interfaces\pdfdocumentsOrderInterface;
|
||||||
|
|
||||||
class registryOrderoverview extends registryAbstract implements registryOrderoverviewInterface
|
class registryOrderoverview extends registryAbstract implements registryOrderoverviewInterface
|
||||||
{
|
{
|
||||||
@ -35,16 +35,16 @@ class registryOrderoverview extends registryAbstract implements registryOrderove
|
|||||||
|
|
||||||
/**
|
/**
|
||||||
* @param $className
|
* @param $className
|
||||||
* @param pdfdocuments_order_interface $pdfGenerator
|
* @param pdfdocumentsOrderInterface $pdfGenerator
|
||||||
*/
|
*/
|
||||||
public function addGenerator($className, pdfdocuments_order_interface $pdfGenerator)
|
public function addGenerator($className, pdfdocumentsOrderInterface $pdfGenerator)
|
||||||
{
|
{
|
||||||
$this->addItem($className, $pdfGenerator);
|
$this->addItem($className, $pdfGenerator);
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @param $className * generator fully qualified class name
|
* @param $className * generator fully qualified class name
|
||||||
* @return pdfdocuments_order_interface
|
* @return pdfdocumentsOrderInterface
|
||||||
*/
|
*/
|
||||||
public function getGenerator($className)
|
public function getGenerator($className)
|
||||||
{
|
{
|
||||||
|
@ -17,13 +17,13 @@
|
|||||||
|
|
||||||
namespace D3\PdfDocuments\Application\Model\Registries;
|
namespace D3\PdfDocuments\Application\Model\Registries;
|
||||||
|
|
||||||
use D3\PdfDocuments\Application\Model\Interfaces\pdfdocuments_order_interface;
|
use D3\PdfDocuments\Application\Model\Interfaces\pdfdocumentsOrderInterface;
|
||||||
|
|
||||||
interface registryOrderoverviewInterface extends registryGenericInterface
|
interface registryOrderoverviewInterface extends registryGenericInterface
|
||||||
{
|
{
|
||||||
/**
|
/**
|
||||||
* @param $className * generator fully qualified class name
|
* @param $className * generator fully qualified class name
|
||||||
* @param pdfdocuments_order_interface $pdfGenerator
|
* @param pdfdocumentsOrderInterface $pdfGenerator
|
||||||
*/
|
*/
|
||||||
public function addGenerator($className, pdfdocuments_order_interface $pdfGenerator);
|
public function addGenerator($className, pdfdocumentsOrderInterface $pdfGenerator);
|
||||||
}
|
}
|
Loading…
Reference in New Issue
Block a user