This repository has been archived by the owner on Jun 19, 2018. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 26
/
ext_tables.php
63 lines (57 loc) · 2.51 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
<?php
if (!defined('TYPO3_MODE')) {
die ('Access denied.');
}
// avoid that this block is loaded in the frontend or within the upgrade-wizards
if (TYPO3_MODE === 'BE' && !(TYPO3_REQUESTTYPE & TYPO3_REQUESTTYPE_INSTALL)) {
/**
* Registers a Backend Module
*/
Tx_Extbase_Utility_Extension::registerModule(
'smoothmigration',
'tools',
'smoothmigration',
'after:reports',
array(
// An array holding the controller-action-combinations that are accessible
'Report' => 'checks,show,extension,reportOverview,pageIdList',
'Ajax' => 'runTest,getResults,clearTestResults'
),
array(
'access' => 'user,group',
'icon' => 'EXT:smoothmigration/Resources/Public/Images/ModuleIcon.png',
'labels' => 'LLL:EXT:smoothmigration/Resources/Private/Language/locallang_mod.xml'
)
);
$GLOBALS['TYPO3_CONF_VARS']['SC_OPTIONS']['extbase']['commandControllers']['smoothMigration'] = 'Tx_Smoothmigration_Controller_SmoothmigrationCommandController';
}
$TCA['tx_smoothmigration_domain_model_issue'] = array(
'ctrl' => array(
'title' => 'Recognized upgrade issues',
'label' => 'title',
'default_sortby' => 'ORDER BY extension, inspection',
'label_userFunc' => t3lib_extMgm::extPath('smoothmigration') . 'Classes/UserFunctions/Tca.php:Tx_smoothmigration_UserFunctions_Tca->issueTitle',
'dynamicConfigFile' => t3lib_extMgm::extPath('smoothmigration') . 'Configuration/TCA/tx_smoothmigration_domain_model_issue.php',
'iconfile' => t3lib_extMgm::extRelPath('smoothmigration') . 'ext_icon.gif'
)
);
// allow test results on normal pages
t3lib_extMgm::allowTableOnStandardPages('tx_smoothmigration_domain_model_issue');
$TCA['tx_smoothmigration_domain_model_deprecation'] = array(
'ctrl' => array(
'title' => 'Deprecated methods',
'label' => 'title',
'default_sortby' => 'ORDER BY class, interface, method',
'dynamicConfigFile' => t3lib_extMgm::extPath('smoothmigration') . 'Configuration/TCA/tx_smoothmigration_domain_model_deprecation.php',
'iconfile' => t3lib_extMgm::extRelPath('smoothmigration') . 'ext_icon.gif'
)
);
// enable label_userFunc only for TYPO3 v 4.1 and higher
if (t3lib_div::int_from_ver(TYPO3_version) >= 4001000) {
$TCA['tx_smoothmigration_domain_model_deprecation']['ctrl']['label_userFunc'] =
'Tx_smoothmigration_UserFunctions_Tca->deprecationTitle';
$TCA['tx_smoothmigration_domain_model_issue']['ctrl']['label_userFunc'] =
'Tx_smoothmigration_UserFunctions_Tca->issueTitle';
}
// allow test results on normal pages
t3lib_extMgm::allowTableOnStandardPages('tx_smoothmigration_domain_model_deprecation');