forked from aimeos/aimeos-typo3
-
Notifications
You must be signed in to change notification settings - Fork 0
/
ext_tables.php
81 lines (65 loc) · 2.25 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
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
<?php
if( ! defined( 'TYPO3_MODE' ) ) {
die ( 'Access denied.' );
}
if( file_exists( __DIR__ . '/Resources/Libraries/autoload.php' ) === true ) {
require_once __DIR__ . '/Resources/Libraries/autoload.php';
}
if( TYPO3_MODE === 'BE' )
{
/**
* Register Aimeos icon
*/
$iconRegistry = \TYPO3\CMS\Core\Utility\GeneralUtility::makeInstance(\TYPO3\CMS\Core\Imaging\IconRegistry::class);
$iconRegistry->registerIcon(
'aimeos-shop',
\TYPO3\CMS\Core\Imaging\IconProvider\SvgIconProvider::class,
['source' => 'EXT:aimeos/Resources/Public/Icons/Extension.svg']
);
$GLOBALS['TYPO3_CONF_VARS']['SC_OPTIONS']['cms']['db_new_content_el']['wizardItemsHook'][] = 'Aimeos\\Aimeos\\Custom\\WizardItem';
$TBE_MODULES_EXT['xMOD_db_new_content_el']['addElClasses']['Aimeos\\Aimeos\\Custom\\Wizicon'] =
\TYPO3\CMS\Core\Utility\ExtensionManagementUtility::extPath( 'aimeos' ) . 'Classes/Custom/Wizicon.php';
/**
* Register backend module
*/
$_aimeosConfiguration = array(
'access' => 'user,group',
'icon' => 'EXT:aimeos/Resources/Public/Icons/Extension.svg',
'labels' => 'LLL:EXT:aimeos/Resources/Private/Language/admin.xlf',
);
if( (bool) \Aimeos\Aimeos\Base::getExtConfig( 'showPageTree', false ) == false )
{
$_aimeosConfiguration['navigationComponentId'] = null;
$_aimeosConfiguration['inheritNavigationComponentFromMainModule'] = false;
}
\TYPO3\CMS\Extbase\Utility\ExtensionUtility::registerModule(
'Aimeos.aimeos',
'web',
'tx_aimeos_admin',
'', // position
array(
'Admin' => 'index',
'Jqadm' => 'search,copy,create,delete,export,get,import,save,file',
'Extadm' => 'index,do,file',
'Jsonadm' => 'index',
),
$_aimeosConfiguration
);
/**
* Execute the setup tasks automatically to create the required tables
*/
$signalSlotDispatcher = \TYPO3\CMS\Core\Utility\GeneralUtility::makeInstance('TYPO3\\CMS\\Extbase\\SignalSlot\\Dispatcher');
$signalSlotDispatcher->connect(
'TYPO3\\CMS\\Extensionmanager\\Service\\ExtensionManagementService',
'hasInstalledExtensions', // @deprecated, use "afterExtensionInstall" in TYPO3 10
'Aimeos\\Aimeos\\Setup',
'signal'
);
$signalSlotDispatcher->connect(
'TYPO3\\CMS\\Install\\Service\\SqlExpectedSchemaService',
'tablesDefinitionIsBeingBuilt',
'Aimeos\\Aimeos\\Setup',
'schema'
);
}
?>