tx_karma_domain_model_karma_source.php 2.04 KB
Newer Older
1
2
3
4
5
6
<?php
defined('TYPO3_MODE') or die();

$ll = 'LLL:EXT:karma/Resources/Private/Language/locallang_db.xlf:';

$tx_karma_domain_model_karma_source = [
mabolek's avatar
mabolek committed
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
    'ctrl' => [
        'title' => $ll . 'tx_karma_domain_model_karma_source',
        'label' => 'title',
        'hideAtCopy' => true,
        'tstamp' => 'tstamp',
        'crdate' => 'crdate',
        'default_sortby' => 'ORDER BY title',
        'delete' => 'deleted',
        'enablecolumns' => [
            'disabled' => 'hidden',
        ],
        'iconfile' => 'EXT:karma/Resources/Public/Icons/tx_karma_domain_model_karma_source.svg',
    ],
    'interface' => [
        'showRecordFieldList' => 'pid,hidden,title,code'
    ],
    'columns' => [
        'hidden' => [
            'exclude' => true,
            'label' => 'LLL:EXT:lang/locallang_general.xlf:LGL.hidden',
            'config' => [
                'type' => 'check',
                'default' => 0
            ]
        ],
        'pid' => [
            'label' => 'pid',
            'config' => [
                'type' => 'passthrough'
            ]
        ],
        'crdate' => [
            'label' => 'crdate',
            'config' => [
                'type' => 'passthrough',
            ]
        ],
        'tstamp' => [
            'label' => 'tstamp',
            'config' => [
                'type' => 'passthrough',
            ]
        ],
        'title' => [
            'exclude' => true,
            'label' => $ll . 'tx_karma_domain_model_karma_source.title',
            'config' => [
                'type' => 'input',
                'eval' => 'required,trim',
            ]
        ],
        'code' => [
            'exclude' => true,
            'label' => $ll . 'tx_karma_domain_model_karma_source.code',
            'config' => [
                'type' => 'input',
                'size' => 15,
                'eval' => 'required,trim,alphanum,unique',
            ]
        ],
    ],
    'types' => [
        '0' => [
            'showitem' => 'hidden,title,code'
        ],
    ],
73
74
75
];

return $tx_karma_domain_model_karma_source;