-
Notifications
You must be signed in to change notification settings - Fork 4
/
metadata.php
89 lines (86 loc) · 3.3 KB
/
metadata.php
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
<?php
/**
* Copyright © OXID eSales AG. All rights reserved.
* See LICENSE file for license details.
*/
/**
* Metadata version
*/
$sMetadataVersion = '2.1';
/**
* Module information
*/
$aModule = [
'id' => 'oe_moduletemplate',
'title' => 'OxidEsales Module Template (OEMT)',
'description' => 'Reusable module template with examples for the most common use cases',
'thumbnail' => 'pictures/logo.png',
'version' => '4.0.0',
'author' => 'OXID eSales AG',
'url' => '',
'email' => '',
'extend' => [
\OxidEsales\Eshop\Application\Controller\StartController::class => \OxidEsales\ModuleTemplate\Extension\Controller\StartController::class,
\OxidEsales\Eshop\Application\Controller\ArticleDetailsController::class => \OxidEsales\ModuleTemplate\ProductVote\Controller\ArticleDetailsController::class,
\OxidEsales\Eshop\Application\Component\Widget\ArticleDetails::class => \OxidEsales\ModuleTemplate\ProductVote\Widget\ArticleDetails::class,
\OxidEsales\Eshop\Application\Model\Basket::class => \OxidEsales\ModuleTemplate\Extension\Model\Basket::class,
\OxidEsales\Eshop\Application\Model\User::class => \OxidEsales\ModuleTemplate\Extension\Model\User::class,
],
'controllers' => [
'oemt_greeting' => \OxidEsales\ModuleTemplate\Greeting\Controller\GreetingController::class,
'oemt_admin_greeting' => \OxidEsales\ModuleTemplate\Greeting\Controller\Admin\GreetingAdminController::class,
],
'events' => [
'onActivate' => '\OxidEsales\ModuleTemplate\Core\ModuleEvents::onActivate',
'onDeactivate' => '\OxidEsales\ModuleTemplate\Core\ModuleEvents::onDeactivate'
],
'settings' => [
//TODO: add help texts for settings to explain possibilities and point out which ones only serve as example
/** Main */
[
'group' => 'oemoduletemplate_main',
'name' => 'oemoduletemplate_GreetingMode',
'type' => 'select',
'constraints' => 'generic|personal',
'value' => 'generic'
],
[
'group' => 'oemoduletemplate_main',
'name' => 'oemoduletemplate_BrandName',
'type' => 'str',
'value' => 'Testshop'
],
[
'group' => 'oemoduletemplate_main',
'name' => 'oemoduletemplate_LoggerEnabled',
'type' => 'bool',
'value' => false
],
[
'group' => 'oemoduletemplate_main',
'name' => 'oemoduletemplate_Timeout',
'type' => 'num',
'value' => 30
//'value' => 30.5
],
[
'group' => 'oemoduletemplate_main',
'name' => 'oemoduletemplate_Categories',
'type' => 'arr',
'value' => ['Sales', 'Manufacturers']
],
[
'group' => 'oemoduletemplate_main',
'name' => 'oemoduletemplate_Channels',
'type' => 'aarr',
'value' => ['1' => 'de', '2' => 'en']
],
[
'group' => 'oemoduletemplate_main',
'name' => 'oemoduletemplate_Password',
'type' => 'password',
'value' => 'changeMe',
'position' => 3
]
],
];