forked from extcode/cart
-
Notifications
You must be signed in to change notification settings - Fork 0
/
ext_tables.php
49 lines (44 loc) · 1.41 KB
/
ext_tables.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
<?php
defined('TYPO3_MODE') or die();
use Extcode\Cart\Controller\Backend\Order\DocumentController;
use Extcode\Cart\Controller\Backend\Order\OrderController;
use Extcode\Cart\Controller\Backend\Order\PaymentController;
use Extcode\Cart\Controller\Backend\Order\ShippingController;
use TYPO3\CMS\Extbase\Utility\ExtensionUtility;
$_LLL_db = 'LLL:EXT:cart/Resources/Private/Language/locallang_db.xlf:';
/**
* Register Backend Modules
*/
if (TYPO3_MODE === 'BE') {
// add Main Module
ExtensionUtility::registerModule(
'Cart',
'Cart',
'',
'',
[],
[
'access' => 'user, group',
'iconIdentifier' => 'ext-cart-module',
'labels' => $_LLL_db . 'tx_cart.module.main',
]
);
ExtensionUtility::registerModule(
'Cart',
'Cart',
'Orders',
'',
[
OrderController::class => 'list, export, show, generateNumber, generatePdfDocument, downloadPdfDocument',
PaymentController::class => 'update',
ShippingController::class => 'update',
DocumentController::class => 'download, create',
],
[
'access' => 'user, group',
'iconIdentifier' => 'ext-cart-module-order',
'labels' => $_LLL_db . 'tx_cart.module.orders',
'navigationComponentId' => 'TYPO3/CMS/Backend/PageTree/PageTreeElement',
]
);
}