use class alias, extend documentation

This commit is contained in:
Daniel Seifert 2020-08-13 09:13:18 +02:00
parent 200f33ad88
commit 9edbaf8adf
Signed by: DanielS
GPG Key ID: 8A7C4C6ED1915C6F
5 changed files with 55 additions and 19 deletions

View File

@ -1,16 +0,0 @@
<?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\PdfDocumentsCompat\Modules\Application\Model
{
use OxidEsales\Eshop\Application\Model\Order;
class d3_Order_PDFDocsCompat_parent extends Order {}
}

View File

@ -15,8 +15,16 @@ 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 OxidEsales\Eshop\Application\Model\Order;
use OxidEsales\Eshop\Core\Registry;
if (false) {
class_alias(
d3_Order_PDFDocsCompat_parent::class,
Order::class
);
}
class d3_Order_PDFDocsCompat extends d3_Order_PDFDocsCompat_parent
{
public function setSelectedLang($iLang)

View File

@ -12,7 +12,7 @@ Das Adminformular zur Dokumentengenerierung wird hierin nicht nachgebaut, da die
## Systemanforderungen:
- installierter OXID eShop in Version 6
- installierter OXID eShop ab Version 6.1
- D3 PDF Dokumente Modul (wird ggf. nachinstalliert)
- PHP-Version, für die Installationspakete verfügbar sind (PHP 7)
- Installation via Composer

44
README.en.md Normal file
View File

@ -0,0 +1,44 @@
# PDF Documents - compatibility layer
Compatibility Layer for PDF Documents Module to OXID InvoicePDF Module
This customization allows third party modules that would otherwise use the OXID InvoicePdf module for their own purposes, to use the D3 PDF Documents module instead.
The generation call of the standard documents (invoice, delivery note) is routed via the PDF Documents module.
If further documents have been added, the routing must be added there.
The admin form for document generation is not copied here, because it is already included in the PDF Documents module in a similar form. Adjustments (e.g. template block overloads) should be adapted to this.
## System requirements:
- installed OXID eShop from version 6.1
- D3 PDF Documents Module
- PHP version for which installation packages are available (PHP 7)
- Installation via Composer
## compatibility:
The module contains the same functionality as the `OXID Invoice PDF` module. Since it is intended to replace its function, the OXID module is uninstalled.
## Installation
Disable the OXID InvoicePDF module in the admin area of your shop.
```bash
composer require d3/pdfdocuments_compat --update-no-dev
```
Delete the files of the OXID InvoicePDF module.
## Support:
- D3 Data Development (Inh. Thomas Dartsch)
- Home: [www.d3data.de](https://www.d3data.de)
- E-Mail: support@shopmodule.com
## License
This module is distributed under the GPL v3 License. For more information see the ./LICENSE file.
Copyright by D3 Data Development (Inh. Thomas Dartsch)

View File

@ -14,7 +14,7 @@ use OxidEsales\Eshop\Application\Model\Order as Order;
/**
* Metadata version
*/
$sMetadataVersion = '2.0';
$sMetadataVersion = '2.1';
$logo = '<img src="https://logos.oxidmodule.com/d3logo.svg" alt="(D3)" style="height:1em;width:1em">';
@ -28,7 +28,7 @@ $aModule = [
'de' => $logo.' PDF-Dokumente Kompatibilitätsschicht',
'en' => $logo.' PDF documents compatibility layer',
],
'version' => '0.1',
'version' => '1.0',
'author' => 'D&sup3; Data Development (Inh.: Thomas Dartsch)',
'email' => 'support@shopmodule.com',
'url' => 'http://www.oxidmodule.com/',