Project

General

Profile

Bug #97895 » tx_mytests_domain_model_parent.php

Davide Alghi, 2022-07-11 14:48

 
<?php
return [
'ctrl' => [
'title' => 'Parent',
'label' => 'name',
'tstamp' => 'tstamp',
'crdate' => 'crdate',
'cruser_id' => 'cruser_id',
'sortby' => 'sorting',
'delete' => 'deleted',
'enablecolumns' => [
'disabled' => 'hidden',
'starttime' => 'starttime',
'endtime' => 'endtime',
],
'searchFields' => 'name',
],
'types' => [
'1' => ['showitem' => 'name, children,
--div--;LLL:EXT:frontend/Resources/Private/Language/locallang_ttc.xlf:tabs.access, hidden, starttime, endtime'],
],
'columns' => [
'hidden' => [
'exclude' => true,
'label' => 'LLL:EXT:core/Resources/Private/Language/locallang_general.xlf:LGL.visible',
'config' => [
'type' => 'check',
'renderType' => 'checkboxToggle',
'items' => [
[
0 => '',
1 => '',
'invertStateDisplay' => true,
],
],
],
],
'starttime' => [
'exclude' => true,
'label' => 'LLL:EXT:core/Resources/Private/Language/locallang_general.xlf:LGL.starttime',
'config' => [
'type' => 'input',
'renderType' => 'inputDateTime',
'eval' => 'datetime,int',
'default' => 0,
'behaviour' => [
'allowLanguageSynchronization' => true,
],
],
],
'endtime' => [
'exclude' => true,
'label' => 'LLL:EXT:core/Resources/Private/Language/locallang_general.xlf:LGL.endtime',
'config' => [
'type' => 'input',
'renderType' => 'inputDateTime',
'eval' => 'datetime,int',
'default' => 0,
'range' => [
'upper' => mktime(0, 0, 0, 1, 1, 2038),
],
'behaviour' => [
'allowLanguageSynchronization' => true,
],
],
],
'name' => [
'exclude' => false,
'label' => 'Name',
'config' => [
'type' => 'input',
'max' => 255,
'eval' => 'trim,required',
],
],
'children' => [
'exclude' => false,
'label' => 'Children',
'config' => [
'type' => 'inline',
'foreign_table' => 'tx_mytests_domain_model_parent2child_relation',
'foreign_field' => 'parent_uid',
'foreign_sortby' => 'sorting',
'foreign_label' => 'child_uid',
'foreign_selector' => 'child_uid',
'foreign_unique' => 'child_uid',
'overrideChildTca' => [
'columns' => [
'child_uid' => [
'config' => [
'foreign_table_where' => 'tx_mytests_domain_model_child.holder<>###THIS_UID###',
],
],
],
],
],
],
],
];
(4-4/5)