Beispiel #1
0
if (!defined('TYPO3_MODE')) {
    die('Access denied.');
}
$extConfig = unserialize($GLOBALS['TYPO3_CONF_VARS']['EXT']['extConf']['caretaker']);
$advancedNotificationsEnabled = $extConfig['notifications.']['advanced.']['enabled'] == '1';
$TCA['tx_caretaker_instancegroup'] = array('ctrl' => $TCA['tx_caretaker_instancegroup']['ctrl'], 'interface' => array('showRecordFieldList' => 'hidden,tests,name'), 'feInterface' => $TCA['tx_caretaker_instancegroup']['feInterface'], 'columns' => array('hidden' => array('label' => 'LLL:EXT:lang/locallang_general.php:LGL.hidden', 'config' => array('type' => 'check', 'default' => '0')), 'starttime' => array('label' => 'LLL:EXT:lang/locallang_general.php:LGL.starttime', 'config' => array('type' => 'input', 'size' => '8', 'max' => '20', 'eval' => 'date', 'default' => '0', 'checkbox' => '0')), 'endtime' => array('label' => 'LLL:EXT:lang/locallang_general.php:LGL.endtime', 'config' => array('type' => 'input', 'size' => '8', 'max' => '20', 'eval' => 'date', 'checkbox' => '0', 'default' => '0', 'range' => array('upper' => mktime(0, 0, 0, 12, 31, 2020), 'lower' => mktime(0, 0, 0, date('m') - 1, date('d'), date('Y'))))), 'fe_group' => array('label' => 'LLL:EXT:lang/locallang_general.php:LGL.fe_group', 'config' => array('type' => 'select', 'items' => array(array('LLL:EXT:lang/locallang_general.xml:LGL.hide_at_login', -1), array('LLL:EXT:lang/locallang_general.xml:LGL.any_login', -2), array('LLL:EXT:lang/locallang_general.xml:LGL.usergroups', '--div--')), 'exclusiveKeys' => '-1,-2', 'foreign_table' => 'fe_groups', 'foreign_table_where' => 'ORDER BY fe_groups.title', 'maxitems' => 20, 'size' => 7)), 'title' => array('label' => 'LLL:EXT:caretaker/locallang_db.xml:tx_caretaker_instancegroup.title', 'config' => array('type' => 'input', 'size' => '30', 'eval' => 'trim')), 'description' => array('label' => 'LLL:EXT:caretaker/locallang_db.xml:tx_caretaker_instancegroup.description', 'config' => array('type' => 'text', 'cols' => '50', 'rows' => '5'), 'defaultExtras' => 'richtext'), 'parent_group' => array('label' => 'LLL:EXT:caretaker/locallang_db.xml:tx_caretaker_instancegroup.parent_group', 'config' => array('type' => 'select', 'form_type' => 'user', 'userFunc' => 'tx_caretaker_treeview->displayGroupTree', 'treeView' => 1, 'foreign_table' => 'tx_caretaker_instancegroup', 'size' => 1, 'autoSizeMax' => 10, 'minitems' => 0, 'maxitems' => 2, 'items' => array(array('LLL:EXT:caretaker/locallang_db.xml:tx_caretaker_instancegroup.parent_group.select', 0)))), 'contacts' => array('label' => 'LLL:EXT:caretaker/locallang_db.xml:tx_caretaker_instancegroup.contacts', 'config' => array('type' => 'inline', 'foreign_table' => 'tx_caretaker_node_address_mm', 'foreign_field' => 'uid_node', 'foreign_table_field' => 'node_table', 'appearance' => array('collapseAll' => true, 'expandSingle' => true))), 'notification_strategies' => array('label' => 'LLL:EXT:caretaker/locallang_db.xml:tx_caretaker_general.notification_strategies', 'config' => array('type' => 'inline', 'foreign_table' => 'tx_caretaker_node_strategy_mm', 'foreign_field' => 'uid_node', 'foreign_table_field' => 'node_table', 'foreign_selector' => 'uid_strategy', 'appearance' => array('collapseAll' => true, 'expandSingle' => true)))), 'types' => array('0' => array('showitem' => 'title;;1;;1-1-1, parent_group;;;;2-2-2,' . '--div--;LLL:EXT:caretaker/locallang_db.xml:tx_caretaker_instancegroup.tab.description, description, ' . '--div--;LLL:EXT:caretaker/locallang_db.xml:tx_caretaker_instancegroup.tab.contacts, contacts, ' . ($advancedNotificationsEnabled ? '--div--;LLL:EXT:caretaker/locallang_db.xml:tx_caretaker_instancegroup.tab.notifications, notification_strategies, ' : '') . '--div--;LLL:EXT:caretaker/locallang_db.xml:tx_caretaker_instancegroup.tab.access, hidden, starttime, endtime, fe_group')), 'palettes' => array());
$TCA['tx_caretaker_instance'] = array('ctrl' => $TCA['tx_caretaker_instance']['ctrl'], 'interface' => array('showRecordFieldList' => 'hidden,instancegroup,testgroups,tests,request_mode,encryption_mode,encryption_key,project_namename,project_manager,domain,additional_domains,contacts,server_type,server_provider,server_customer_id,server_other,cms_url,cms_admin,cms_pwd,cms_install_pwd,accesses,other,request_url,contacts'), 'feInterface' => $TCA['tx_caretaker_instance']['feInterface'], 'columns' => array('hidden' => array('label' => 'LLL:EXT:lang/locallang_general.php:LGL.hidden', 'config' => array('type' => 'check', 'default' => '0')), 'starttime' => array('label' => 'LLL:EXT:lang/locallang_general.php:LGL.starttime', 'config' => array('type' => 'input', 'size' => '8', 'max' => '20', 'eval' => 'date', 'default' => '0', 'checkbox' => '0')), 'endtime' => array('label' => 'LLL:EXT:lang/locallang_general.php:LGL.endtime', 'config' => array('type' => 'input', 'size' => '8', 'max' => '20', 'eval' => 'date', 'checkbox' => '0', 'default' => '0', 'range' => array('upper' => mktime(0, 0, 0, 12, 31, 2020), 'lower' => mktime(0, 0, 0, date('m') - 1, date('d'), date('Y'))))), 'fe_group' => array('label' => 'LLL:EXT:lang/locallang_general.php:LGL.fe_group', 'config' => array('type' => 'select', 'items' => array(array('LLL:EXT:lang/locallang_general.xml:LGL.hide_at_login', -1), array('LLL:EXT:lang/locallang_general.xml:LGL.any_login', -2), array('LLL:EXT:lang/locallang_general.xml:LGL.usergroups', '--div--')), 'exclusiveKeys' => '-1,-2', 'foreign_table' => 'fe_groups', 'foreign_table_where' => 'ORDER BY fe_groups.title', 'maxitems' => 20, 'size' => 7)), 'title' => array('label' => 'LLL:EXT:caretaker/locallang_db.xml:tx_caretaker_instance.title', 'config' => array('type' => 'input', 'size' => '30', 'eval' => 'trim')), 'description' => array('label' => 'LLL:EXT:caretaker/locallang_db.xml:tx_caretaker_instance.description', 'config' => array('type' => 'text', 'cols' => '50', 'rows' => '5'), 'defaultExtras' => 'richtext'), 'url' => array('label' => 'LLL:EXT:caretaker/locallang_db.xml:tx_caretaker_instance.url', 'config' => array('type' => 'input', 'size' => '30', 'eval' => 'trim')), 'host' => array('label' => 'LLL:EXT:caretaker/locallang_db.xml:tx_caretaker_instance.host', 'config' => array('type' => 'input', 'size' => '30', 'eval' => 'trim')), 'groups' => array('label' => 'LLL:EXT:caretaker/locallang_db.xml:tx_caretaker_instance.groups', 'config' => array('type' => 'select', 'form_type' => 'user', 'userFunc' => 'tx_caretaker_treeview->displayGroupTree', 'treeView' => 1, 'foreign_table' => 'tx_caretaker_testgroup', 'size' => 5, 'autoSizeMax' => 25, 'minitems' => 0, 'maxitems' => 50, 'MM' => 'tx_caretaker_instance_testgroup_mm')), 'tests' => array('label' => 'LLL:EXT:caretaker/locallang_db.xml:tx_caretaker_instance.tests', 'config' => array('type' => 'select', 'foreign_table' => 'tx_caretaker_test', 'MM' => 'tx_caretaker_instance_test_mm', 'MM_opposite_field' => 'instances', 'size' => 5, 'autoSizeMax' => 10, 'minitems' => 0, 'maxitems' => 10000, 'wizards' => array('_PADDING' => 1, '_VERTICAL' => 1, 'edit' => array('type' => 'popup', 'title' => 'Edit Test', 'module' => array('name' => 'wizard_edit'), 'icon' => 'edit2.gif', 'popup_onlyOpenIfSelected' => 1, 'JSopenParams' => 'height=350,width=580,status=0,menubar=0,scrollbars=1'), 'add' => array('type' => 'script', 'title' => 'Create new Test', 'icon' => 'add.gif', 'params' => array('table' => 'tx_caretaker_test', 'pid' => '###CURRENT_PID###', 'setValue' => 'prepend'), 'module' => array('name' => 'wizard_add'))))), 'public_key' => array('label' => 'LLL:EXT:caretaker/locallang_db.xml:tx_caretaker_instance.public_key', 'displayCond' => 'EXT:caretaker_instance:LOADED:true', 'config' => array('type' => 'input', 'eval' => 'trim', 'max' => '1024')), 'instancegroup' => array('label' => 'LLL:EXT:caretaker/locallang_db.xml:tx_caretaker_instance.instancegroup', 'config' => array('type' => 'select', 'foreign_table' => 'tx_caretaker_instancegroup', 'size' => 1, 'minitems' => 0, 'maxitems' => 1, 'items' => array(array('', '0')))), 'notifications' => array('label' => 'LLL:EXT:caretaker/locallang_db.xml:tx_caretaker_instance.notifications', 'config' => array('type' => 'group', 'internal_type' => 'db', 'allowed' => \TYPO3\CMS\Core\Utility\ExtensionManagementUtility::isLoaded('tt_address') ? 'tt_address' : 'tx_caretaker_contactaddress', 'size' => 5, 'autoSizeMax' => 25, 'minitems' => 0, 'maxitems' => 50)), 'testconfigurations' => array('label' => 'LLL:EXT:caretaker/locallang_db.xml:tx_caretaker_test.test_conf', 'config' => array('type' => 'flex', 'ds' => array('default' => 'FILE:EXT:caretaker/res/flexform/ds.tx_caretaker_instance_testconfiguration.xml'))), 'contacts' => array('label' => 'LLL:EXT:caretaker/locallang_db.xml:tx_caretaker_instance.contacts', 'config' => array('type' => 'inline', 'foreign_table' => 'tx_caretaker_node_address_mm', 'foreign_field' => 'uid_node', 'foreign_table_field' => 'node_table', 'appearance' => array('collapseAll' => true, 'expandSingle' => true))), 'notification_strategies' => array('label' => 'LLL:EXT:caretaker/locallang_db.xml:tx_caretaker_general.notification_strategies', 'config' => array('type' => 'inline', 'foreign_table' => 'tx_caretaker_node_strategy_mm', 'foreign_field' => 'uid_node', 'foreign_table_field' => 'node_table', 'foreign_selector' => 'uid_strategy', 'appearance' => array('collapseAll' => true, 'expandSingle' => true)))), 'types' => array('0' => array('showitem' => 'title;;;;2-2-2, instancegroup, url;;;;3-3-3, host, public_key,' . '--div--;LLL:EXT:caretaker/locallang_db.xml:tx_caretaker_instance.tab.description, description, ' . '--div--;LLL:EXT:caretaker/locallang_db.xml:tx_caretaker_instance.tab.relations, groups, tests, ' . '--div--;LLL:EXT:caretaker/locallang_db.xml:tx_caretaker_instance.tab.contacts, contacts, ' . ($advancedNotificationsEnabled ? '--div--;LLL:EXT:caretaker/locallang_db.xml:tx_caretaker_instance.tab.notifications, notification_strategies, ' : '') . '--div--;LLL:EXT:caretaker/locallang_db.xml:tx_caretaker_instance.tab.testconfigurations, testconfigurations, ' . '--div--;LLL:EXT:caretaker/locallang_db.xml:tx_caretaker_instance.tab.access, hidden, starttime, endtime, fe_group')), 'palettes' => array());
$TCA['tx_caretaker_node_address_mm'] = array('ctrl' => $TCA['tx_caretaker_node_address_mm']['ctrl'], 'interface' => array('showRecordFieldList' => ''), 'columns' => array('uid_address' => array('label' => 'LLL:EXT:tt_address/locallang_tca.xml:tt_address', 'config' => array('type' => 'select', 'foreign_table' => \TYPO3\CMS\Core\Utility\ExtensionManagementUtility::isLoaded('tt_address') ? 'tt_address' : 'tx_caretaker_contactaddress', 'wizards' => array('_PADDING' => 1, '_VERTICAL' => 1, 'edit' => array('type' => 'script', 'title' => 'Create new address', 'icon' => 'add.gif', 'params' => array('table' => \TYPO3\CMS\Core\Utility\ExtensionManagementUtility::isLoaded('tt_address') ? 'tt_address' : 'tx_caretaker_contactaddress', 'pid' => '0', 'setValue' => 'prepend'), 'module' => array('name' => 'wizard_add'))))), 'role' => array('label' => 'LLL:EXT:caretaker/locallang_db.xml:tx_caretaker_roles', 'config' => array('type' => 'select', 'foreign_table' => 'tx_caretaker_roles', 'items' => array(array('', 0))))), 'types' => array('0' => array('showitem' => 'uid_address;;1;;1-1-1, role')));
$TCA['tx_caretaker_contactaddress'] = array('ctrl' => $TCA['tx_caretaker_contactaddress']['ctrl'], 'interface' => array('showRecordFieldList' => 'hidden,name,email,xmpp'), 'feInterface' => $TCA['tx_caretaker_contactaddress']['feInterface'], 'columns' => array('hidden' => array('label' => 'LLL:EXT:lang/locallang_general.php:LGL.hidden', 'config' => array('type' => 'check', 'default' => '0')), 'name' => array('label' => 'LLL:EXT:caretaker/locallang_db.xml:tx_caretaker_contactaddress.name', 'config' => array('type' => 'input', 'size' => '30', 'eval' => 'trim')), 'email' => array('label' => 'LLL:EXT:caretaker/locallang_db.xml:tx_caretaker_contactaddress.email', 'config' => array('type' => 'input', 'size' => '30', 'eval' => 'trim')), 'xmpp' => array('label' => 'LLL:EXT:caretaker/locallang_db.xml:tx_caretaker_contactaddress.xmpp', 'config' => array('type' => 'input', 'size' => '30', 'eval' => 'trim'))), 'types' => array('0' => array('showitem' => 'id;;;;1-1-1, name, email, xmpp')), 'palettes' => array('1' => array('showitem' => 'hidden')));
if ($advancedNotificationsEnabled) {
    $TCA['tx_caretaker_node_strategy_mm'] = array('ctrl' => $TCA['tx_caretaker_node_strategy_mm']['ctrl'], 'interface' => array('showRecordFieldList' => ''), 'columns' => array('uid_strategy' => array('label' => 'LLL:EXT:caretaker/locallang_db.xml:tx_caretaker_strategies', 'config' => array('type' => 'select', 'foreign_table' => 'tx_caretaker_strategies'))), 'types' => array('0' => array('showitem' => 'uid_strategy;;1;;1-1-1')));
}
$TCA['tx_caretaker_testgroup'] = array('ctrl' => $TCA['tx_caretaker_testgroup']['ctrl'], 'interface' => array('showRecordFieldList' => 'hidden,tests,name'), 'feInterface' => $TCA['tx_caretaker_testgroup']['feInterface'], 'columns' => array('hidden' => array('label' => 'LLL:EXT:lang/locallang_general.php:LGL.hidden', 'config' => array('type' => 'check', 'default' => '0')), 'starttime' => array('label' => 'LLL:EXT:lang/locallang_general.php:LGL.starttime', 'config' => array('type' => 'input', 'size' => '8', 'max' => '20', 'eval' => 'date', 'default' => '0', 'checkbox' => '0')), 'endtime' => array('label' => 'LLL:EXT:lang/locallang_general.php:LGL.endtime', 'config' => array('type' => 'input', 'size' => '8', 'max' => '20', 'eval' => 'date', 'checkbox' => '0', 'default' => '0', 'range' => array('upper' => mktime(0, 0, 0, 12, 31, 2020), 'lower' => mktime(0, 0, 0, date('m') - 1, date('d'), date('Y'))))), 'fe_group' => array('label' => 'LLL:EXT:lang/locallang_general.php:LGL.fe_group', 'config' => array('type' => 'select', 'items' => array(array('', 0), array('LLL:EXT:lang/locallang_general.xml:LGL.hide_at_login', -1), array('LLL:EXT:lang/locallang_general.xml:LGL.any_login', -2), array('LLL:EXT:lang/locallang_general.xml:LGL.usergroups', '--div--')), 'foreign_table' => 'fe_groups')), 'title' => array('label' => 'LLL:EXT:caretaker/locallang_db.xml:tx_caretaker_testgroup.title', 'config' => array('type' => 'input', 'size' => '30', 'eval' => 'trim')), 'description' => array('label' => 'LLL:EXT:caretaker/locallang_db.xml:tx_caretaker_testgroup.description', 'config' => array('type' => 'text', 'cols' => '50', 'rows' => '5'), 'defaultExtras' => 'richtext'), 'parent_group' => array('label' => 'LLL:EXT:caretaker/locallang_db.xml:tx_caretaker_testgroup.parent_group', 'config' => array('type' => 'select', 'form_type' => 'user', 'userFunc' => 'tx_caretaker_treeview->displayGroupTree', 'treeView' => 1, 'foreign_table' => 'tx_caretaker_testgroup', 'size' => 1, 'autoSizeMax' => 10, 'minitems' => 0, 'maxitems' => 2, 'items' => array(array('LLL:EXT:caretaker/locallang_db.xml:tx_caretaker_testgroup.parent_group.select', 0)))), 'instances' => array('label' => 'LLL:EXT:caretaker/locallang_db.xml:tx_caretaker_testgroup.instances', 'config' => array('type' => 'select', 'foreign_table' => 'tx_caretaker_instance', 'MM' => 'tx_caretaker_instance_testgroup_mm', 'MM_opposite_field' => 'group', 'size' => 5, 'autoSizeMax' => 25, 'minitems' => 0, 'maxitems' => 10000)), 'tests' => array('label' => 'LLL:EXT:caretaker/locallang_db.xml:tx_caretaker_testgroup.tests', 'config' => array('type' => 'select', 'foreign_table' => 'tx_caretaker_test', 'MM' => 'tx_caretaker_testgroup_test_mm', 'MM_opposite_field' => 'groups', 'size' => 5, 'autoSizeMax' => 25, 'minitems' => 0, 'maxitems' => 10000, 'wizards' => array('_PADDING' => 1, '_VERTICAL' => 1, 'edit' => array('type' => 'popup', 'title' => 'Edit Test', 'module' => array('name' => 'wizard_edit'), 'icon' => 'edit2.gif', 'popup_onlyOpenIfSelected' => 1, 'JSopenParams' => 'height=350,width=580,status=0,menubar=0,scrollbars=1'), 'add' => array('type' => 'script', 'title' => 'Create new Test', 'icon' => 'add.gif', 'params' => array('table' => 'tx_caretaker_test', 'pid' => '###CURRENT_PID###', 'setValue' => 'prepend'), 'module' => array('name' => 'wizard_add')))))), 'types' => array('0' => array('showitem' => 'hidden;;1;;1-1-1, title;;2;;2-2-2, parent_group;;;;3-3-3,
		--div--;LLL:EXT:caretaker/locallang_db.xml:tx_caretaker_testgroup.tab.description,description,
		--div--;LLL:EXT:caretaker/locallang_db.xml:tx_caretaker_testgroup.tab.relations,tests;;;;4-4-4
		')), 'palettes' => array('1' => array('showitem' => 'starttime,endtime,fe_group'), '2' => array('showitem' => 'instances')));
$TCA['tx_caretaker_test'] = array('ctrl' => $TCA['tx_caretaker_test']['ctrl'], 'interface' => array('showRecordFieldList' => 'hidden,starttime,endtime,fe_group,title,description,test_interval,test_interval_start_hour,test_interval_stop_hour,test_service,test_conf,test_retry,test_due,roles,groups,instances'), 'feInterface' => $TCA['tx_caretaker_test']['feInterface'], 'columns' => array('hidden' => array('label' => 'LLL:EXT:lang/locallang_general.php:LGL.hidden', 'config' => array('type' => 'check', 'default' => '0')), 'starttime' => array('label' => 'LLL:EXT:lang/locallang_general.php:LGL.starttime', 'config' => array('type' => 'input', 'size' => '8', 'max' => '20', 'eval' => 'date', 'default' => '0', 'checkbox' => '0')), 'endtime' => array('label' => 'LLL:EXT:lang/locallang_general.php:LGL.endtime', 'config' => array('type' => 'input', 'size' => '8', 'max' => '20', 'eval' => 'date', 'checkbox' => '0', 'default' => '0', 'range' => array('upper' => mktime(0, 0, 0, 12, 31, 2020), 'lower' => mktime(0, 0, 0, date('m') - 1, date('d'), date('Y'))))), 'fe_group' => array('label' => 'LLL:EXT:lang/locallang_general.php:LGL.fe_group', 'config' => array('type' => 'select', 'items' => array(array('', 0), array('LLL:EXT:lang/locallang_general.xml:LGL.hide_at_login', -1), array('LLL:EXT:lang/locallang_general.xml:LGL.any_login', -2), array('LLL:EXT:lang/locallang_general.xml:LGL.usergroups', '--div--')), 'foreign_table' => 'fe_groups')), 'title' => array('label' => 'LLL:EXT:caretaker/locallang_db.xml:tx_caretaker_test.title', 'config' => array('type' => 'input', 'size' => '30', 'eval' => 'trim')), 'description' => array('label' => 'LLL:EXT:caretaker/locallang_db.xml:tx_caretaker_test.description', 'config' => array('type' => 'text', 'cols' => '50', 'rows' => '5'), 'defaultExtras' => 'richtext'), 'test_interval' => array('label' => 'LLL:EXT:caretaker/locallang_db.xml:tx_caretaker_test.test_interval', 'config' => array('type' => 'select', 'items' => array(array('always', 0), array('1 Minute', 60), array('5 Minutes', 300), array('10 Minutes', 600), array('15 Minutes', 900), array('20 Minutes', 1200), array('30 Minutes', 1800), array('45 Minutes', 2700), array('1 Hour', 3600), array('2 Hours', 7200), array('4 Hours', 14400), array('8 Hours', 28800), array('10 Hours', 36000), array('12 Hours', 43200), array('1 Day', 86400), array('2 Days', 172800), array('3 Days', 259200), array('4 Days', 345600), array('5 Days', 432000), array('6 Days', 518400), array('1 Week', 604800), array('2 Weeks', 1209600), array('4 Weeks', 2419200)), 'default' => 0)), 'test_interval_start_hour' => array('label' => 'LLL:EXT:caretaker/locallang_db.xml:tx_caretaker_test.test_interval_start_hour', 'config' => array('type' => 'select', 'items' => array(array('', 0), array(1, 1), array(2, 2), array(3, 3), array(4, 4), array(5, 5), array(6, 6), array(7, 7), array(8, 8), array(9, 9), array(10, 10), array(11, 11), array(12, 12), array(13, 13), array(14, 14), array(15, 15), array(16, 16), array(17, 17), array(18, 18), array(19, 19), array(20, 20), array(21, 21), array(22, 22), array(23, 23), array(24, 24)))), 'test_interval_stop_hour' => array('label' => 'LLL:EXT:caretaker/locallang_db.xml:tx_caretaker_test.test_interval_stop_hour', 'config' => array('type' => 'select', 'items' => array(array('', 0), array(1, 1), array(2, 2), array(3, 3), array(4, 4), array(5, 5), array(6, 6), array(7, 7), array(8, 8), array(9, 9), array(10, 10), array(11, 11), array(12, 12), array(13, 13), array(14, 14), array(15, 15), array(16, 16), array(17, 17), array(18, 18), array(19, 19), array(20, 20), array(21, 21), array(22, 22), array(23, 23), array(24, 24)))), 'test_service' => array('label' => 'LLL:EXT:caretaker/locallang_db.xml:tx_caretaker_test.test_service', 'config' => array('type' => 'select', 'items' => array_merge(array(0 => array('LLL:EXT:caretaker/locallang_db.xml:tx_caretaker_test.test_service.select_service', '')), \tx_caretaker_ServiceHelper::getTcaTestServiceItems()), 'size' => 1, 'maxitems' => 1)), 'test_conf' => array('displayCond' => 'FIELD:test_service:REQ:true', 'label' => 'LLL:EXT:caretaker/locallang_db.xml:tx_caretaker_test.test_conf', 'config' => array('type' => 'flex', 'ds_pointerField' => 'test_service', 'ds' => \tx_caretaker_ServiceHelper::getTcaTestConfigDs())), 'test_retry' => array('label' => 'LLL:EXT:caretaker/locallang_db.xml:tx_caretaker_test.test_retry', 'config' => array('type' => 'select', 'items' => array(0 => array('LLL:EXT:caretaker/locallang_db.xml:tx_caretaker_test.test_retry_0', 0), 2 => array('LLL:EXT:caretaker/locallang_db.xml:tx_caretaker_test.test_retry_1', 1), 3 => array('LLL:EXT:caretaker/locallang_db.xml:tx_caretaker_test.test_retry_2', 2), 4 => array('LLL:EXT:caretaker/locallang_db.xml:tx_caretaker_test.test_retry_3', 3), 5 => array('LLL:EXT:caretaker/locallang_db.xml:tx_caretaker_test.test_retry_4', 4), 6 => array('LLL:EXT:caretaker/locallang_db.xml:tx_caretaker_test.test_retry_5', 5)), 'size' => 1, 'maxitems' => 1, 'default' => 0)), 'test_due' => array('label' => 'LLL:EXT:caretaker/locallang_db.xml:tx_caretaker_test.test_due', 'config' => array('type' => 'check')), 'roles' => array('label' => 'LLL:EXT:caretaker/locallang_db.xml:tx_caretaker_test.roles', 'config' => array('type' => 'select', 'foreign_table' => 'tx_caretaker_roles', 'size' => 5, 'autoSizeMax' => 25, 'minitems' => 0, 'maxitems' => 100, 'MM' => 'tx_caretaker_test_roles_mm')), 'groups' => array('label' => 'LLL:EXT:caretaker/locallang_db.xml:tx_caretaker_test.groups', 'config' => array('type' => 'select', 'foreign_table' => 'tx_caretaker_testgroup', 'size' => 5, 'autoSizeMax' => 25, 'minitems' => 0, 'maxitems' => 50, 'MM' => 'tx_caretaker_testgroup_test_mm')), 'instances' => array('label' => 'LLL:EXT:caretaker/locallang_db.xml:tx_caretaker_test.instances', 'config' => array('type' => 'select', 'foreign_table' => 'tx_caretaker_instance', 'size' => 5, 'autoSizeMax' => 25, 'minitems' => 0, 'maxitems' => 10000, 'MM' => 'tx_caretaker_instance_test_mm'))), 'types' => array('0' => array('showitem' => 'test_service;;;;1-1-1, hidden;;1;;2-2-2, title;;3;;3-3-3,test_interval;;2,test_retry, test_due, test_conf;;;;4-4-4,
					--div--;LLL:EXT:caretaker/locallang_db.xml:tx_caretaker_test.tab.description, description,
					--div--;LLL:EXT:caretaker/locallang_db.xml:tx_caretaker_test.tab.notifications, roles')), 'palettes' => array('1' => array('showitem' => 'starttime,endtime,fe_group'), '2' => array('showitem' => 'test_interval_start_hour,test_interval_stop_hour'), '3' => array('showitem' => 'groups,instances')));
$TCA['tx_caretaker_roles'] = array('ctrl' => $TCA['tx_caretaker_roles']['ctrl'], 'interface' => array('showRecordFieldList' => 'hidden,id,name'), 'feInterface' => $TCA['tx_caretaker_roles']['feInterface'], 'columns' => array('hidden' => array('label' => 'LLL:EXT:lang/locallang_general.php:LGL.hidden', 'config' => array('type' => 'check', 'default' => '0')), 'id' => array('label' => 'LLL:EXT:caretaker/locallang_db.xml:tx_caretaker_roles.id', 'config' => array('type' => 'input', 'size' => '30', 'eval' => 'unique,trim')), 'name' => array('label' => 'LLL:EXT:caretaker/locallang_db.xml:tx_caretaker_roles.name', 'config' => array('type' => 'input', 'size' => '30', 'eval' => 'unique,trim')), 'description' => array('label' => 'LLL:EXT:caretaker/locallang_db.xml:tx_caretaker_roles.description', 'config' => array('type' => 'text', 'cols' => '50', 'rows' => '5'))), 'types' => array('0' => array('showitem' => 'id;;;;1-1-1, name, description')), 'palettes' => array('1' => array('showitem' => 'hidden')));
if ($advancedNotificationsEnabled) {
    $TCA['tx_caretaker_exitpoints'] = array('ctrl' => $TCA['tx_caretaker_exitpoints']['ctrl'], 'interface' => array('showRecordFieldList' => 'hidden,id,name,description,service,config'), 'feInterface' => $TCA['tx_caretaker_exitpoints']['feInterface'], 'columns' => array('hidden' => array('label' => 'LLL:EXT:lang/locallang_general.php:LGL.hidden', 'config' => array('type' => 'check', 'default' => '0')), 'id' => array('label' => 'LLL:EXT:caretaker/locallang_db.xml:tx_caretaker_exitpoints.id', 'config' => array('type' => 'input', 'size' => 30, 'eval' => 'required,nospace,unique')), 'name' => array('label' => 'LLL:EXT:caretaker/locallang_db.xml:tx_caretaker_exitpoints.name', 'config' => array('type' => 'input', 'size' => '255')), 'description' => array('label' => 'LLL:EXT:caretaker/locallang_db.xml:tx_caretaker_exitpoints.description', 'config' => array('type' => 'text', 'cols' => '50', 'rows' => '5')), 'service' => array('label' => 'LLL:EXT:caretaker/locallang_db.xml:tx_caretaker_exitpoints.service', 'config' => array('type' => 'select', 'items' => array_merge(array(0 => array('LLL:EXT:caretaker/locallang_db.xml:tx_caretaker_exitpoints.service.select_exitpoint', '')), \tx_caretaker_ServiceHelper::getTcaExitPointServiceItems()), 'size' => 1, 'maxitems' => 1)), 'config' => array('displayCond' => 'FIELD:service:REQ:true', 'label' => 'LLL:EXT:caretaker/locallang_db.xml:tx_caretaker_exitpoints.config', 'config' => ['type' => 'flex', 'ds_pointerField' => 'service', 'ds' => \tx_caretaker_ServiceHelper::getTcaExitPointConfigDs()])), 'types' => array('0' => array('showitem' => 'id;;;;1-1-1, name, description, service, config')), 'palettes' => array('1' => array('showitem' => 'hidden')));
    $TCA['tx_caretaker_strategies'] = array('ctrl' => $TCA['tx_caretaker_strategies']['ctrl'], 'interface' => array('showRecordFieldList' => 'hidden,id,name'), 'feInterface' => $TCA['tx_caretaker_strategies']['feInterface'], 'columns' => array('hidden' => array('label' => 'LLL:EXT:lang/locallang_general.php:LGL.disable', 'config' => array('type' => 'check', 'default' => '0')), 'name' => array('label' => 'LLL:EXT:caretaker/locallang_db.xml:tx_caretaker_strategies.name', 'config' => array('type' => 'input', 'size' => '30', 'eval' => 'unique,trim')), 'description' => array('label' => 'LLL:EXT:caretaker/locallang_db.xml:tx_caretaker_strategies.description', 'config' => array('type' => 'text', 'cols' => '50', 'rows' => '5')), 'config' => array('label' => 'LLL:EXT:caretaker/locallang_db.xml:tx_caretaker_strategies.config', 'config' => array('type' => 'text', 'cols' => 50, 'rows' => 50))), 'types' => array('0' => array('showitem' => 'hidden;;;;1-1-1, id;;;;1-1-1, name, description, config')), 'palettes' => array('1' => array()));
}
$GLOBALS['TCA']['tx_caretaker_instancegroup']['ctrl']['searchFields'] = 'title, description';
$GLOBALS['TCA']['tx_caretaker_instance']['ctrl']['searchFields'] = 'title, description, url, host';
$GLOBALS['TCA']['tx_caretaker_testgroup']['ctrl']['searchFields'] = 'title, description';
$GLOBALS['TCA']['tx_caretaker_test']['ctrl']['searchFields'] = 'title, description';
$GLOBALS['TCA']['tx_caretaker_roles']['ctrl']['searchFields'] = 'name, description';
$GLOBALS['TCA']['tx_caretaker_exitpoints']['ctrl']['searchFields'] = 'name, description';
$GLOBALS['TCA']['tx_caretaker_strategies']['ctrl']['searchFields'] = 'name, description';