forked from kaystrobach/TYPO3.be_acl
-
Notifications
You must be signed in to change notification settings - Fork 0
/
tca.php
69 lines (67 loc) · 2.42 KB
/
tca.php
1
2
3
4
5
6
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
<?php
if (!defined ('TYPO3_MODE')) die ('Access denied.');
$TCA['tx_beacl_acl'] = Array (
'ctrl' => $TCA['tx_beacl_acl']['ctrl'],
'interface' => Array (
'showRecordFieldList' => 'type,object_id,permissions,recursive'
),
'feInterface' => $TCA['tx_beacl_acl']['feInterface'],
'columns' => Array (
'type' => Array (
'exclude' => 1,
'label' => 'LLL:EXT:be_acl/Resources/Private/Language/locallang_db.xml:tx_beacl_acl.type',
'config' => Array (
'type' => 'select',
'renderType' => 'selectSingle',
'items' => Array (
Array('LLL:EXT:be_acl/Resources/Private/Language/locallang_db.xml:tx_beacl_acl.type.I.0', '0'),
Array('LLL:EXT:be_acl/Resources/Private/Language/locallang_db.xml:tx_beacl_acl.type.I.1', '1'),
),
'size' => 1,
'maxitems' => 1,
)
),
'object_id' => Array (
'exclude' => 1,
'label' => 'LLL:EXT:be_acl/Resources/Private/Language/locallang_db.xml:tx_beacl_acl.object_id',
'config' => Array (
'type' => 'select',
'renderType' => 'selectSingle',
'itemsProcFunc' => 'KayStrobach\BeAcl\Tca\GroupSelector->select',
'size' => 1,
'minitems' => 0,
'maxitems' => 1,
)
),
'permissions' => Array (
'exclude' => 1,
'label' => 'LLL:EXT:be_acl/Resources/Private/Language/locallang_db.xml:tx_beacl_acl.permissions',
'config' => Array (
'type' => 'check',
'cols' => 5,
'items' => Array (
Array('LLL:EXT:be_acl/Resources/Private/Language/locallang_db.xml:tx_beacl_acl.permissions.I.0', ''),
Array('LLL:EXT:be_acl/Resources/Private/Language/locallang_db.xml:tx_beacl_acl.permissions.I.1', ''),
Array('LLL:EXT:be_acl/Resources/Private/Language/locallang_db.xml:tx_beacl_acl.permissions.I.2', ''),
Array('LLL:EXT:be_acl/Resources/Private/Language/locallang_db.xml:tx_beacl_acl.permissions.I.3', ''),
Array('LLL:EXT:be_acl/Resources/Private/Language/locallang_db.xml:tx_beacl_acl.permissions.I.4', ''),
),
)
),
'recursive' => Array (
'exclude' => 1,
'label' => 'LLL:EXT:be_acl/Resources/Private/Language/locallang_db.xml:tx_beacl_acl.recursive',
'config' => Array (
'type' => 'check'
)
),
),
'types' => Array (
'0' => Array('showitem' => 'type;;;;1-1-1, object_id, permissions, recursive'),
'1' => Array('showitem' => 'type;;;;1-1-1, object_id, permissions, recursive')
),
'palettes' => Array (
'1' => Array('showitem' => '')
)
);
?>