[TASK] Cleanup TCA
[Packages/TYPO3.CMS.git] / typo3 / sysext / core / Tests / Functional / Fixtures / Extensions / test_datahandler / ext_tables.php
1 <?php
2 defined('TYPO3_MODE') or die();
3
4 \TYPO3\CMS\Core\Utility\ExtensionManagementUtility::allowTableOnStandardPages('tx_testdatahandler_element');
5
6 \TYPO3\CMS\Core\Utility\ExtensionManagementUtility::addTCAcolumns(
7 'tt_content',
8 array(
9 'tx_testdatahandler_select' => array(
10 'exclude' => true,
11 'label' => 'DataHandler Test Select',
12 'config' => array(
13 'type' => 'select',
14 'renderType' => 'selectMultipleSideBySide',
15 'foreign_table' => 'tx_testdatahandler_element',
16 'minitems' => 1,
17 'maxitems' => 10,
18 'autoSizeMax' => 10,
19 'default' => '',
20 ),
21 ),
22 'tx_testdatahandler_group' => array(
23 'exclude' => true,
24 'label' => 'DataHandler Test Group',
25 'config' => array(
26 'type' => 'group',
27 'internal_type' => 'db',
28 'allowed' => 'tx_testdatahandler_element',
29 'minitems' => 1,
30 'maxitems' => 10,
31 'autoSizeMax' => 10,
32 'default' => '',
33 ),
34 ),
35 'tx_testdatahandler_radio' => array(
36 'exclude' => true,
37 'label' => 'DataHandler Test Radio',
38 'config' => array(
39 'type' => 'radio',
40 'items' => array(
41 array('predefined label', 'predefined value')
42 ),
43 'itemsProcFunc' => 'TYPO3\TestDatahandler\Classes\Tca\RadioElementItems->getItems',
44 'default' => '',
45 ),
46 ),
47 'tx_testdatahandler_checkbox' => array(
48 'exclude' => true,
49 'label' => 'DataHandler Test Checkbox',
50 'config' => array(
51 'type' => 'check',
52 'items' => array(
53 array('predefined label', 'predefined value')
54 ),
55 'itemsProcFunc' => 'TYPO3\TestDatahandler\Classes\Tca\CheckboxElementItems->getItems',
56 'default' => '',
57 ),
58 ),
59 )
60 );
61
62 \TYPO3\CMS\Core\Utility\ExtensionManagementUtility::addToAllTCAtypes(
63 'tt_content',
64 '--div--;DataHandler Test, tx_testdatahandler_select, tx_testdatahandler_group'
65 );