/Configuration/TCA/Appointment.php

https://bitbucket.org/trotzek/uua_lan · PHP · 136 lines · 134 code · 2 blank · 0 comment · 1 complexity · fbc176e4f2bfae0f047fef72c7c78caf MD5 · raw file

  1. <?php
  2. if (!defined ('TYPO3_MODE')) {
  3. die ('Access denied.');
  4. }
  5. $TCA['tx_lan_domain_model_appointment'] = array(
  6. 'ctrl' => $TCA['tx_lan_domain_model_appointment']['ctrl'],
  7. 'interface' => array(
  8. 'showRecordFieldList' => 'sys_language_uid, l10n_parent, l10n_diffsource, hidden, appointment_date, participant, lan_party',
  9. ),
  10. 'types' => array(
  11. '1' => array('showitem' => 'sys_language_uid;;;;1-1-1, l10n_parent, l10n_diffsource, hidden;;1, appointment_date, participant, lan_party,--div--;LLL:EXT:cms/locallang_ttc.xlf:tabs.access,starttime, endtime'),
  12. ),
  13. 'palettes' => array(
  14. '1' => array('showitem' => ''),
  15. ),
  16. 'columns' => array(
  17. 'sys_language_uid' => array(
  18. 'exclude' => 1,
  19. 'label' => 'LLL:EXT:lang/locallang_general.xlf:LGL.language',
  20. 'config' => array(
  21. 'type' => 'select',
  22. 'renderType' => 'selectSingle',
  23. 'foreign_table' => 'sys_language',
  24. 'foreign_table_where' => 'ORDER BY sys_language.title',
  25. 'items' => array(
  26. array('LLL:EXT:lang/locallang_general.xlf:LGL.allLanguages', -1),
  27. array('LLL:EXT:lang/locallang_general.xlf:LGL.default_value', 0)
  28. ),
  29. ),
  30. ),
  31. 'l10n_parent' => array(
  32. 'displayCond' => 'FIELD:sys_language_uid:>:0',
  33. 'exclude' => 1,
  34. 'label' => 'LLL:EXT:lang/locallang_general.xlf:LGL.l18n_parent',
  35. 'config' => array(
  36. 'type' => 'select',
  37. 'items' => array(
  38. array('', 0),
  39. ),
  40. 'foreign_table' => 'tx_lan_domain_model_appointment',
  41. 'foreign_table_where' => 'AND tx_lan_domain_model_appointment.pid=###CURRENT_PID### AND tx_lan_domain_model_appointment.sys_language_uid IN (-1,0)',
  42. ),
  43. ),
  44. 'l10n_diffsource' => array(
  45. 'config' => array(
  46. 'type' => 'passthrough',
  47. ),
  48. ),
  49. 't3ver_label' => array(
  50. 'label' => 'LLL:EXT:lang/locallang_general.xlf:LGL.versionLabel',
  51. 'config' => array(
  52. 'type' => 'input',
  53. 'size' => 30,
  54. 'max' => 255,
  55. )
  56. ),
  57. 'hidden' => array(
  58. 'exclude' => 1,
  59. 'label' => 'LLL:EXT:lang/locallang_general.xlf:LGL.hidden',
  60. 'config' => array(
  61. 'type' => 'check',
  62. ),
  63. ),
  64. 'starttime' => array(
  65. 'exclude' => 1,
  66. 'l10n_mode' => 'mergeIfNotBlank',
  67. 'label' => 'LLL:EXT:lang/locallang_general.xlf:LGL.starttime',
  68. 'config' => array(
  69. 'type' => 'input',
  70. 'size' => 13,
  71. 'max' => 20,
  72. 'eval' => 'datetime',
  73. 'checkbox' => 0,
  74. 'default' => 0,
  75. 'range' => array(
  76. 'lower' => mktime(0, 0, 0, date('m'), date('d'), date('Y'))
  77. ),
  78. ),
  79. ),
  80. 'endtime' => array(
  81. 'exclude' => 1,
  82. 'l10n_mode' => 'mergeIfNotBlank',
  83. 'label' => 'LLL:EXT:lang/locallang_general.xlf:LGL.endtime',
  84. 'config' => array(
  85. 'type' => 'input',
  86. 'size' => 13,
  87. 'max' => 20,
  88. 'eval' => 'datetime',
  89. 'checkbox' => 0,
  90. 'default' => 0,
  91. 'range' => array(
  92. 'lower' => mktime(0, 0, 0, date('m'), date('d'), date('Y'))
  93. ),
  94. ),
  95. ),
  96. 'lan_party' => array(
  97. 'exclude' => 0,
  98. 'label' => 'LLL:EXT:lan/Resources/Private/Language/locallang_db.xlf:tx_lan_domain_model_appointment.lan_party',
  99. 'config' => array(
  100. 'type' => 'select',
  101. 'renderType' => 'selectSingle',
  102. 'foreign_table' => 'tx_lan_domain_model_lanparty',
  103. 'maxitems' => 1,
  104. 'minitems' => 1,
  105. 'multiple' => 0,
  106. ),
  107. ),
  108. 'appointment_date' => array(
  109. 'exclude' => 0,
  110. 'label' => 'LLL:EXT:lan/Resources/Private/Language/locallang_db.xlf:tx_lan_domain_model_appointment.appointment_date',
  111. 'config' => array(
  112. 'type' => 'input',
  113. 'size' => 10,
  114. 'eval' => 'datetime',
  115. 'checkbox' => 1,
  116. 'default' => time()
  117. ),
  118. ),
  119. 'participant' => array(
  120. 'exclude' => 0,
  121. 'label' => 'LLL:EXT:lan/Resources/Private/Language/locallang_db.xlf:tx_lan_domain_model_appointment.participant',
  122. 'config' => array(
  123. 'type' => 'select',
  124. 'renderType' => 'selectSingleBox',
  125. 'foreign_table' => 'fe_users',
  126. 'MM' => 'tx_lan_appointment_participant_mm',
  127. 'autoSizeMax' => 30,
  128. 'maxitems' => 9999,
  129. 'multiple' => 0,
  130. ),
  131. ),
  132. ),
  133. );
  134. ?>