Application
Controller
Model
AbstractClasses
Documents
Exceptions
Interfaces
Registries
registryAbstract.php
registryGenericInterface.php
registryOrdermanagerActions.php
registryOrdermanagerActionsInterface.php
registryOrderoverview.php
registryOrderoverviewInterface.php
Constants.php
translations
views
Assets
Modules
docs
views
.gitattributes
IntelliSenseHelper.php
LICENSE
README.en.md
README.md
composer.json
metadata.php
45 Zeilen
1.4 KiB
PHP
45 Zeilen
1.4 KiB
PHP
<?php
|
|
|
|
/**
|
|
* See LICENSE file for license details.
|
|
*
|
|
* @copyright (C) D3 Data Development (Inh. Thomas Dartsch)
|
|
* @author D3 Data Development - Daniel Seifert <support@shopmodule.com>
|
|
* @link http://www.oxidmodule.com
|
|
*/
|
|
|
|
namespace D3\PdfDocuments\Application\Model\Registries;
|
|
|
|
use D3\PdfDocuments\Application\Model\Documents\deliverynotePdf;
|
|
use D3\PdfDocuments\Application\Model\Documents\deliverynotewithoutlogoPdf;
|
|
use D3\PdfDocuments\Application\Model\Documents\invoicePdf;
|
|
use D3\PdfDocuments\Application\Model\Documents\invoicewithoutlogoPdf;
|
|
use D3\PdfDocuments\Application\Model\Interfaces\pdfdocumentsOrderInterface;
|
|
|
|
class registryOrdermanagerActions extends registryAbstract implements registryOrdermanagerActionsInterface
|
|
{
|
|
public function __construct()
|
|
{
|
|
$this->addGenerator(invoicePdf::class);
|
|
$this->addGenerator(deliverynotePdf::class);
|
|
$this->addGenerator(invoicewithoutlogoPdf::class);
|
|
$this->addGenerator(deliverynotewithoutlogoPdf::class);
|
|
}
|
|
|
|
/**
|
|
* @return string
|
|
*/
|
|
public function getRequiredGeneratorInterfaceClassName()
|
|
{
|
|
return pdfdocumentsOrderInterface::class;
|
|
}
|
|
|
|
/**
|
|
* @param $className * generator fully qualified class name
|
|
* @return pdfdocumentsOrderInterface
|
|
*/
|
|
public function getGenerator($className)
|
|
{
|
|
return $this->_aRegistry[$className];
|
|
}
|
|
} |