/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
- <?php
- if (!defined ('TYPO3_MODE')) {
- die ('Access denied.');
- }
- $TCA['tx_lan_domain_model_appointment'] = array(
- 'ctrl' => $TCA['tx_lan_domain_model_appointment']['ctrl'],
- 'interface' => array(
- 'showRecordFieldList' => 'sys_language_uid, l10n_parent, l10n_diffsource, hidden, appointment_date, participant, lan_party',
- ),
- 'types' => array(
- '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'),
- ),
- 'palettes' => array(
- '1' => array('showitem' => ''),
- ),
- 'columns' => array(
- 'sys_language_uid' => array(
- 'exclude' => 1,
- 'label' => 'LLL:EXT:lang/locallang_general.xlf:LGL.language',
- 'config' => array(
- 'type' => 'select',
- 'renderType' => 'selectSingle',
- 'foreign_table' => 'sys_language',
- 'foreign_table_where' => 'ORDER BY sys_language.title',
- 'items' => array(
- array('LLL:EXT:lang/locallang_general.xlf:LGL.allLanguages', -1),
- array('LLL:EXT:lang/locallang_general.xlf:LGL.default_value', 0)
- ),
- ),
- ),
- 'l10n_parent' => array(
- 'displayCond' => 'FIELD:sys_language_uid:>:0',
- 'exclude' => 1,
- 'label' => 'LLL:EXT:lang/locallang_general.xlf:LGL.l18n_parent',
- 'config' => array(
- 'type' => 'select',
- 'items' => array(
- array('', 0),
- ),
- 'foreign_table' => 'tx_lan_domain_model_appointment',
- 'foreign_table_where' => 'AND tx_lan_domain_model_appointment.pid=###CURRENT_PID### AND tx_lan_domain_model_appointment.sys_language_uid IN (-1,0)',
- ),
- ),
- 'l10n_diffsource' => array(
- 'config' => array(
- 'type' => 'passthrough',
- ),
- ),
- 't3ver_label' => array(
- 'label' => 'LLL:EXT:lang/locallang_general.xlf:LGL.versionLabel',
- 'config' => array(
- 'type' => 'input',
- 'size' => 30,
- 'max' => 255,
- )
- ),
- 'hidden' => array(
- 'exclude' => 1,
- 'label' => 'LLL:EXT:lang/locallang_general.xlf:LGL.hidden',
- 'config' => array(
- 'type' => 'check',
- ),
- ),
- 'starttime' => array(
- 'exclude' => 1,
- 'l10n_mode' => 'mergeIfNotBlank',
- 'label' => 'LLL:EXT:lang/locallang_general.xlf:LGL.starttime',
- 'config' => array(
- 'type' => 'input',
- 'size' => 13,
- 'max' => 20,
- 'eval' => 'datetime',
- 'checkbox' => 0,
- 'default' => 0,
- 'range' => array(
- 'lower' => mktime(0, 0, 0, date('m'), date('d'), date('Y'))
- ),
- ),
- ),
- 'endtime' => array(
- 'exclude' => 1,
- 'l10n_mode' => 'mergeIfNotBlank',
- 'label' => 'LLL:EXT:lang/locallang_general.xlf:LGL.endtime',
- 'config' => array(
- 'type' => 'input',
- 'size' => 13,
- 'max' => 20,
- 'eval' => 'datetime',
- 'checkbox' => 0,
- 'default' => 0,
- 'range' => array(
- 'lower' => mktime(0, 0, 0, date('m'), date('d'), date('Y'))
- ),
- ),
- ),
- 'lan_party' => array(
- 'exclude' => 0,
- 'label' => 'LLL:EXT:lan/Resources/Private/Language/locallang_db.xlf:tx_lan_domain_model_appointment.lan_party',
- 'config' => array(
- 'type' => 'select',
- 'renderType' => 'selectSingle',
- 'foreign_table' => 'tx_lan_domain_model_lanparty',
- 'maxitems' => 1,
- 'minitems' => 1,
- 'multiple' => 0,
- ),
- ),
- 'appointment_date' => array(
- 'exclude' => 0,
- 'label' => 'LLL:EXT:lan/Resources/Private/Language/locallang_db.xlf:tx_lan_domain_model_appointment.appointment_date',
- 'config' => array(
- 'type' => 'input',
- 'size' => 10,
- 'eval' => 'datetime',
- 'checkbox' => 1,
- 'default' => time()
- ),
- ),
- 'participant' => array(
- 'exclude' => 0,
- 'label' => 'LLL:EXT:lan/Resources/Private/Language/locallang_db.xlf:tx_lan_domain_model_appointment.participant',
- 'config' => array(
- 'type' => 'select',
- 'renderType' => 'selectSingleBox',
- 'foreign_table' => 'fe_users',
- 'MM' => 'tx_lan_appointment_participant_mm',
- 'autoSizeMax' => 30,
- 'maxitems' => 9999,
- 'multiple' => 0,
- ),
- ),
- ),
- );
- ?>