2022-06-20 15:41:50 +02:00
|
|
|
<?php
|
2022-07-13 13:21:52 +02:00
|
|
|
|
2022-06-20 15:41:50 +02:00
|
|
|
/**
|
2022-07-13 13:21:52 +02:00
|
|
|
* For the full copyright and license information, please view the LICENSE
|
|
|
|
* file that was distributed with this source code.
|
|
|
|
*
|
|
|
|
* https://www.d3data.de
|
|
|
|
*
|
|
|
|
* @copyright (C) D3 Data Development (Inh. Thomas Dartsch)
|
|
|
|
* @author D3 Data Development - Daniel Seifert <support@shopmodule.com>
|
|
|
|
* @link https://www.oxidmodule.com
|
2022-06-20 15:41:50 +02:00
|
|
|
*/
|
2022-07-04 09:13:36 +02:00
|
|
|
|
2022-07-13 13:21:52 +02:00
|
|
|
declare(strict_types=1);
|
|
|
|
|
2022-07-04 13:28:58 +02:00
|
|
|
use D3\Linkmobility4OXID\Application\Controller\Admin\AdminOrder;
|
2022-07-04 09:13:36 +02:00
|
|
|
use D3\Linkmobility4OXID\Application\Controller\Admin\AdminUser;
|
2022-07-11 15:57:09 +02:00
|
|
|
use D3\Linkmobility4OXID\Modules\Application\Model\OrderModel;
|
2022-07-04 16:33:49 +02:00
|
|
|
use D3\Linkmobility4OXID\Modules\Core\EmailCore;
|
2022-07-11 15:57:09 +02:00
|
|
|
use OxidEsales\Eshop\Application\Model\Order;
|
2022-07-04 16:33:49 +02:00
|
|
|
use OxidEsales\Eshop\Core\Email;
|
2022-07-04 09:13:36 +02:00
|
|
|
|
2022-06-20 15:41:50 +02:00
|
|
|
$sMetadataVersion = '2.1';
|
2022-07-04 09:13:36 +02:00
|
|
|
$sModuleId = 'd3linkmobility';
|
|
|
|
$sD3Logo = '<img src="https://logos.oxidmodule.com/d3logo.svg" alt="(D3)" style="height:1em;width:1em"> ';
|
2022-06-20 15:41:50 +02:00
|
|
|
|
|
|
|
/**
|
|
|
|
* Module information
|
|
|
|
*/
|
|
|
|
$aModule = [
|
|
|
|
'id' => $sModuleId,
|
|
|
|
'title' => $sD3Logo . ' Linkmobility',
|
|
|
|
'description' => [
|
2022-07-08 09:49:39 +02:00
|
|
|
'de' => 'Anbindung an die Linkmobility API <ul><li>Nachrichtenversand per SMS</li></ul>',
|
2022-06-20 15:41:50 +02:00
|
|
|
'en' => '',
|
|
|
|
],
|
|
|
|
'thumbnail' => 'picture.png',
|
|
|
|
'version' => '0.1',
|
|
|
|
'author' => 'D³ Data Development (Inh.: Thomas Dartsch)',
|
|
|
|
'email' => 'support@shopmodule.com',
|
|
|
|
'url' => 'https://www.oxidmodule.com/',
|
|
|
|
'extend' => [
|
2022-07-08 09:49:39 +02:00
|
|
|
Email::class => EmailCore::class,
|
2022-07-11 15:57:09 +02:00
|
|
|
Order::class => OrderModel::class
|
2022-06-20 15:41:50 +02:00
|
|
|
],
|
2022-07-04 09:13:36 +02:00
|
|
|
'controllers' => [
|
2022-07-04 13:28:58 +02:00
|
|
|
'd3linkmobility_user' => AdminUser::class,
|
|
|
|
'd3linkmobility_order' => AdminOrder::class
|
2022-07-04 09:13:36 +02:00
|
|
|
],
|
|
|
|
'templates' => [
|
2022-07-08 09:49:39 +02:00
|
|
|
'd3adminuser.tpl' => 'd3/linkmobility/Application/views/admin/tpl/adminuser.tpl',
|
|
|
|
'd3adminorder.tpl' => 'd3/linkmobility/Application/views/admin/tpl/adminuser.tpl',
|
|
|
|
'd3sms_ordercust.tpl' => 'd3/linkmobility/Application/views/tpl/SMS/order_cust.tpl',
|
|
|
|
'd3sms_sendednow.tpl' => 'd3/linkmobility/Application/views/tpl/SMS/sendednow.tpl',
|
|
|
|
'd3sms_ordercanceled.tpl' => 'd3/linkmobility/Application/views/tpl/SMS/ordercanceled.tpl',
|
2022-07-04 09:13:36 +02:00
|
|
|
],
|
2022-06-20 15:41:50 +02:00
|
|
|
'events' => [],
|
2022-07-08 10:17:59 +02:00
|
|
|
'blocks' => [
|
|
|
|
[
|
|
|
|
'template' => 'order_remark.tpl',
|
|
|
|
'block' => 'admin_order_remark_type',
|
|
|
|
'file' => 'Application/views/blocks/admin/admin_user_remark_type.tpl',
|
|
|
|
],
|
|
|
|
[
|
|
|
|
'template' => 'user_remark.tpl',
|
|
|
|
'block' => 'admin_user_remark_type',
|
|
|
|
'file' => 'Application/views/blocks/admin/admin_user_remark_type.tpl',
|
|
|
|
]
|
|
|
|
],
|
2022-06-20 15:41:50 +02:00
|
|
|
'settings' => [
|
|
|
|
[
|
|
|
|
'group' => $sModuleId.'_general',
|
|
|
|
'name' => $sModuleId.'_debug',
|
|
|
|
'type' => 'bool',
|
|
|
|
'value' => false
|
|
|
|
],
|
|
|
|
[
|
|
|
|
'group' => $sModuleId.'_general',
|
|
|
|
'name' => $sModuleId.'_apitoken',
|
|
|
|
'type' => 'str',
|
|
|
|
'value' => false
|
2022-07-01 11:48:44 +02:00
|
|
|
],
|
|
|
|
[
|
2022-07-08 12:19:08 +02:00
|
|
|
'group' => $sModuleId.'_sms',
|
2022-07-01 11:48:44 +02:00
|
|
|
'name' => $sModuleId.'_smsSenderNumber',
|
|
|
|
'type' => 'str',
|
|
|
|
'value' => false
|
|
|
|
],
|
|
|
|
[
|
2022-07-08 12:19:08 +02:00
|
|
|
'group' => $sModuleId.'_sms',
|
2022-07-01 11:48:44 +02:00
|
|
|
'name' => $sModuleId.'_smsSenderCountry',
|
|
|
|
'type' => 'str',
|
|
|
|
'value' => 'DE'
|
2022-07-04 16:33:49 +02:00
|
|
|
],
|
|
|
|
[
|
2022-07-08 12:19:08 +02:00
|
|
|
'group' => $sModuleId.'_sms',
|
|
|
|
'name' => $sModuleId.'_smsUserRecipientsFields',
|
|
|
|
'type' => 'arr',
|
|
|
|
'value' => [],
|
|
|
|
],
|
|
|
|
[
|
|
|
|
'group' => $sModuleId.'_sms',
|
|
|
|
'name' => $sModuleId.'_smsOrderRecipientsFields',
|
|
|
|
'type' => 'aarr',
|
|
|
|
'value' => [],
|
|
|
|
],
|
|
|
|
[
|
|
|
|
'group' => $sModuleId.'_trigger',
|
2022-07-04 16:33:49 +02:00
|
|
|
'name' => $sModuleId.'_orderActive',
|
|
|
|
'type' => 'bool',
|
|
|
|
'value' => false
|
2022-07-08 15:13:05 +02:00
|
|
|
],
|
|
|
|
[
|
|
|
|
'group' => $sModuleId.'_trigger',
|
|
|
|
'name' => $sModuleId.'_sendedNowActive',
|
|
|
|
'type' => 'bool',
|
|
|
|
'value' => false
|
|
|
|
],
|
|
|
|
[
|
|
|
|
'group' => $sModuleId.'_trigger',
|
|
|
|
'name' => $sModuleId.'_cancelOrderActive',
|
|
|
|
'type' => 'bool',
|
|
|
|
'value' => false
|
2022-06-20 15:41:50 +02:00
|
|
|
]
|
|
|
|
]
|
2022-07-13 13:23:48 +02:00
|
|
|
];
|