[BUGFIX] Use correct Extbase-ActionController
[TYPO3CMS/Extensions/questionrating.git] / ext_tables.php
1 <?php
2 if (!defined ('TYPO3_MODE')) {
3 die ('Access denied.');
4 }
5
6 Tx_Extbase_Utility_Extension::registerPlugin($_EXTKEY, 'Pi1', 'Question');
7 Tx_Extbase_Utility_Extension::registerPlugin($_EXTKEY, 'Pi2', 'Review');
8
9 // Disable the display of layout, select_key and page fields
10 $TCA['tt_content']['types']['list']['subtypes_excludelist']['questionrating_pi1'] = 'layout,select_key,pages';
11 $TCA['tt_content']['types']['list']['subtypes_excludelist']['questionrating_pi2'] = 'layout,select_key,pages';
12
13 t3lib_extMgm::addStaticFile($_EXTKEY, 'Configuration/TypoScript', 'questionrating');
14
15 $TCA['tx_questionrating_domain_model_question'] = array (
16 'ctrl' => array (
17 'title' => 'LLL:EXT:questionrating/Resources/Private/Language/locallang_db.xml:tx_questionrating_domain_model_question',
18 'label' => 'uid',
19 'tstamp' => 'tstamp',
20 'crdate' => 'crdate',
21 'cruser_id' => 'cruser_id',
22 'default_sortby' => 'ORDER BY crdate',
23 'delete' => 'deleted',
24 'enablecolumns' => array (
25 'disabled' => 'hidden',
26 ),
27 'dynamicConfigFile' => t3lib_extMgm::extPath($_EXTKEY) . 'Configuration/TCA/tca.php',
28 'iconfile' => t3lib_extMgm::extRelPath($_EXTKEY) . 'Resources/Public/Icons/icon_tx_questionrating_question.gif',
29 ),
30 );
31
32 $TCA['tx_questionrating_domain_model_rating'] = array (
33 'ctrl' => array (
34 'title' => 'LLL:EXT:questionrating/Resources/Private/Language/locallang_db.xml:tx_questionrating_domain_model_rating',
35 'label' => 'uid',
36 'tstamp' => 'tstamp',
37 'crdate' => 'crdate',
38 'cruser_id' => 'cruser_id',
39 'default_sortby' => 'ORDER BY crdate',
40 'delete' => 'deleted',
41 'enablecolumns' => array (
42 'disabled' => 'hidden',
43 ),
44 'dynamicConfigFile' => t3lib_extMgm::extPath($_EXTKEY) . 'Configuration/TCA/tca.php',
45 'iconfile' => t3lib_extMgm::extRelPath($_EXTKEY) . 'Resources/Public/Icons/icon_tx_questionrating_rating.gif',
46 ),
47 );
48
49 $TCA['tx_questionrating_domain_model_discussion'] = array (
50 'ctrl' => array (
51 'title' => 'LLL:EXT:questionrating/Resources/Private/Language/locallang_db.xml:tx_questionrating_domain_model_discussion',
52 'label' => 'uid',
53 'tstamp' => 'tstamp',
54 'crdate' => 'crdate',
55 'cruser_id' => 'cruser_id',
56 'default_sortby' => 'ORDER BY crdate',
57 'delete' => 'deleted',
58 'enablecolumns' => array (
59 'disabled' => 'hidden',
60 ),
61 'dynamicConfigFile' => t3lib_extMgm::extPath($_EXTKEY) . 'Configuration/TCA/tca.php',
62 'iconfile' => t3lib_extMgm::extRelPath($_EXTKEY) . 'Resources/Public/Icons/icon_tx_questionrating_discussion.gif',
63 ),
64 );
65
66 $TCA['tx_questionrating_domain_model_review'] = array (
67 'ctrl' => array (
68 'title' => 'LLL:EXT:questionrating/Resources/Private/Language/locallang_db.xml:tx_questionrating_domain_model_review',
69 'label' => 'uid',
70 'tstamp' => 'tstamp',
71 'crdate' => 'crdate',
72 'cruser_id' => 'cruser_id',
73 'default_sortby' => 'ORDER BY crdate',
74 'delete' => 'deleted',
75 'enablecolumns' => array (
76 'disabled' => 'hidden',
77 ),
78 'dynamicConfigFile' => t3lib_extMgm::extPath($_EXTKEY) . 'Configuration/TCA/tca.php',
79 'iconfile' => t3lib_extMgm::extRelPath($_EXTKEY) . 'Resources/Public/Icons/icon_tx_questionrating_review.gif',
80 ),
81 );
82
83 $TCA['tx_questionrating_domain_model_reviewcomment'] = array (
84 'ctrl' => array (
85 'title' => 'LLL:EXT:questionrating/Resources/Private/Language/locallang_db.xml:tx_questionrating_domain_model_reviewcomment',
86 'label' => 'uid',
87 'tstamp' => 'tstamp',
88 'crdate' => 'crdate',
89 'cruser_id' => 'cruser_id',
90 'default_sortby' => 'ORDER BY crdate',
91 'delete' => 'deleted',
92 'enablecolumns' => array (
93 'disabled' => 'hidden',
94 ),
95 'dynamicConfigFile' => t3lib_extMgm::extPath($_EXTKEY) . 'Configuration/TCA/tca.php',
96 'iconfile' => t3lib_extMgm::extRelPath($_EXTKEY) . 'Resources/Public/Icons/icon_tx_questionrating_reviewcomment.gif',
97 ),
98 );
99
100
101 $extensionName = t3lib_div::underscoredToUpperCamelCase($_EXTKEY);
102 $pluginSignature = strtolower($extensionName) . '_pi1';
103
104 $GLOBALS['TCA']['tt_content']['types']['list']['subtypes_excludelist'][$pluginSignature] = 'layout,select_key,recursive,pages';
105 $GLOBALS['TCA']['tt_content']['types']['list']['subtypes_addlist'][$pluginSignature] = 'pi_flexform';
106 t3lib_extMgm::addPiFlexFormValue($pluginSignature, 'FILE:EXT:' . $_EXTKEY . '/Configuration/FlexForms/flexform_list.xml');