tx_karma_domain_model_ledger_entry.php 3.96 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_ledger_entry = [
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
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
    'ctrl' => [
        'title' => $ll . 'tx_karma_domain_model_ledger_entry',
        'label' => 'user,immutable_value,tstamp',
        'hideAtCopy' => true,
        'tstamp' => 'tstamp',
        'crdate' => 'crdate',
        'default_sortby' => 'ORDER BY crdate',
        'delete' => 'deleted',
        'enablecolumns' => [
            'disabled' => 'hidden',
        ],
        'iconfile' => 'EXT:karma/Resources/Public/Icons/tx_karma_domain_model_ledger_entry.svg',
    ],
    'interface' => [
        'showRecordFieldList' => 'pid,hidden,starttime,endtime,expired,immutable_value,mutable_value,type,campaign,user'
    ],
    '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',
            ]
        ],
        'expired' => [
            'exclude' => true,
            'label' => $ll . 'tx_karma_domain_model_ledger_entry.expired',
            'config' => [
                'type' => 'input',
                'size' => 16,
                'eval' => 'datetime',
                'default' => 0,
            ]
        ],
        'immutable_value' => [
            'exclude' => true,
            'label' => $ll . 'tx_karma_domain_model_ledger_entry.immutable_value',
            'config' => [
                'type' => 'input',
                'size' => 6,
                'eval' => 'int',
                'default' => 0,
            ]
        ],
        'mutable_value' => [
            'exclude' => true,
            'label' => $ll . 'tx_karma_domain_model_ledger_entry.mutable_value',
            'config' => [
                'type' => 'input',
                'size' => 6,
                'eval' => 'int',
                'default' => 0,
            ]
        ],
        'type' => [
            'exclude' => true,
            'label' => $ll . 'tx_karma_domain_model_ledger_entry.type',
            'config' => [
                'type' => 'group',
                'internal_type' => 'db',
                'foreign_table' => 'tx_karma_domain_model_type',
                'allowed' => 'tx_karma_domain_model_type',
                'size' => 1,
                'minitems' => 1,
                'maxitems' => 1,
            ]
        ],
        'campaign' => [
            'exclude' => true,
            'label' => $ll . 'tx_karma_domain_model_ledger_entry.campaign',
            'config' => [
                'type' => 'group',
                'internal_type' => 'db',
                'foreign_table' => 'tx_karma_domain_model_campaign',
                'allowed' => 'tx_karma_domain_model_campaign',
                'size' => 1,
                'minitems' => 0,
                'maxitems' => 1,
            ]
        ],
        'user' => [
            'exclude' => true,
            'label' => $ll . 'tx_karma_domain_model_ledger_entry.user',
            'config' => [
                'type' => 'group',
                'internal_type' => 'db',
                'foreign_table' => 'tx_karma_domain_model_user',
                'allowed' => 'tx_karma_domain_model_user',
                'size' => 1,
                'minitems' => 1,
                'maxitems' => 1,
            ]
        ],
    ],
    'types' => [
        '0' => [
            'showitem' => 'hidden,expired,immutable_value,mutable_value,type,campaign,user'
        ],
    ],
125
126
127
];

return $tx_karma_domain_model_ledger_entry;