mirror of https://github.com/FriendsOfTYPO3/tea.git synced 2024-11-22 13:16:19 +01:00

[CLEANUP] Use the short array syntax

This commit is contained in:
Oliver Klee 2016-05-07 21:56:27 +02:00
parent b6bb92d0da
commit d0871fb5f8
11 changed files with 304 additions and 304 deletions

View file

@ -1,104 +1,104 @@
<?php <?php
defined('TYPO3_MODE') or die('Access denied.'); defined('TYPO3_MODE') or die('Access denied.');
$GLOBALS['TCA']['tx_tea_domain_model_addition'] = array( $GLOBALS['TCA']['tx_tea_domain_model_addition'] = [
'ctrl' => $GLOBALS['TCA']['tx_tea_domain_model_addition']['ctrl'], 'ctrl' => $GLOBALS['TCA']['tx_tea_domain_model_addition']['ctrl'],
'interface' => array( 'interface' => [
'showRecordFieldList' => 'sys_language_uid, l10n_parent, l10n_diffsource, hidden, title', 'showRecordFieldList' => 'sys_language_uid, l10n_parent, l10n_diffsource, hidden, title',
), ],
'types' => array( 'types' => [
'1' => array('showitem' => 'sys_language_uid;;;;1-1-1, l10n_parent, l10n_diffsource, hidden;;1, title,--div--;LLL:EXT:cms/locallang_ttc.xlf:tabs.access,starttime, endtime'), '1' => ['showitem' => 'sys_language_uid;;;;1-1-1, l10n_parent, l10n_diffsource, hidden;;1, title,--div--;LLL:EXT:cms/locallang_ttc.xlf:tabs.access,starttime, endtime'],
), ],
'palettes' => array( 'palettes' => [
'1' => array('showitem' => ''), '1' => ['showitem' => ''],
), ],
'columns' => array( 'columns' => [
'sys_language_uid' => array( 'sys_language_uid' => [
'exclude' => 1, 'exclude' => 1,
'label' => 'LLL:EXT:lang/locallang_general.xlf:LGL.language', 'label' => 'LLL:EXT:lang/locallang_general.xlf:LGL.language',
'config' => array( 'config' => [
'type' => 'select', 'type' => 'select',
'foreign_table' => 'sys_language', 'foreign_table' => 'sys_language',
'foreign_table_where' => 'ORDER BY sys_language.title', 'foreign_table_where' => 'ORDER BY sys_language.title',
'items' => array( 'items' => [
array('LLL:EXT:lang/locallang_general.xlf:LGL.allLanguages', -1), ['LLL:EXT:lang/locallang_general.xlf:LGL.allLanguages', -1],
array('LLL:EXT:lang/locallang_general.xlf:LGL.default_value', 0), ['LLL:EXT:lang/locallang_general.xlf:LGL.default_value', 0],
), ],
), ],
), ],
'l10n_parent' => array( 'l10n_parent' => [
'displayCond' => 'FIELD:sys_language_uid:>:0', 'displayCond' => 'FIELD:sys_language_uid:>:0',
'exclude' => 1, 'exclude' => 1,
'label' => 'LLL:EXT:lang/locallang_general.xlf:LGL.l18n_parent', 'label' => 'LLL:EXT:lang/locallang_general.xlf:LGL.l18n_parent',
'config' => array( 'config' => [
'type' => 'select', 'type' => 'select',
'items' => array( 'items' => [
array('', 0), ['', 0],
), ],
'foreign_table' => 'tx_tea_domain_model_addition', 'foreign_table' => 'tx_tea_domain_model_addition',
'foreign_table_where' => 'AND tx_tea_domain_model_addition.pid=###CURRENT_PID### AND tx_tea_domain_model_addition.sys_language_uid IN (-1,0)', 'foreign_table_where' => 'AND tx_tea_domain_model_addition.pid=###CURRENT_PID### AND tx_tea_domain_model_addition.sys_language_uid IN (-1,0)',
), ],
), ],
'l10n_diffsource' => array( 'l10n_diffsource' => [
'config' => array( 'config' => [
'type' => 'passthrough', 'type' => 'passthrough',
), ],
), ],
't3ver_label' => array( 't3ver_label' => [
'label' => 'LLL:EXT:lang/locallang_general.xlf:LGL.versionLabel', 'label' => 'LLL:EXT:lang/locallang_general.xlf:LGL.versionLabel',
'config' => array( 'config' => [
'type' => 'input', 'type' => 'input',
'size' => 30, 'size' => 30,
'max' => 255, 'max' => 255,
) ]
), ],
'hidden' => array( 'hidden' => [
'exclude' => 1, 'exclude' => 1,
'label' => 'LLL:EXT:lang/locallang_general.xlf:LGL.hidden', 'label' => 'LLL:EXT:lang/locallang_general.xlf:LGL.hidden',
'config' => array( 'config' => [
'type' => 'check', 'type' => 'check',
), ],
), ],
'starttime' => array( 'starttime' => [
'exclude' => 1, 'exclude' => 1,
'l10n_mode' => 'mergeIfNotBlank', 'l10n_mode' => 'mergeIfNotBlank',
'label' => 'LLL:EXT:lang/locallang_general.xlf:LGL.starttime', 'label' => 'LLL:EXT:lang/locallang_general.xlf:LGL.starttime',
'config' => array( 'config' => [
'type' => 'input', 'type' => 'input',
'size' => 13, 'size' => 13,
'max' => 20, 'max' => 20,
'eval' => 'datetime', 'eval' => 'datetime',
'checkbox' => 0, 'checkbox' => 0,
'default' => 0, 'default' => 0,
'range' => array( 'range' => [
'lower' => mktime(0, 0, 0, date('m'), date('d'), date('Y')), 'lower' => mktime(0, 0, 0, date('m'), date('d'), date('Y')),
), ],
), ],
), ],
'endtime' => array( 'endtime' => [
'exclude' => 1, 'exclude' => 1,
'l10n_mode' => 'mergeIfNotBlank', 'l10n_mode' => 'mergeIfNotBlank',
'label' => 'LLL:EXT:lang/locallang_general.xlf:LGL.endtime', 'label' => 'LLL:EXT:lang/locallang_general.xlf:LGL.endtime',
'config' => array( 'config' => [
'type' => 'input', 'type' => 'input',
'size' => 13, 'size' => 13,
'max' => 20, 'max' => 20,
'eval' => 'datetime', 'eval' => 'datetime',
'checkbox' => 0, 'checkbox' => 0,
'default' => 0, 'default' => 0,
'range' => array( 'range' => [
'lower' => mktime(0, 0, 0, date('m'), date('d'), date('Y')), 'lower' => mktime(0, 0, 0, date('m'), date('d'), date('Y')),
), ],
), ],
), ],
'title' => array( 'title' => [
'exclude' => 0, 'exclude' => 0,
'label' => 'LLL:EXT:tea/Resources/Private/Language/locallang_db.xlf:tx_tea_domain_model_addition.title', 'label' => 'LLL:EXT:tea/Resources/Private/Language/locallang_db.xlf:tx_tea_domain_model_addition.title',
'config' => array( 'config' => [
'type' => 'input', 'type' => 'input',
'size' => 30, 'size' => 30,
'eval' => 'trim,required', 'eval' => 'trim,required',
), ],
), ],
), ],
); ];

View file

@ -1,119 +1,119 @@
<?php <?php
defined('TYPO3_MODE') or die('Access denied.'); defined('TYPO3_MODE') or die('Access denied.');
$GLOBALS['TCA']['tx_tea_domain_model_teabeverage'] = array( $GLOBALS['TCA']['tx_tea_domain_model_teabeverage'] = [
'ctrl' => $GLOBALS['TCA']['tx_tea_domain_model_teabeverage']['ctrl'], 'ctrl' => $GLOBALS['TCA']['tx_tea_domain_model_teabeverage']['ctrl'],
'interface' => array( 'interface' => [
'showRecordFieldList' => 'sys_language_uid, l10n_parent, l10n_diffsource, hidden, size, type, additions, testimonials', 'showRecordFieldList' => 'sys_language_uid, l10n_parent, l10n_diffsource, hidden, size, type, additions, testimonials',
), ],
'types' => array( 'types' => [
'1' => array('showitem' => 'sys_language_uid;;;;1-1-1, l10n_parent, l10n_diffsource, hidden;;1, size, type, additions, testimonials,--div--;LLL:EXT:cms/locallang_ttc.xlf:tabs.access,starttime, endtime'), '1' => ['showitem' => 'sys_language_uid;;;;1-1-1, l10n_parent, l10n_diffsource, hidden;;1, size, type, additions, testimonials,--div--;LLL:EXT:cms/locallang_ttc.xlf:tabs.access,starttime, endtime'],
), ],
'palettes' => array( 'palettes' => [
'1' => array('showitem' => ''), '1' => ['showitem' => ''],
), ],
'columns' => array( 'columns' => [
'sys_language_uid' => array( 'sys_language_uid' => [
'exclude' => 1, 'exclude' => 1,
'label' => 'LLL:EXT:lang/locallang_general.xlf:LGL.language', 'label' => 'LLL:EXT:lang/locallang_general.xlf:LGL.language',
'config' => array( 'config' => [
'type' => 'select', 'type' => 'select',
'foreign_table' => 'sys_language', 'foreign_table' => 'sys_language',
'foreign_table_where' => 'ORDER BY sys_language.title', 'foreign_table_where' => 'ORDER BY sys_language.title',
'items' => array( 'items' => [
array('LLL:EXT:lang/locallang_general.xlf:LGL.allLanguages', -1), ['LLL:EXT:lang/locallang_general.xlf:LGL.allLanguages', -1],
array('LLL:EXT:lang/locallang_general.xlf:LGL.default_value', 0), ['LLL:EXT:lang/locallang_general.xlf:LGL.default_value', 0],
), ],
), ],
), ],
'l10n_parent' => array( 'l10n_parent' => [
'displayCond' => 'FIELD:sys_language_uid:>:0', 'displayCond' => 'FIELD:sys_language_uid:>:0',
'exclude' => 1, 'exclude' => 1,
'label' => 'LLL:EXT:lang/locallang_general.xlf:LGL.l18n_parent', 'label' => 'LLL:EXT:lang/locallang_general.xlf:LGL.l18n_parent',
'config' => array( 'config' => [
'type' => 'select', 'type' => 'select',
'items' => array( 'items' => [
array('', 0), ['', 0],
), ],
'foreign_table' => 'tx_tea_domain_model_teabeverage', 'foreign_table' => 'tx_tea_domain_model_teabeverage',
'foreign_table_where' => 'AND tx_tea_domain_model_teabeverage.pid=###CURRENT_PID### AND tx_tea_domain_model_teabeverage.sys_language_uid IN (-1,0)', 'foreign_table_where' => 'AND tx_tea_domain_model_teabeverage.pid=###CURRENT_PID### AND tx_tea_domain_model_teabeverage.sys_language_uid IN (-1,0)',
), ],
), ],
'l10n_diffsource' => array( 'l10n_diffsource' => [
'config' => array( 'config' => [
'type' => 'passthrough', 'type' => 'passthrough',
), ],
), ],
't3ver_label' => array( 't3ver_label' => [
'label' => 'LLL:EXT:lang/locallang_general.xlf:LGL.versionLabel', 'label' => 'LLL:EXT:lang/locallang_general.xlf:LGL.versionLabel',
'config' => array( 'config' => [
'type' => 'input', 'type' => 'input',
'size' => 30, 'size' => 30,
'max' => 255, 'max' => 255,
) ]
), ],
'hidden' => array( 'hidden' => [
'exclude' => 1, 'exclude' => 1,
'label' => 'LLL:EXT:lang/locallang_general.xlf:LGL.hidden', 'label' => 'LLL:EXT:lang/locallang_general.xlf:LGL.hidden',
'config' => array( 'config' => [
'type' => 'check', 'type' => 'check',
), ],
), ],
'starttime' => array( 'starttime' => [
'exclude' => 1, 'exclude' => 1,
'l10n_mode' => 'mergeIfNotBlank', 'l10n_mode' => 'mergeIfNotBlank',
'label' => 'LLL:EXT:lang/locallang_general.xlf:LGL.starttime', 'label' => 'LLL:EXT:lang/locallang_general.xlf:LGL.starttime',
'config' => array( 'config' => [
'type' => 'input', 'type' => 'input',
'size' => 13, 'size' => 13,
'max' => 20, 'max' => 20,
'eval' => 'datetime', 'eval' => 'datetime',
'checkbox' => 0, 'checkbox' => 0,
'default' => 0, 'default' => 0,
'range' => array( 'range' => [
'lower' => mktime(0, 0, 0, date('m'), date('d'), date('Y')), 'lower' => mktime(0, 0, 0, date('m'), date('d'), date('Y')),
), ],
), ],
), ],
'endtime' => array( 'endtime' => [
'exclude' => 1, 'exclude' => 1,
'l10n_mode' => 'mergeIfNotBlank', 'l10n_mode' => 'mergeIfNotBlank',
'label' => 'LLL:EXT:lang/locallang_general.xlf:LGL.endtime', 'label' => 'LLL:EXT:lang/locallang_general.xlf:LGL.endtime',
'config' => array( 'config' => [
'type' => 'input', 'type' => 'input',
'size' => 13, 'size' => 13,
'max' => 20, 'max' => 20,
'eval' => 'datetime', 'eval' => 'datetime',
'checkbox' => 0, 'checkbox' => 0,
'default' => 0, 'default' => 0,
'range' => array( 'range' => [
'lower' => mktime(0, 0, 0, date('m'), date('d'), date('Y')), 'lower' => mktime(0, 0, 0, date('m'), date('d'), date('Y')),
), ],
), ],
), ],
'size' => array( 'size' => [
'exclude' => 0, 'exclude' => 0,
'label' => 'LLL:EXT:tea/Resources/Private/Language/locallang_db.xlf:tx_tea_domain_model_teabeverage.size', 'label' => 'LLL:EXT:tea/Resources/Private/Language/locallang_db.xlf:tx_tea_domain_model_teabeverage.size',
'config' => array( 'config' => [
'type' => 'input', 'type' => 'input',
'size' => 30, 'size' => 30,
'eval' => 'double2', 'eval' => 'double2',
), ],
), ],
'type' => array( 'type' => [
'exclude' => 0, 'exclude' => 0,
'label' => 'LLL:EXT:tea/Resources/Private/Language/locallang_db.xlf:tx_tea_domain_model_teabeverage.type', 'label' => 'LLL:EXT:tea/Resources/Private/Language/locallang_db.xlf:tx_tea_domain_model_teabeverage.type',
'config' => array( 'config' => [
'type' => 'select', 'type' => 'select',
'foreign_table' => 'tx_tea_domain_model_teatype', 'foreign_table' => 'tx_tea_domain_model_teatype',
'minitems' => 0, 'minitems' => 0,
'maxitems' => 1, 'maxitems' => 1,
), ],
), ],
'additions' => array( 'additions' => [
'exclude' => 0, 'exclude' => 0,
'label' => 'LLL:EXT:tea/Resources/Private/Language/locallang_db.xlf:tx_tea_domain_model_teabeverage.additions', 'label' => 'LLL:EXT:tea/Resources/Private/Language/locallang_db.xlf:tx_tea_domain_model_teabeverage.additions',
'config' => array( 'config' => [
'type' => 'select', 'type' => 'select',
'foreign_table' => 'tx_tea_domain_model_addition', 'foreign_table' => 'tx_tea_domain_model_addition',
'MM' => 'tx_tea_teabeverage_addition_mm', 'MM' => 'tx_tea_teabeverage_addition_mm',
@ -121,47 +121,47 @@ $GLOBALS['TCA']['tx_tea_domain_model_teabeverage'] = array(
'autoSizeMax' => 30, 'autoSizeMax' => 30,
'maxitems' => 9999, 'maxitems' => 9999,
'multiple' => 0, 'multiple' => 0,
'wizards' => array( 'wizards' => [
'_PADDING' => 1, '_PADDING' => 1,
'_VERTICAL' => 1, '_VERTICAL' => 1,
'edit' => array( 'edit' => [
'type' => 'popup', 'type' => 'popup',
'title' => 'Edit', 'title' => 'Edit',
'script' => 'wizard_edit.php', 'script' => 'wizard_edit.php',
'icon' => 'edit2.gif', 'icon' => 'edit2.gif',
'popup_onlyOpenIfSelected' => 1, 'popup_onlyOpenIfSelected' => 1,
'JSopenParams' => 'height=350,width=580,status=0,menubar=0,scrollbars=1', 'JSopenParams' => 'height=350,width=580,status=0,menubar=0,scrollbars=1',
), ],
'add' => array( 'add' => [
'type' => 'script', 'type' => 'script',
'title' => 'Create new', 'title' => 'Create new',
'icon' => 'add.gif', 'icon' => 'add.gif',
'params' => array( 'params' => [
'table' => 'tx_tea_domain_model_addition', 'table' => 'tx_tea_domain_model_addition',
'pid' => '###CURRENT_PID###', 'pid' => '###CURRENT_PID###',
'setValue' => 'prepend' 'setValue' => 'prepend'
), ],
'script' => 'wizard_add.php', 'script' => 'wizard_add.php',
), ],
), ],
), ],
), ],
'testimonials' => array( 'testimonials' => [
'exclude' => 0, 'exclude' => 0,
'label' => 'LLL:EXT:tea/Resources/Private/Language/locallang_db.xlf:tx_tea_domain_model_teabeverage.testimonials', 'label' => 'LLL:EXT:tea/Resources/Private/Language/locallang_db.xlf:tx_tea_domain_model_teabeverage.testimonials',
'config' => array( 'config' => [
'type' => 'inline', 'type' => 'inline',
'foreign_table' => 'tx_tea_domain_model_testimonial', 'foreign_table' => 'tx_tea_domain_model_testimonial',
'foreign_field' => 'teabeverage', 'foreign_field' => 'teabeverage',
'maxitems' => 9999, 'maxitems' => 9999,
'appearance' => array( 'appearance' => [
'collapseAll' => 0, 'collapseAll' => 0,
'levelLinksPosition' => 'top', 'levelLinksPosition' => 'top',
'showSynchronizationLink' => 1, 'showSynchronizationLink' => 1,
'showPossibleLocalizationRecords' => 1, 'showPossibleLocalizationRecords' => 1,
'showAllLocalizationLink' => 1, 'showAllLocalizationLink' => 1,
), ],
), ],
), ],
), ],
); ];

View file

@ -1,112 +1,112 @@
<?php <?php
defined('TYPO3_MODE') or die('Access denied.'); defined('TYPO3_MODE') or die('Access denied.');
$GLOBALS['TCA']['tx_tea_domain_model_teatype'] = array( $GLOBALS['TCA']['tx_tea_domain_model_teatype'] = [
'ctrl' => $GLOBALS['TCA']['tx_tea_domain_model_teatype']['ctrl'], 'ctrl' => $GLOBALS['TCA']['tx_tea_domain_model_teatype']['ctrl'],
'interface' => array( 'interface' => [
'showRecordFieldList' => 'sys_language_uid, l10n_parent, l10n_diffsource, hidden, title, caffeinated', 'showRecordFieldList' => 'sys_language_uid, l10n_parent, l10n_diffsource, hidden, title, caffeinated',
), ],
'types' => array( 'types' => [
'1' => array('showitem' => 'sys_language_uid;;;;1-1-1, l10n_parent, l10n_diffsource, hidden;;1, title, caffeinated,--div--;LLL:EXT:cms/locallang_ttc.xlf:tabs.access,starttime, endtime'), '1' => ['showitem' => 'sys_language_uid;;;;1-1-1, l10n_parent, l10n_diffsource, hidden;;1, title, caffeinated,--div--;LLL:EXT:cms/locallang_ttc.xlf:tabs.access,starttime, endtime'],
), ],
'palettes' => array( 'palettes' => [
'1' => array('showitem' => ''), '1' => ['showitem' => ''],
), ],
'columns' => array( 'columns' => [
'sys_language_uid' => array( 'sys_language_uid' => [
'exclude' => 1, 'exclude' => 1,
'label' => 'LLL:EXT:lang/locallang_general.xlf:LGL.language', 'label' => 'LLL:EXT:lang/locallang_general.xlf:LGL.language',
'config' => array( 'config' => [
'type' => 'select', 'type' => 'select',
'foreign_table' => 'sys_language', 'foreign_table' => 'sys_language',
'foreign_table_where' => 'ORDER BY sys_language.title', 'foreign_table_where' => 'ORDER BY sys_language.title',
'items' => array( 'items' => [
array('LLL:EXT:lang/locallang_general.xlf:LGL.allLanguages', -1), ['LLL:EXT:lang/locallang_general.xlf:LGL.allLanguages', -1],
array('LLL:EXT:lang/locallang_general.xlf:LGL.default_value', 0), ['LLL:EXT:lang/locallang_general.xlf:LGL.default_value', 0],
), ],
), ],
), ],
'l10n_parent' => array( 'l10n_parent' => [
'displayCond' => 'FIELD:sys_language_uid:>:0', 'displayCond' => 'FIELD:sys_language_uid:>:0',
'exclude' => 1, 'exclude' => 1,
'label' => 'LLL:EXT:lang/locallang_general.xlf:LGL.l18n_parent', 'label' => 'LLL:EXT:lang/locallang_general.xlf:LGL.l18n_parent',
'config' => array( 'config' => [
'type' => 'select', 'type' => 'select',
'items' => array( 'items' => [
array('', 0), ['', 0],
), ],
'foreign_table' => 'tx_tea_domain_model_teatype', 'foreign_table' => 'tx_tea_domain_model_teatype',
'foreign_table_where' => 'AND tx_tea_domain_model_teatype.pid=###CURRENT_PID### AND tx_tea_domain_model_teatype.sys_language_uid IN (-1,0)', 'foreign_table_where' => 'AND tx_tea_domain_model_teatype.pid=###CURRENT_PID### AND tx_tea_domain_model_teatype.sys_language_uid IN (-1,0)',
), ],
), ],
'l10n_diffsource' => array( 'l10n_diffsource' => [
'config' => array( 'config' => [
'type' => 'passthrough', 'type' => 'passthrough',
), ],
), ],
't3ver_label' => array( 't3ver_label' => [
'label' => 'LLL:EXT:lang/locallang_general.xlf:LGL.versionLabel', 'label' => 'LLL:EXT:lang/locallang_general.xlf:LGL.versionLabel',
'config' => array( 'config' => [
'type' => 'input', 'type' => 'input',
'size' => 30, 'size' => 30,
'max' => 255, 'max' => 255,
) ]
), ],
'hidden' => array( 'hidden' => [
'exclude' => 1, 'exclude' => 1,
'label' => 'LLL:EXT:lang/locallang_general.xlf:LGL.hidden', 'label' => 'LLL:EXT:lang/locallang_general.xlf:LGL.hidden',
'config' => array( 'config' => [
'type' => 'check', 'type' => 'check',
), ],
), ],
'starttime' => array( 'starttime' => [
'exclude' => 1, 'exclude' => 1,
'l10n_mode' => 'mergeIfNotBlank', 'l10n_mode' => 'mergeIfNotBlank',
'label' => 'LLL:EXT:lang/locallang_general.xlf:LGL.starttime', 'label' => 'LLL:EXT:lang/locallang_general.xlf:LGL.starttime',
'config' => array( 'config' => [
'type' => 'input', 'type' => 'input',
'size' => 13, 'size' => 13,
'max' => 20, 'max' => 20,
'eval' => 'datetime', 'eval' => 'datetime',
'checkbox' => 0, 'checkbox' => 0,
'default' => 0, 'default' => 0,
'range' => array( 'range' => [
'lower' => mktime(0, 0, 0, date('m'), date('d'), date('Y')), 'lower' => mktime(0, 0, 0, date('m'), date('d'), date('Y')),
), ],
), ],
), ],
'endtime' => array( 'endtime' => [
'exclude' => 1, 'exclude' => 1,
'l10n_mode' => 'mergeIfNotBlank', 'l10n_mode' => 'mergeIfNotBlank',
'label' => 'LLL:EXT:lang/locallang_general.xlf:LGL.endtime', 'label' => 'LLL:EXT:lang/locallang_general.xlf:LGL.endtime',
'config' => array( 'config' => [
'type' => 'input', 'type' => 'input',
'size' => 13, 'size' => 13,
'max' => 20, 'max' => 20,
'eval' => 'datetime', 'eval' => 'datetime',
'checkbox' => 0, 'checkbox' => 0,
'default' => 0, 'default' => 0,
'range' => array( 'range' => [
'lower' => mktime(0, 0, 0, date('m'), date('d'), date('Y')), 'lower' => mktime(0, 0, 0, date('m'), date('d'), date('Y')),
), ],
), ],
), ],
'title' => array( 'title' => [
'exclude' => 0, 'exclude' => 0,
'label' => 'LLL:EXT:tea/Resources/Private/Language/locallang_db.xlf:tx_tea_domain_model_teatype.title', 'label' => 'LLL:EXT:tea/Resources/Private/Language/locallang_db.xlf:tx_tea_domain_model_teatype.title',
'config' => array( 'config' => [
'type' => 'input', 'type' => 'input',
'size' => 30, 'size' => 30,
'eval' => 'trim,required', 'eval' => 'trim,required',
), ],
), ],
'caffeinated' => array( 'caffeinated' => [
'exclude' => 0, 'exclude' => 0,
'label' => 'LLL:EXT:tea/Resources/Private/Language/locallang_db.xlf:tx_tea_domain_model_teatype.caffeinated', 'label' => 'LLL:EXT:tea/Resources/Private/Language/locallang_db.xlf:tx_tea_domain_model_teatype.caffeinated',
'config' => array( 'config' => [
'type' => 'check', 'type' => 'check',
'default' => 0, 'default' => 0,
), ],
), ],
), ],
); ];

View file

@ -1,131 +1,131 @@
<?php <?php
defined('TYPO3_MODE') or die('Access denied.'); defined('TYPO3_MODE') or die('Access denied.');
$GLOBALS['TCA']['tx_tea_domain_model_testimonial'] = array( $GLOBALS['TCA']['tx_tea_domain_model_testimonial'] = [
'ctrl' => $GLOBALS['TCA']['tx_tea_domain_model_testimonial']['ctrl'], 'ctrl' => $GLOBALS['TCA']['tx_tea_domain_model_testimonial']['ctrl'],
'interface' => array( 'interface' => [
'showRecordFieldList' => 'sys_language_uid, l10n_parent, l10n_diffsource, hidden, date_of_posting, number_of_consumed_cups, text', 'showRecordFieldList' => 'sys_language_uid, l10n_parent, l10n_diffsource, hidden, date_of_posting, number_of_consumed_cups, text',
), ],
'types' => array( 'types' => [
'1' => array('showitem' => 'sys_language_uid;;;;1-1-1, l10n_parent, l10n_diffsource, hidden;;1, date_of_posting, number_of_consumed_cups, text,--div--;LLL:EXT:cms/locallang_ttc.xlf:tabs.access,starttime, endtime'), '1' => ['showitem' => 'sys_language_uid;;;;1-1-1, l10n_parent, l10n_diffsource, hidden;;1, date_of_posting, number_of_consumed_cups, text,--div--;LLL:EXT:cms/locallang_ttc.xlf:tabs.access,starttime, endtime'],
), ],
'palettes' => array( 'palettes' => [
'1' => array('showitem' => ''), '1' => ['showitem' => ''],
), ],
'columns' => array( 'columns' => [
'sys_language_uid' => array( 'sys_language_uid' => [
'exclude' => 1, 'exclude' => 1,
'label' => 'LLL:EXT:lang/locallang_general.xlf:LGL.language', 'label' => 'LLL:EXT:lang/locallang_general.xlf:LGL.language',
'config' => array( 'config' => [
'type' => 'select', 'type' => 'select',
'foreign_table' => 'sys_language', 'foreign_table' => 'sys_language',
'foreign_table_where' => 'ORDER BY sys_language.title', 'foreign_table_where' => 'ORDER BY sys_language.title',
'items' => array( 'items' => [
array('LLL:EXT:lang/locallang_general.xlf:LGL.allLanguages', -1), ['LLL:EXT:lang/locallang_general.xlf:LGL.allLanguages', -1],
array('LLL:EXT:lang/locallang_general.xlf:LGL.default_value', 0), ['LLL:EXT:lang/locallang_general.xlf:LGL.default_value', 0],
), ],
), ],
), ],
'l10n_parent' => array( 'l10n_parent' => [
'displayCond' => 'FIELD:sys_language_uid:>:0', 'displayCond' => 'FIELD:sys_language_uid:>:0',
'exclude' => 1, 'exclude' => 1,
'label' => 'LLL:EXT:lang/locallang_general.xlf:LGL.l18n_parent', 'label' => 'LLL:EXT:lang/locallang_general.xlf:LGL.l18n_parent',
'config' => array( 'config' => [
'type' => 'select', 'type' => 'select',
'items' => array( 'items' => [
array('', 0), ['', 0],
), ],
'foreign_table' => 'tx_tea_domain_model_testimonial', 'foreign_table' => 'tx_tea_domain_model_testimonial',
'foreign_table_where' => 'AND tx_tea_domain_model_testimonial.pid=###CURRENT_PID### AND tx_tea_domain_model_testimonial.sys_language_uid IN (-1,0)', 'foreign_table_where' => 'AND tx_tea_domain_model_testimonial.pid=###CURRENT_PID### AND tx_tea_domain_model_testimonial.sys_language_uid IN (-1,0)',
), ],
), ],
'l10n_diffsource' => array( 'l10n_diffsource' => [
'config' => array( 'config' => [
'type' => 'passthrough', 'type' => 'passthrough',
), ],
), ],
't3ver_label' => array( 't3ver_label' => [
'label' => 'LLL:EXT:lang/locallang_general.xlf:LGL.versionLabel', 'label' => 'LLL:EXT:lang/locallang_general.xlf:LGL.versionLabel',
'config' => array( 'config' => [
'type' => 'input', 'type' => 'input',
'size' => 30, 'size' => 30,
'max' => 255, 'max' => 255,
) ]
), ],
'hidden' => array( 'hidden' => [
'exclude' => 1, 'exclude' => 1,
'label' => 'LLL:EXT:lang/locallang_general.xlf:LGL.hidden', 'label' => 'LLL:EXT:lang/locallang_general.xlf:LGL.hidden',
'config' => array( 'config' => [
'type' => 'check', 'type' => 'check',
), ],
), ],
'starttime' => array( 'starttime' => [
'exclude' => 1, 'exclude' => 1,
'l10n_mode' => 'mergeIfNotBlank', 'l10n_mode' => 'mergeIfNotBlank',
'label' => 'LLL:EXT:lang/locallang_general.xlf:LGL.starttime', 'label' => 'LLL:EXT:lang/locallang_general.xlf:LGL.starttime',
'config' => array( 'config' => [
'type' => 'input', 'type' => 'input',
'size' => 13, 'size' => 13,
'max' => 20, 'max' => 20,
'eval' => 'datetime', 'eval' => 'datetime',
'checkbox' => 0, 'checkbox' => 0,
'default' => 0, 'default' => 0,
'range' => array( 'range' => [
'lower' => mktime(0, 0, 0, date('m'), date('d'), date('Y')), 'lower' => mktime(0, 0, 0, date('m'), date('d'), date('Y')),
), ],
), ],
), ],
'endtime' => array( 'endtime' => [
'exclude' => 1, 'exclude' => 1,
'l10n_mode' => 'mergeIfNotBlank', 'l10n_mode' => 'mergeIfNotBlank',
'label' => 'LLL:EXT:lang/locallang_general.xlf:LGL.endtime', 'label' => 'LLL:EXT:lang/locallang_general.xlf:LGL.endtime',
'config' => array( 'config' => [
'type' => 'input', 'type' => 'input',
'size' => 13, 'size' => 13,
'max' => 20, 'max' => 20,
'eval' => 'datetime', 'eval' => 'datetime',
'checkbox' => 0, 'checkbox' => 0,
'default' => 0, 'default' => 0,
'range' => array( 'range' => [
'lower' => mktime(0, 0, 0, date('m'), date('d'), date('Y')), 'lower' => mktime(0, 0, 0, date('m'), date('d'), date('Y')),
), ],
), ],
), ],
'date_of_posting' => array( 'date_of_posting' => [
'exclude' => 0, 'exclude' => 0,
'label' => 'LLL:EXT:tea/Resources/Private/Language/locallang_db.xlf:tx_tea_domain_model_testimonial.date_of_posting', 'label' => 'LLL:EXT:tea/Resources/Private/Language/locallang_db.xlf:tx_tea_domain_model_testimonial.date_of_posting',
'config' => array( 'config' => [
'dbType' => 'datetime', 'dbType' => 'datetime',
'type' => 'input', 'type' => 'input',
'size' => 12, 'size' => 12,
'eval' => 'datetime', 'eval' => 'datetime',
'checkbox' => 0, 'checkbox' => 0,
'default' => '0000-00-00 00:00:00', 'default' => '0000-00-00 00:00:00',
), ],
), ],
'number_of_consumed_cups' => array( 'number_of_consumed_cups' => [
'exclude' => 0, 'exclude' => 0,
'label' => 'LLL:EXT:tea/Resources/Private/Language/locallang_db.xlf:tx_tea_domain_model_testimonial.number_of_consumed_cups', 'label' => 'LLL:EXT:tea/Resources/Private/Language/locallang_db.xlf:tx_tea_domain_model_testimonial.number_of_consumed_cups',
'config' => array( 'config' => [
'type' => 'input', 'type' => 'input',
'size' => 4, 'size' => 4,
'eval' => 'int', 'eval' => 'int',
), ],
), ],
'text' => array( 'text' => [
'exclude' => 0, 'exclude' => 0,
'label' => 'LLL:EXT:tea/Resources/Private/Language/locallang_db.xlf:tx_tea_domain_model_testimonial.text', 'label' => 'LLL:EXT:tea/Resources/Private/Language/locallang_db.xlf:tx_tea_domain_model_testimonial.text',
'config' => array( 'config' => [
'type' => 'text', 'type' => 'text',
'cols' => 40, 'cols' => 40,
'rows' => 15, 'rows' => 15,
'eval' => 'trim', 'eval' => 'trim',
), ],
), ],
'teabeverage' => array( 'teabeverage' => [
'config' => array( 'config' => [
'type' => 'passthrough', 'type' => 'passthrough',
), ],
), ],
), ],
); ];

View file

@ -36,7 +36,7 @@ class TeaBeverageRepositoryTest extends \Tx_Phpunit_Database_TestCase
if (!$this->createDatabase()) { if (!$this->createDatabase()) {
self::markTestSkipped('Test database could not be created.'); self::markTestSkipped('Test database could not be created.');
} }
$this->importExtensions(array('tea')); $this->importExtensions(['tea']);
/** @var ObjectManager $objectManager */ /** @var ObjectManager $objectManager */
$objectManager = GeneralUtility::makeInstance(ObjectManager::class); $objectManager = GeneralUtility::makeInstance(ObjectManager::class);

View file

@ -93,7 +93,7 @@ class TestimonialRepositoryTest extends \TYPO3\CMS\Core\Tests\UnitTestCase
{ {
$text = 'A very good Early Grey!'; $text = 'A very good Early Grey!';
$uid = $this->testingFramework->createRecord( $uid = $this->testingFramework->createRecord(
'tx_tea_domain_model_testimonial', array('text' => $text) 'tx_tea_domain_model_testimonial', ['text' => $text]
); );
/** @var Testimonial $model */ /** @var Testimonial $model */

View file

@ -56,7 +56,7 @@ class FileUtilityTest extends \TYPO3\CMS\Core\Tests\UnitTestCase
*/ */
public function concatenateWithEmptyTargetFileNameThrowsException() public function concatenateWithEmptyTargetFileNameThrowsException()
{ {
$this->subject->concatenate('', array('foo.txt')); $this->subject->concatenate('', ['foo.txt']);
} }
/** /**
@ -64,7 +64,7 @@ class FileUtilityTest extends \TYPO3\CMS\Core\Tests\UnitTestCase
*/ */
public function concatenateWithNoSourceFilesCreatesEmptyTargetFile() public function concatenateWithNoSourceFilesCreatesEmptyTargetFile()
{ {
$this->subject->concatenate($this->targetFilePath, array()); $this->subject->concatenate($this->targetFilePath, []);
self::assertSame( self::assertSame(
'', '',
@ -82,7 +82,7 @@ class FileUtilityTest extends \TYPO3\CMS\Core\Tests\UnitTestCase
// Just calling vfsStream::url does not create the file yet. We need to write into it to create it. // Just calling vfsStream::url does not create the file yet. We need to write into it to create it.
file_put_contents($sourceFileName, ''); file_put_contents($sourceFileName, '');
$this->subject->concatenate($this->targetFilePath, array($sourceFileName)); $this->subject->concatenate($this->targetFilePath, [$sourceFileName]);
self::assertSame( self::assertSame(
'', '',
@ -100,7 +100,7 @@ class FileUtilityTest extends \TYPO3\CMS\Core\Tests\UnitTestCase
$sourceFileName = vfsStream::url('home/source.txt'); $sourceFileName = vfsStream::url('home/source.txt');
vfsStream::newFile('source.txt')->at($this->root)->setContent($contents); vfsStream::newFile('source.txt')->at($this->root)->setContent($contents);
$this->subject->concatenate($this->targetFilePath, array($sourceFileName)); $this->subject->concatenate($this->targetFilePath, [$sourceFileName]);
self::assertSame( self::assertSame(
$contents, $contents,
@ -122,7 +122,7 @@ class FileUtilityTest extends \TYPO3\CMS\Core\Tests\UnitTestCase
$this->subject->concatenate( $this->subject->concatenate(
$this->targetFilePath, $this->targetFilePath,
array($sourceFileName1, $sourceFileName2) [$sourceFileName1, $sourceFileName2]
); );
self::assertSame( self::assertSame(

View file

@ -48,7 +48,7 @@ class TestimonialControllerTest extends \TYPO3\CMS\Core\Tests\UnitTestCase
$this->view = $this->getMock(ViewInterface::class); $this->view = $this->getMock(ViewInterface::class);
$this->inject($this->subject, 'view', $this->view); $this->inject($this->subject, 'view', $this->view);
$this->testimonialRepository = $this->getMock(TestimonialRepository::class, array(), array(), '', false); $this->testimonialRepository = $this->getMock(TestimonialRepository::class, [], [], '', false);
$this->inject($this->subject, 'testimonialRepository', $this->testimonialRepository); $this->inject($this->subject, 'testimonialRepository', $this->testimonialRepository);
} }

View file

@ -10,7 +10,7 @@
* "version" and "dependencies" must not be touched! * "version" and "dependencies" must not be touched!
***************************************************************/ ***************************************************************/
$EM_CONF[$_EXTKEY] = array( $EM_CONF[$_EXTKEY] = [
'title' => 'Tea example', 'title' => 'Tea example',
'description' => 'This extension serves as an example on how to unit-test different data types and relation types in TYPO3 extensions.', 'description' => 'This extension serves as an example on how to unit-test different data types and relation types in TYPO3 extensions.',
'category' => 'plugin', 'category' => 'plugin',
@ -28,17 +28,17 @@ $EM_CONF[$_EXTKEY] = array(
'clearCacheOnLoad' => 0, 'clearCacheOnLoad' => 0,
'lockType' => '', 'lockType' => '',
'version' => '0.0.1', 'version' => '0.0.1',
'constraints' => array( 'constraints' => [
'depends' => array( 'depends' => [
'php' => '5.5.0-7.0.99', 'php' => '5.5.0-7.0.99',
'typo3' => '6.2.0-7.0.99', 'typo3' => '6.2.0-7.0.99',
'extbase' => '6.2.0-7.0.99', 'extbase' => '6.2.0-7.0.99',
'fluid' => '6.2.0-7.0.99', 'fluid' => '6.2.0-7.0.99',
'phpunit' => '4.0.0-5.9.99', 'phpunit' => '4.0.0-5.9.99',
), ],
'conflicts' => array( 'conflicts' => [
), ],
'suggests' => array( 'suggests' => [
), ],
), ],
); ];

View file

@ -5,11 +5,11 @@ defined('TYPO3_MODE') or die('Access denied.');
'OliverKlee.' . $_EXTKEY, 'OliverKlee.' . $_EXTKEY,
'Tea', 'Tea',
// all actions // all actions
array( [
'Testimonial' => 'index', 'Testimonial' => 'index',
), ],
// non-cacheable actions // non-cacheable actions
array( [
'Testimonial' => 'index', 'Testimonial' => 'index',
) ]
); );

View file

@ -11,8 +11,8 @@ defined('TYPO3_MODE') or die('Access denied.');
\TYPO3\CMS\Core\Utility\ExtensionManagementUtility::addLLrefForTCAdescr('tx_tea_domain_model_teabeverage', 'EXT:tea/Resources/Private/Language/locallang_csh_tx_tea_domain_model_teabeverage.xlf'); \TYPO3\CMS\Core\Utility\ExtensionManagementUtility::addLLrefForTCAdescr('tx_tea_domain_model_teabeverage', 'EXT:tea/Resources/Private/Language/locallang_csh_tx_tea_domain_model_teabeverage.xlf');
\TYPO3\CMS\Core\Utility\ExtensionManagementUtility::allowTableOnStandardPages('tx_tea_domain_model_teabeverage'); \TYPO3\CMS\Core\Utility\ExtensionManagementUtility::allowTableOnStandardPages('tx_tea_domain_model_teabeverage');
$GLOBALS['TCA']['tx_tea_domain_model_teabeverage'] = array( $GLOBALS['TCA']['tx_tea_domain_model_teabeverage'] = [
'ctrl' => array( 'ctrl' => [
'title' => 'LLL:EXT:tea/Resources/Private/Language/locallang_db.xlf:tx_tea_domain_model_teabeverage', 'title' => 'LLL:EXT:tea/Resources/Private/Language/locallang_db.xlf:tx_tea_domain_model_teabeverage',
'label' => 'size', 'label' => 'size',
'tstamp' => 'tstamp', 'tstamp' => 'tstamp',
@ -29,21 +29,21 @@ $GLOBALS['TCA']['tx_tea_domain_model_teabeverage'] = array(
'transOrigDiffSourceField' => 'l10n_diffsource', 'transOrigDiffSourceField' => 'l10n_diffsource',
'delete' => 'deleted', 'delete' => 'deleted',
'enablecolumns' => array( 'enablecolumns' => [
'disabled' => 'hidden', 'disabled' => 'hidden',
'starttime' => 'starttime', 'starttime' => 'starttime',
'endtime' => 'endtime', 'endtime' => 'endtime',
), ],
'searchFields' => 'size,type,additions,testimonials,', 'searchFields' => 'size,type,additions,testimonials,',
'dynamicConfigFile' => \TYPO3\CMS\Core\Utility\ExtensionManagementUtility::extPath($_EXTKEY) . 'Configuration/TCA/TeaBeverage.php', 'dynamicConfigFile' => \TYPO3\CMS\Core\Utility\ExtensionManagementUtility::extPath($_EXTKEY) . 'Configuration/TCA/TeaBeverage.php',
'iconfile' => \TYPO3\CMS\Core\Utility\ExtensionManagementUtility::extRelPath($_EXTKEY) . 'Resources/Public/Icons/tx_tea_domain_model_teabeverage.gif' 'iconfile' => \TYPO3\CMS\Core\Utility\ExtensionManagementUtility::extRelPath($_EXTKEY) . 'Resources/Public/Icons/tx_tea_domain_model_teabeverage.gif'
), ],
); ];
\TYPO3\CMS\Core\Utility\ExtensionManagementUtility::addLLrefForTCAdescr('tx_tea_domain_model_teatype', 'EXT:tea/Resources/Private/Language/locallang_csh_tx_tea_domain_model_teatype.xlf'); \TYPO3\CMS\Core\Utility\ExtensionManagementUtility::addLLrefForTCAdescr('tx_tea_domain_model_teatype', 'EXT:tea/Resources/Private/Language/locallang_csh_tx_tea_domain_model_teatype.xlf');
\TYPO3\CMS\Core\Utility\ExtensionManagementUtility::allowTableOnStandardPages('tx_tea_domain_model_teatype'); \TYPO3\CMS\Core\Utility\ExtensionManagementUtility::allowTableOnStandardPages('tx_tea_domain_model_teatype');
$GLOBALS['TCA']['tx_tea_domain_model_teatype'] = array( $GLOBALS['TCA']['tx_tea_domain_model_teatype'] = [
'ctrl' => array( 'ctrl' => [
'title' => 'LLL:EXT:tea/Resources/Private/Language/locallang_db.xlf:tx_tea_domain_model_teatype', 'title' => 'LLL:EXT:tea/Resources/Private/Language/locallang_db.xlf:tx_tea_domain_model_teatype',
'label' => 'title', 'label' => 'title',
'tstamp' => 'tstamp', 'tstamp' => 'tstamp',
@ -60,21 +60,21 @@ $GLOBALS['TCA']['tx_tea_domain_model_teatype'] = array(
'transOrigDiffSourceField' => 'l10n_diffsource', 'transOrigDiffSourceField' => 'l10n_diffsource',
'delete' => 'deleted', 'delete' => 'deleted',
'enablecolumns' => array( 'enablecolumns' => [
'disabled' => 'hidden', 'disabled' => 'hidden',
'starttime' => 'starttime', 'starttime' => 'starttime',
'endtime' => 'endtime', 'endtime' => 'endtime',
), ],
'searchFields' => 'title,caffeinated,', 'searchFields' => 'title,caffeinated,',
'dynamicConfigFile' => \TYPO3\CMS\Core\Utility\ExtensionManagementUtility::extPath($_EXTKEY) . 'Configuration/TCA/TeaType.php', 'dynamicConfigFile' => \TYPO3\CMS\Core\Utility\ExtensionManagementUtility::extPath($_EXTKEY) . 'Configuration/TCA/TeaType.php',
'iconfile' => \TYPO3\CMS\Core\Utility\ExtensionManagementUtility::extRelPath($_EXTKEY) . 'Resources/Public/Icons/tx_tea_domain_model_teatype.gif' 'iconfile' => \TYPO3\CMS\Core\Utility\ExtensionManagementUtility::extRelPath($_EXTKEY) . 'Resources/Public/Icons/tx_tea_domain_model_teatype.gif'
), ],
); ];
\TYPO3\CMS\Core\Utility\ExtensionManagementUtility::addLLrefForTCAdescr('tx_tea_domain_model_addition', 'EXT:tea/Resources/Private/Language/locallang_csh_tx_tea_domain_model_addition.xlf'); \TYPO3\CMS\Core\Utility\ExtensionManagementUtility::addLLrefForTCAdescr('tx_tea_domain_model_addition', 'EXT:tea/Resources/Private/Language/locallang_csh_tx_tea_domain_model_addition.xlf');
\TYPO3\CMS\Core\Utility\ExtensionManagementUtility::allowTableOnStandardPages('tx_tea_domain_model_addition'); \TYPO3\CMS\Core\Utility\ExtensionManagementUtility::allowTableOnStandardPages('tx_tea_domain_model_addition');
$GLOBALS['TCA']['tx_tea_domain_model_addition'] = array( $GLOBALS['TCA']['tx_tea_domain_model_addition'] = [
'ctrl' => array( 'ctrl' => [
'title' => 'LLL:EXT:tea/Resources/Private/Language/locallang_db.xlf:tx_tea_domain_model_addition', 'title' => 'LLL:EXT:tea/Resources/Private/Language/locallang_db.xlf:tx_tea_domain_model_addition',
'label' => 'title', 'label' => 'title',
'tstamp' => 'tstamp', 'tstamp' => 'tstamp',
@ -91,21 +91,21 @@ $GLOBALS['TCA']['tx_tea_domain_model_addition'] = array(
'transOrigDiffSourceField' => 'l10n_diffsource', 'transOrigDiffSourceField' => 'l10n_diffsource',
'delete' => 'deleted', 'delete' => 'deleted',
'enablecolumns' => array( 'enablecolumns' => [
'disabled' => 'hidden', 'disabled' => 'hidden',
'starttime' => 'starttime', 'starttime' => 'starttime',
'endtime' => 'endtime', 'endtime' => 'endtime',
), ],
'searchFields' => 'title,', 'searchFields' => 'title,',
'dynamicConfigFile' => \TYPO3\CMS\Core\Utility\ExtensionManagementUtility::extPath($_EXTKEY) . 'Configuration/TCA/Addition.php', 'dynamicConfigFile' => \TYPO3\CMS\Core\Utility\ExtensionManagementUtility::extPath($_EXTKEY) . 'Configuration/TCA/Addition.php',
'iconfile' => \TYPO3\CMS\Core\Utility\ExtensionManagementUtility::extRelPath($_EXTKEY) . 'Resources/Public/Icons/tx_tea_domain_model_addition.gif' 'iconfile' => \TYPO3\CMS\Core\Utility\ExtensionManagementUtility::extRelPath($_EXTKEY) . 'Resources/Public/Icons/tx_tea_domain_model_addition.gif'
), ],
); ];
\TYPO3\CMS\Core\Utility\ExtensionManagementUtility::addLLrefForTCAdescr('tx_tea_domain_model_testimonial', 'EXT:tea/Resources/Private/Language/locallang_csh_tx_tea_domain_model_testimonial.xlf'); \TYPO3\CMS\Core\Utility\ExtensionManagementUtility::addLLrefForTCAdescr('tx_tea_domain_model_testimonial', 'EXT:tea/Resources/Private/Language/locallang_csh_tx_tea_domain_model_testimonial.xlf');
\TYPO3\CMS\Core\Utility\ExtensionManagementUtility::allowTableOnStandardPages('tx_tea_domain_model_testimonial'); \TYPO3\CMS\Core\Utility\ExtensionManagementUtility::allowTableOnStandardPages('tx_tea_domain_model_testimonial');
$GLOBALS['TCA']['tx_tea_domain_model_testimonial'] = array( $GLOBALS['TCA']['tx_tea_domain_model_testimonial'] = [
'ctrl' => array( 'ctrl' => [
'title' => 'LLL:EXT:tea/Resources/Private/Language/locallang_db.xlf:tx_tea_domain_model_testimonial', 'title' => 'LLL:EXT:tea/Resources/Private/Language/locallang_db.xlf:tx_tea_domain_model_testimonial',
'label' => 'date_of_posting', 'label' => 'date_of_posting',
'tstamp' => 'tstamp', 'tstamp' => 'tstamp',
@ -122,13 +122,13 @@ $GLOBALS['TCA']['tx_tea_domain_model_testimonial'] = array(
'transOrigDiffSourceField' => 'l10n_diffsource', 'transOrigDiffSourceField' => 'l10n_diffsource',
'delete' => 'deleted', 'delete' => 'deleted',
'enablecolumns' => array( 'enablecolumns' => [
'disabled' => 'hidden', 'disabled' => 'hidden',
'starttime' => 'starttime', 'starttime' => 'starttime',
'endtime' => 'endtime', 'endtime' => 'endtime',
), ],
'searchFields' => 'date_of_posting,number_of_consumed_cups,text,', 'searchFields' => 'date_of_posting,number_of_consumed_cups,text,',
'dynamicConfigFile' => \TYPO3\CMS\Core\Utility\ExtensionManagementUtility::extPath($_EXTKEY) . 'Configuration/TCA/Testimonial.php', 'dynamicConfigFile' => \TYPO3\CMS\Core\Utility\ExtensionManagementUtility::extPath($_EXTKEY) . 'Configuration/TCA/Testimonial.php',
'iconfile' => \TYPO3\CMS\Core\Utility\ExtensionManagementUtility::extRelPath($_EXTKEY) . 'Resources/Public/Icons/tx_tea_domain_model_testimonial.gif' 'iconfile' => \TYPO3\CMS\Core\Utility\ExtensionManagementUtility::extRelPath($_EXTKEY) . 'Resources/Public/Icons/tx_tea_domain_model_testimonial.gif'
), ],
); ];