-
Notifications
You must be signed in to change notification settings - Fork 2
/
ext_tables.php
60 lines (52 loc) · 2.1 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
50
51
52
53
54
55
56
57
58
59
60
<?php
if (!defined('TYPO3_MODE')) {
die ('Access denied.');
}
if (TYPO3_MODE === 'BE') {
\TYPO3\CMS\Core\Utility\ExtensionManagementUtility::addModule(
'web',
'xmlimport',
'',
'',
array(
'routeTarget' => \Digicademy\Xmltool\Controller\XmlimportModuleController::class . '::mainAction',
'access' => 'user,group',
'name' => 'web_xmlimport',
'icon' => 'EXT:xmltool/Resources/Public/Icons/module-xmlimport.svg',
'labels' => array(
'll_ref' => 'LLL:EXT:xmltool/Resources/Private/Language/locallang_mod_web_xmlimport.xlf',
),
)
);
\TYPO3\CMS\Core\Utility\ExtensionManagementUtility::insertModuleFunction(
'web_xmlimport',
\Digicademy\Xmltool\Controller\XmlimportExtractController::class,
null,
'LLL:EXT:xmltool/Resources/Private/Language/locallang_mod_web_xmlimport.xlf:extract_function'
);
\TYPO3\CMS\Core\Utility\ExtensionManagementUtility::insertModuleFunction(
'web_xmlimport',
\Digicademy\Xmltool\Controller\XmlimportBatchimportController::class,
null,
'LLL:EXT:xmltool/Resources/Private/Language/locallang_mod_web_xmlimport.xlf:batchimport_function'
);
}
\TYPO3\CMS\Core\Utility\ExtensionManagementUtility::allowTableOnStandardPages('tx_xmltool_domain_model_schedulerjob');
$iconRegistry = \TYPO3\CMS\Core\Utility\GeneralUtility::makeInstance(
\TYPO3\CMS\Core\Imaging\IconRegistry::class
);
$iconRegistry->registerIcon(
'tx-xmltool-schedulerjob',
\TYPO3\CMS\Core\Imaging\IconProvider\SvgIconProvider::class,
['source' => 'EXT:xmltool/Resources/Public/Icons/schedulerjob.svg']
);
$iconRegistry->registerIcon(
'tx-xmltool-schedulerjob-extract',
\TYPO3\CMS\Core\Imaging\IconProvider\SvgIconProvider::class,
['source' => 'EXT:xmltool/Resources/Public/Icons/schedulerjob_extract.svg']
);
$iconRegistry->registerIcon(
'tx-xmltool-schedulerjob-import',
\TYPO3\CMS\Core\Imaging\IconProvider\SvgIconProvider::class,
['source' => 'EXT:xmltool/Resources/Public/Icons/schedulerjob_import.svg']
);