[Added] constants
This commit is contained in:
parent
3a09944479
commit
9a85c74825
14
Application/Model/Constants.php
Normal file
14
Application/Model/Constants.php
Normal file
@ -0,0 +1,14 @@
|
|||||||
|
<?php
|
||||||
|
|
||||||
|
declare(strict_types=1);
|
||||||
|
|
||||||
|
namespace D3\ManufacturerInformation\Application\Model;
|
||||||
|
|
||||||
|
|
||||||
|
class Constants
|
||||||
|
{
|
||||||
|
public const OXID_MODULE_ID = 'd3manufacturerinformation';
|
||||||
|
|
||||||
|
// Tables and Database
|
||||||
|
public const D3_OXMANUFACTURERS_LONGDESC_FIELDNAME = 'D3DESCRIPTION';
|
||||||
|
}
|
@ -14,10 +14,13 @@
|
|||||||
declare(strict_types=1);
|
declare(strict_types=1);
|
||||||
|
|
||||||
use D3\ManufacturerInformation\Application\Controller\Admin\ManufacturerInfoLongdesc;
|
use D3\ManufacturerInformation\Application\Controller\Admin\ManufacturerInfoLongdesc;
|
||||||
|
use D3\ManufacturerInformation\Application\Model\Constants;
|
||||||
|
use D3\ManufacturerInformation\Modules\Application\Model\D3ManufacturerLongDesc;
|
||||||
|
use OxidEsales\Eshop\Application\Model\Manufacturer as OEManufacturer;
|
||||||
|
|
||||||
$sMetadataVersion = '2.1';
|
$sMetadataVersion = '2.1';
|
||||||
|
|
||||||
$sModuleId = 'd3manufacturerinformation';
|
$sModuleId = Constants::OXID_MODULE_ID;
|
||||||
$logo = '<img src="https://logos.oxidmodule.com/d3logo.svg" alt="(D3)" style="height:1em;width:1em">';
|
$logo = '<img src="https://logos.oxidmodule.com/d3logo.svg" alt="(D3)" style="height:1em;width:1em">';
|
||||||
|
|
||||||
/**
|
/**
|
||||||
@ -39,7 +42,7 @@ $aModule = [
|
|||||||
"d3manufacturerinfolongdesc" => ManufacturerInfoLongdesc::class
|
"d3manufacturerinfolongdesc" => ManufacturerInfoLongdesc::class
|
||||||
],
|
],
|
||||||
'extend' => [
|
'extend' => [
|
||||||
// \OxidEsales\Eshop\Core\ShopControl::class => \D3\ThisModule\Modules\Core\ShopControl_MyModule::class
|
OEManufacturer::class => D3ManufacturerLongDesc::class
|
||||||
],
|
],
|
||||||
'events' => [
|
'events' => [
|
||||||
// 'onActivate' => '\D3\ThisModule\Setup\Events::onActivate',
|
// 'onActivate' => '\D3\ThisModule\Setup\Events::onActivate',
|
||||||
|
Loading…
x
Reference in New Issue
Block a user