Passed
Pull Request — master (#155)
by
unknown
09:50
created
Classes/Controller/AbstractSearchController.php 2 patches
Braces   +8 added lines, -16 removed lines patch added patch discarded remove patch
@@ -17,8 +17,7 @@  discard block
 block discarded – undo
17 17
 use TYPO3\CMS\Core\Utility\GeneralUtility;
18 18
 use EWW\Dpf\Services\ElasticSearch;
19 19
 
20
-abstract class AbstractSearchController extends \EWW\Dpf\Controller\AbstractController
21
-{
20
+abstract class AbstractSearchController extends \EWW\Dpf\Controller\AbstractController {
22 21
     // search terms
23 22
     private static $terms   = ['_id', 'OWNER_ID', 'submitter', 'project'];
24 23
 
@@ -30,8 +29,7 @@  discard block
 block discarded – undo
30 29
      * @param  array $query elasticsearch search query
31 30
      * @return array        results
32 31
      */
33
-    public function getResultList($query, $type)
34
-    {
32
+    public function getResultList($query, $type) {
35 33
 
36 34
         $elasticSearch = $this->objectManager->get(ElasticSearch::class);
37 35
         $results = $elasticSearch->search($query, $type);
@@ -44,8 +42,7 @@  discard block
 block discarded – undo
44 42
      * @param  string $searchString
45 43
      * @return array query
46 44
      */
47
-    public function searchFulltext($searchString)
48
-    {
45
+    public function searchFulltext($searchString) {
49 46
         // don't return query if searchString is empty
50 47
         if (empty($searchString)) {
51 48
             return null;
@@ -68,8 +65,7 @@  discard block
 block discarded – undo
68 65
      * build array for elasticsearch
69 66
      * @return array Elasticsearch query array
70 67
      */
71
-    public function extendedSearch($searchArray = array())
72
-    {
68
+    public function extendedSearch($searchArray = array()) {
73 69
 
74 70
         $query  = array();
75 71
         $filter = array();
@@ -116,8 +112,7 @@  discard block
 block discarded – undo
116 112
      * @param array Elasticsearch query array
117 113
      * @return array Elasticsearch queryFilter array
118 114
      */
119
-    public function resultsFilter($query, $showDeleted = false)
120
-    {
115
+    public function resultsFilter($query, $showDeleted = false) {
121 116
 
122 117
         $queryFilter = array();
123 118
 
@@ -201,8 +196,7 @@  discard block
 block discarded – undo
201 196
      * @param  bool      $intervalEnd Fills missing values with the maximum possible date if true
202 197
      * @return DateTime               Determined date
203 198
      */
204
-    public function convertFormDate($dateString, $intervalEnd = false)
205
-    {
199
+    public function convertFormDate($dateString, $intervalEnd = false) {
206 200
         try {
207 201
             if (strlen($dateString) == 4) {
208 202
                 // assuming year
@@ -223,8 +217,7 @@  discard block
 block discarded – undo
223 217
      * @param $string
224 218
      * @return mixed
225 219
      */
226
-    private function escapeQuery($string)
227
-    {
220
+    private function escapeQuery($string) {
228 221
         $luceneReservedCharacters = preg_quote('+-&|!(){}[]^"~?:\\');
229 222
         $string                   = preg_replace_callback(
230 223
             '/([' . $luceneReservedCharacters . '])/',
@@ -242,8 +235,7 @@  discard block
 block discarded – undo
242 235
      * @param $date
243 236
      * @return string
244 237
      */
245
-    public function formatDate($date)
246
-    {
238
+    public function formatDate($date) {
247 239
         // convert date from dd.mm.yyy to yyyy-dd-mm
248 240
         $date = explode(".", $date);
249 241
         return $date[2] . '-' . $date[1] . '-' . $date[0];
Please login to merge, or discard this patch.
Spacing   +18 added lines, -18 removed lines patch added patch discarded remove patch
@@ -69,21 +69,21 @@  discard block
 block discarded – undo
69 69
      * build array for elasticsearch
70 70
      * @return array Elasticsearch query array
71 71
      */
72
-    public function extendedSearch($searchArray = array())
72
+    public function extendedSearch($searchArray = array ())
73 73
     {
74 74
 
75
-        $query  = array();
76
-        $filter = array();
75
+        $query  = array ();
76
+        $filter = array ();
77 77
         foreach ($searchArray as $key => $qry) {
78 78
             $qry = trim($qry);
79 79
 
80 80
             if (!empty($qry) && in_array($key, self::$matches)) {
81 81
 
82
-                $query['body']['query']['bool']['must'][] = array('match' => array($key => $qry));
82
+                $query['body']['query']['bool']['must'][] = array ('match' => array ($key => $qry));
83 83
 
84 84
             } elseif (!empty($qry) && in_array($key, self::$terms)) {
85 85
 
86
-                $query['body']['query']['bool']['must'][] = array('term' => array($key => $qry));
86
+                $query['body']['query']['bool']['must'][] = array ('term' => array ($key => $qry));
87 87
 
88 88
             } elseif (!empty($qry) && $key == 'from') {
89 89
 
@@ -102,7 +102,7 @@  discard block
 block discarded – undo
102 102
 
103 103
         if (isset($filter['gte']) || isset($filter['lte'])) {
104 104
 
105
-            $query['body']['query']['bool']['must'][] = array('range' => array('distribution_date' => $filter));
105
+            $query['body']['query']['bool']['must'][] = array ('range' => array ('distribution_date' => $filter));
106 106
 
107 107
         }
108 108
 
@@ -120,19 +120,19 @@  discard block
 block discarded – undo
120 120
     public function resultsFilter($query, $showDeleted = false)
121 121
     {
122 122
 
123
-        $queryFilter = array();
123
+        $queryFilter = array ();
124 124
 
125 125
         // Frontend only
126 126
         $searchResultsFilter = $this->settings['searchResultsFilter'];
127
-        if(!empty($searchResultsFilter)) {
127
+        if (!empty($searchResultsFilter)) {
128 128
 
129 129
             // add doctypes
130
-            if($searchResultsFilter['doctype']) {
130
+            if ($searchResultsFilter['doctype']) {
131 131
 
132 132
                 $uids = GeneralUtility::trimExplode(',', $searchResultsFilter['doctype']);
133 133
                 $documentTypeRepository = $this->documentTypeRepository;
134
-                $documentTypes = array();
135
-                foreach($uids as $uid) {
134
+                $documentTypes = array ();
135
+                foreach ($uids as $uid) {
136 136
                     $documentType = $documentTypeRepository->findByUid($uid);
137 137
                     $documentTypes[] = $documentType->getName();
138 138
                 };
@@ -140,7 +140,7 @@  discard block
 block discarded – undo
140 140
             }
141 141
 
142 142
             // add date filter
143
-            $dateFilter = array();
143
+            $dateFilter = array ();
144 144
             if ($searchResultsFilter['from']) {
145 145
 
146 146
                 $from     = date('d.m.Y', $searchResultsFilter['from']);
@@ -152,7 +152,7 @@  discard block
 block discarded – undo
152 152
 
153 153
             if ($searchResultsFilter['till']) {
154 154
 
155
-                $till          = date('d.m.Y', $searchResultsFilter['till']);
155
+                $till = date('d.m.Y', $searchResultsFilter['till']);
156 156
                 $dateTime = $this->convertFormDate($till, true);
157 157
                 $dateFilter['lte'] = $dateTime->format('Y-m-d');
158 158
                 unset($searchResultsFilter['till']);
@@ -161,14 +161,14 @@  discard block
 block discarded – undo
161 161
 
162 162
             if (isset($dateFilter['gte']) || isset($dateFilter['lte'])) {
163 163
 
164
-                $queryFilter['body']['query']['bool']['must'][] = array('range' => array('distribution_date' => $dateFilter));
164
+                $queryFilter['body']['query']['bool']['must'][] = array ('range' => array ('distribution_date' => $dateFilter));
165 165
 
166 166
             }
167 167
 
168 168
             foreach ($searchResultsFilter as $key => $qry) {
169 169
 
170
-                if(!empty($qry)) {
171
-                    $queryFilter['body']['query']['bool']['must'][] = array('match' => array($key => $qry));
170
+                if (!empty($qry)) {
171
+                    $queryFilter['body']['query']['bool']['must'][] = array ('match' => array ($key => $qry));
172 172
                 }
173 173
 
174 174
             }
@@ -176,7 +176,7 @@  discard block
 block discarded – undo
176 176
         }
177 177
 
178 178
         // document must be active
179
-        if($showDeleted == false) {
179
+        if ($showDeleted == false) {
180 180
 
181 181
             $queryFilter['body']['query']['bool']['must'][]['term']['STATE'] = 'A';
182 182
 
@@ -234,7 +234,7 @@  discard block
 block discarded – undo
234 234
         $luceneReservedCharacters = preg_quote('+-&|!(){}[]^"~?:\\');
235 235
         $string                   = preg_replace_callback(
236 236
             '/([' . $luceneReservedCharacters . '])/',
237
-            function ($matches) {
237
+            function($matches) {
238 238
                 return '\\' . $matches[0];
239 239
             },
240 240
             $string
Please login to merge, or discard this patch.
ext_localconf.php 2 patches
Spacing   +10 added lines, -10 removed lines patch added patch discarded remove patch
@@ -22,27 +22,27 @@  discard block
 block discarded – undo
22 22
     require_once $composerAutoloadFile;
23 23
 }
24 24
 
25
-$GLOBALS['TYPO3_CONF_VARS']['SC_OPTIONS']['scheduler']['tasks']['EWW\Dpf\Tasks\TransferTask'] = array(
25
+$GLOBALS['TYPO3_CONF_VARS']['SC_OPTIONS']['scheduler']['tasks']['EWW\Dpf\Tasks\TransferTask'] = array (
26 26
     'extension'   => $_EXTKEY,
27 27
     'title'       => 'Qucosa-Dokumente ans Repository übertragen.',
28 28
     'description' => '',
29 29
 );
30 30
 
31 31
 if (isset($GLOBALS['TYPO3_CONF_VARS']['SC_OPTIONS']['extbase']['commandControllers']) == false) {
32
-    $GLOBALS['TYPO3_CONF_VARS']['SC_OPTIONS']['extbase']['commandControllers'] = array();
32
+    $GLOBALS['TYPO3_CONF_VARS']['SC_OPTIONS']['extbase']['commandControllers'] = array ();
33 33
 }
34 34
 $GLOBALS['TYPO3_CONF_VARS']['SC_OPTIONS']['extbase']['commandControllers'][] = 'EWW\Dpf\Command\TransferCommandController';
35 35
 
36 36
 \TYPO3\CMS\Extbase\Utility\ExtensionUtility::configurePlugin(
37 37
     'EWW.' . $_EXTKEY,
38 38
     'Qucosaform',
39
-    array(
39
+    array (
40 40
         'DocumentForm'     => 'list,new,create,edit,update,delete,cancel',
41 41
         'AjaxDocumentForm' => 'group,fileGroup,field,deleteFile,primaryUpload,secondaryUpload,fillOut',
42 42
         'Gnd'              => 'search',
43 43
     ),
44 44
     // non-cacheable actions
45
-    array(
45
+    array (
46 46
         'DocumentForm'     => 'list,new,create,edit,update,delete,cancel,ajaxGroup,ajaxFileGroup,ajaxField',
47 47
         'AjaxDocumentForm' => 'group,fileGroup,field,deleteFile,primaryUpload,secondaryUpload,fillOut',
48 48
         'Gnd'              => 'search',
@@ -52,11 +52,11 @@  discard block
 block discarded – undo
52 52
 \TYPO3\CMS\Extbase\Utility\ExtensionUtility::configurePlugin(
53 53
     'EWW.' . $_EXTKEY,
54 54
     'Frontendsearch',
55
-    array(
55
+    array (
56 56
         'SearchFE' => 'search,extendedSearch,showSearchForm',
57 57
     ),
58 58
     // non-cacheable actions
59
-    array(
59
+    array (
60 60
         'SearchFE' => 'search,extendedSearch'
61 61
     )
62 62
 );
@@ -64,11 +64,11 @@  discard block
 block discarded – undo
64 64
 \TYPO3\CMS\Extbase\Utility\ExtensionUtility::configurePlugin(
65 65
     'EWW.' . $_EXTKEY,
66 66
     'Getfile',
67
-    array(
67
+    array (
68 68
         'GetFile'     => 'attachment',
69 69
     ),
70 70
     // non-cacheable actions
71
-    array(
71
+    array (
72 72
         'GetFile'     => 'attachment',
73 73
     )
74 74
 );
@@ -77,7 +77,7 @@  discard block
 block discarded – undo
77 77
 \TYPO3\CMS\Extbase\Utility\ExtensionUtility::configurePlugin(
78 78
     'EWW.' . $_EXTKEY,
79 79
     'Backoffice',
80
-    array(
80
+    array (
81 81
         'Document'         => 'list, logout, showDetails, discard, postpone, deleteLocally, register, releasePublish, '
82 82
             . 'releaseUpdate, duplicate, deleteConfirm, activateConfirm, inactivateConfirm, deleteConfirm, discardConfirm, '
83 83
             . 'listRegistered, listInProgress, releaseActivate, cancelListTask, uploadFiles, '
@@ -88,7 +88,7 @@  discard block
 block discarded – undo
88 88
         'Gnd'              => 'search',
89 89
     ),
90 90
     // non-cacheable actions
91
-    array(
91
+    array (
92 92
         'Document'         => 'list, logout, showDetails, discard, postpone, deleteLocally, register, releasePublish, '
93 93
             . 'releaseUpdate, duplicate, deleteConfirm, activateConfirm, inactivateConfirm, deleteConfirm, discardConfirm, '
94 94
             . 'listRegistered, listInProgress, releaseActivate, cancelListTask, uploadFiles, '
Please login to merge, or discard this patch.
Upper-Lower-Casing   +7 added lines, -7 removed lines patch added patch discarded remove patch
@@ -28,7 +28,7 @@  discard block
 block discarded – undo
28 28
     'description' => '',
29 29
 );
30 30
 
31
-if (isset($GLOBALS['TYPO3_CONF_VARS']['SC_OPTIONS']['extbase']['commandControllers']) == false) {
31
+if (isset($GLOBALS['TYPO3_CONF_VARS']['SC_OPTIONS']['extbase']['commandControllers']) == FALSE) {
32 32
     $GLOBALS['TYPO3_CONF_VARS']['SC_OPTIONS']['extbase']['commandControllers'] = array();
33 33
 }
34 34
 $GLOBALS['TYPO3_CONF_VARS']['SC_OPTIONS']['extbase']['commandControllers'][] = 'EWW\Dpf\Command\TransferCommandController';
@@ -101,15 +101,15 @@  discard block
 block discarded – undo
101 101
 );
102 102
 
103 103
 
104
-\TYPO3\CMS\Core\Utility\ExtensionManagementUtility::addPItoST43($_EXTKEY, 'Classes/Plugins/MetaTags/MetaTags.php', '_metatags', 'list_type', true);
104
+\TYPO3\CMS\Core\Utility\ExtensionManagementUtility::addPItoST43($_EXTKEY, 'Classes/Plugins/MetaTags/MetaTags.php', '_metatags', 'list_type', TRUE);
105 105
 $overrideSetup = 'plugin.tx_dpf_metatags.userFunc = EWW\Dpf\Plugins\MetaTags\MetaTags->main';
106 106
 \TYPO3\CMS\Core\Utility\ExtensionManagementUtility::addTypoScript($_EXTKEY, 'setup', $overrideSetup);
107 107
 
108
-\TYPO3\CMS\Core\Utility\ExtensionManagementUtility::addPItoST43($_EXTKEY, 'Classes/Plugins/DownloadTool/DownloadTool.php', '_downloadtool', 'list_type', true);
108
+\TYPO3\CMS\Core\Utility\ExtensionManagementUtility::addPItoST43($_EXTKEY, 'Classes/Plugins/DownloadTool/DownloadTool.php', '_downloadtool', 'list_type', TRUE);
109 109
 $overrideSetup = 'plugin.tx_dpf_downloadtool.userFunc = EWW\Dpf\Plugins\DownloadTool\DownloadTool->main';
110 110
 \TYPO3\CMS\Core\Utility\ExtensionManagementUtility::addTypoScript($_EXTKEY, 'setup', $overrideSetup);
111 111
 
112
-\TYPO3\CMS\Core\Utility\ExtensionManagementUtility::addPItoST43($_EXTKEY, 'Classes/Plugins/RelatedListTool/RelatedListTool.php', '_relatedlisttool', 'list_type', true);
112
+\TYPO3\CMS\Core\Utility\ExtensionManagementUtility::addPItoST43($_EXTKEY, 'Classes/Plugins/RelatedListTool/RelatedListTool.php', '_relatedlisttool', 'list_type', TRUE);
113 113
 $overrideSetup = 'plugin.tx_dpf_relatedlisttool.userFunc = EWW\Dpf\Plugins\RelatedListTool\RelatedListTool->main';
114 114
 \TYPO3\CMS\Core\Utility\ExtensionManagementUtility::addTypoScript($_EXTKEY, 'setup', $overrideSetup);
115 115
 
@@ -121,19 +121,19 @@  discard block
 block discarded – undo
121 121
     'actionChange',
122 122
     \EWW\Dpf\Services\Document\DocumentCleaner::class,
123 123
     'cleanUpDocuments',
124
-    false
124
+    FALSE
125 125
 );
126 126
 $signalSlotDispatcher->connect(
127 127
     \EWW\Dpf\Controller\SearchController::class,
128 128
     'actionChange',
129 129
     \EWW\Dpf\Services\Document\DocumentCleaner::class,
130 130
     'cleanUpDocuments',
131
-    false
131
+    FALSE
132 132
 );
133 133
 $signalSlotDispatcher->connect(
134 134
     \EWW\Dpf\Controller\DocumentFormBackofficeController::class,
135 135
     'actionChange',
136 136
     \EWW\Dpf\Services\Document\DocumentCleaner::class,
137 137
     'cleanUpDocuments',
138
-    false
138
+    FALSE
139 139
 );
Please login to merge, or discard this patch.
Configuration/TCA/tx_dpf_domain_model_document.php 1 patch
Spacing   +79 added lines, -79 removed lines patch added patch discarded remove patch
@@ -16,8 +16,8 @@  discard block
 block discarded – undo
16 16
     die('Access denied.');
17 17
 }
18 18
 
19
-return array(
20
-    'ctrl' => array(
19
+return array (
20
+    'ctrl' => array (
21 21
         'title'                    => 'LLL:EXT:dpf/Resources/Private/Language/locallang_db.xlf:tx_dpf_domain_model_document',
22 22
         'label'                    => 'title',
23 23
         'tstamp'                   => 'tstamp',
@@ -28,7 +28,7 @@  discard block
 block discarded – undo
28 28
         'transOrigPointerField'    => 'l10n_parent',
29 29
         'transOrigDiffSourceField' => 'l10n_diffsource',
30 30
         'delete'                   => 'deleted',
31
-        'enablecolumns'            => array(
31
+        'enablecolumns'            => array (
32 32
             'disabled'  => 'hidden',
33 33
             'starttime' => 'starttime',
34 34
             'endtime'   => 'endtime',
@@ -38,151 +38,151 @@  discard block
 block discarded – undo
38 38
         object_identifier, transfer_status, file, owner, temporary, editor_uid, remote_last_mod_date',
39 39
         'iconfile'                 => 'EXT:dpf/Resources/Public/Icons/tx_dpf_domain_model_document.gif',
40 40
     ),
41
-    'interface' => array(
41
+    'interface' => array (
42 42
         'showRecordFieldList' => 'sys_language_uid, l10n_parent, l10n_diffsource, hidden,
43 43
         title, authors, xml_data, slub_info_data, document_type, date_issued, process_number, valid, changed,
44 44
         state, reserved_object_identifier, object_identifier,
45 45
         transfer_status, file, owner, temporary, editor_uid, remote_last_mod_date',
46 46
     ),
47
-    'types'     => array(
48
-        '1' => array('showitem' => 'sys_language_uid,l10n_parent,l10n_diffsource,hidden,--palette--;;1, 
47
+    'types'     => array (
48
+        '1' => array ('showitem' => 'sys_language_uid,l10n_parent,l10n_diffsource,hidden,--palette--;;1, 
49 49
         title, authors, xml_data, slub_info_data, document_type, date_issued, process_number, valid, changed,
50 50
         state, reserved_object_identifier, object_identifier,
51 51
         transfer_status, file, owner, temporary, editor_uid, remote_last_mod_date,
52 52
         --div--;LLL:EXT:cms/locallang_ttc.xlf:tabs.access, starttime, endtime'),
53 53
     ),
54
-    'palettes'  => array(
55
-        '1' => array('showitem' => ''),
54
+    'palettes'  => array (
55
+        '1' => array ('showitem' => ''),
56 56
     ),
57
-    'columns'   => array(
57
+    'columns'   => array (
58 58
 
59
-        'sys_language_uid'           => array(
59
+        'sys_language_uid'           => array (
60 60
             'exclude' => 1,
61 61
             'label'   => 'LLL:EXT:lang/locallang_general.xlf:LGL.language',
62
-            'config'  => array(
62
+            'config'  => array (
63 63
                 'type'                => 'select',
64 64
                 'renderType'          => 'selectSingle',
65 65
                 'foreign_table'       => 'sys_language',
66 66
                 'foreign_table_where' => 'ORDER BY sys_language.title',
67
-                'items'               => array(
68
-                    array('LLL:EXT:lang/locallang_general.xlf:LGL.allLanguages', -1),
69
-                    array('LLL:EXT:lang/locallang_general.xlf:LGL.default_value', 0),
67
+                'items'               => array (
68
+                    array ('LLL:EXT:lang/locallang_general.xlf:LGL.allLanguages', -1),
69
+                    array ('LLL:EXT:lang/locallang_general.xlf:LGL.default_value', 0),
70 70
                 ),
71 71
             ),
72 72
         ),
73
-        'l10n_parent'                => array(
73
+        'l10n_parent'                => array (
74 74
             'displayCond' => 'FIELD:sys_language_uid:>:0',
75 75
             'exclude'     => 1,
76 76
             'label'       => 'LLL:EXT:lang/locallang_general.xlf:LGL.l18n_parent',
77
-            'config'      => array(
77
+            'config'      => array (
78 78
                 'type'                => 'select',
79 79
                 'renderType'          => 'selectSingle',
80
-                'items'               => array(
81
-                    array('', 0),
80
+                'items'               => array (
81
+                    array ('', 0),
82 82
                 ),
83 83
                 'foreign_table'       => 'tx_dpf_domain_model_document',
84 84
                 'foreign_table_where' => 'AND tx_dpf_domain_model_document.pid=###CURRENT_PID### AND tx_dpf_domain_model_document.sys_language_uid IN (-1,0)',
85 85
             ),
86 86
         ),
87
-        'l10n_diffsource'            => array(
88
-            'config' => array(
87
+        'l10n_diffsource'            => array (
88
+            'config' => array (
89 89
                 'type' => 'passthrough',
90 90
             ),
91 91
         ),
92 92
 
93
-        't3ver_label'                => array(
93
+        't3ver_label'                => array (
94 94
             'label'  => 'LLL:EXT:lang/locallang_general.xlf:LGL.versionLabel',
95
-            'config' => array(
95
+            'config' => array (
96 96
                 'type' => 'input',
97 97
                 'size' => 30,
98 98
                 'max'  => 255,
99 99
             ),
100 100
         ),
101 101
 
102
-        'hidden'                     => array(
102
+        'hidden'                     => array (
103 103
             'exclude' => 1,
104 104
             'label'   => 'LLL:EXT:lang/locallang_general.xlf:LGL.hidden',
105
-            'config'  => array(
105
+            'config'  => array (
106 106
                 'type' => 'check',
107 107
             ),
108 108
         ),
109
-        'starttime'                  => array(
109
+        'starttime'                  => array (
110 110
             'exclude'   => 1,
111 111
             'l10n_mode' => 'mergeIfNotBlank',
112 112
             'label'     => 'LLL:EXT:lang/locallang_general.xlf:LGL.starttime',
113
-            'config'    => array(
113
+            'config'    => array (
114 114
                 'type'     => 'input',
115 115
                 'renderType' => 'inputDateTime',
116 116
                 'size'     => 13,
117 117
                 'eval'     => 'datetime',
118 118
                 'checkbox' => 0,
119 119
                 'default'  => 0,
120
-                'range'    => array(
120
+                'range'    => array (
121 121
                     'lower' => mktime(0, 0, 0, date('m'), date('d'), date('Y')),
122 122
                 ),
123 123
             ),
124 124
         ),
125
-        'endtime'                    => array(
125
+        'endtime'                    => array (
126 126
             'exclude'   => 1,
127 127
             'l10n_mode' => 'mergeIfNotBlank',
128 128
             'label'     => 'LLL:EXT:lang/locallang_general.xlf:LGL.endtime',
129
-            'config'    => array(
129
+            'config'    => array (
130 130
                 'type'     => 'input',
131 131
                 'renderType' => 'inputDateTime',
132 132
                 'size'     => 13,
133 133
                 'eval'     => 'datetime',
134 134
                 'checkbox' => 0,
135 135
                 'default'  => 0,
136
-                'range'    => array(
136
+                'range'    => array (
137 137
                     'lower' => mktime(0, 0, 0, date('m'), date('d'), date('Y')),
138 138
                 ),
139 139
             ),
140 140
         ),
141 141
 
142
-        'title'                      => array(
142
+        'title'                      => array (
143 143
             'exclude' => 1,
144 144
             'label'   => 'LLL:EXT:dpf/Resources/Private/Language/locallang_db.xlf:tx_dpf_domain_model_document.title',
145
-            'config'  => array(
145
+            'config'  => array (
146 146
                 'type' => 'input',
147 147
                 'size' => 30,
148 148
                 'eval' => 'trim',
149 149
             ),
150 150
         ),
151 151
 
152
-        'authors'                    => array(
152
+        'authors'                    => array (
153 153
             'exclude' => 1,
154 154
             'label'   => 'LLL:EXT:dpf/Resources/Private/Language/locallang_db.xlf:tx_dpf_domain_model_document.authors',
155
-            'config'  => array(
155
+            'config'  => array (
156 156
                 'type' => 'input',
157 157
                 'size' => 30,
158 158
                 'eval' => 'trim',
159 159
             ),
160 160
         ),
161 161
 
162
-        'xml_data'                   => array(
162
+        'xml_data'                   => array (
163 163
             'exclude' => 1,
164 164
             'label'   => 'LLL:EXT:dpf/Resources/Private/Language/locallang_db.xlf:tx_dpf_domain_model_document.xml_data',
165
-            'config'  => array(
165
+            'config'  => array (
166 166
                 'type' => 'text',
167 167
                 'cols' => 40,
168 168
                 'rows' => 15,
169 169
                 'eval' => 'trim',
170 170
             ),
171 171
         ),
172
-        'slub_info_data'             => array(
172
+        'slub_info_data'             => array (
173 173
             'exclude' => 1,
174 174
             'label'   => 'LLL:EXT:dpf/Resources/Private/Language/locallang_db.xlf:tx_dpf_domain_model_document.slub_info_data',
175
-            'config'  => array(
175
+            'config'  => array (
176 176
                 'type' => 'text',
177 177
                 'cols' => 40,
178 178
                 'rows' => 15,
179 179
                 'eval' => 'trim',
180 180
             ),
181 181
         ),
182
-        'document_type'              => array(
182
+        'document_type'              => array (
183 183
             'exclude' => 1,
184 184
             'label'   => 'LLL:EXT:dpf/Resources/Private/Language/locallang_db.xlf:tx_dpf_domain_model_document.document_type',
185
-            'config'  => array(
185
+            'config'  => array (
186 186
                 'type'                => 'select',
187 187
                 'renderType'          => 'selectSingle',
188 188
                 'foreign_table'       => 'tx_dpf_domain_model_documenttype',
@@ -192,20 +192,20 @@  discard block
 block discarded – undo
192 192
             ),
193 193
         ),
194 194
 
195
-        'crdate'                     => array(
195
+        'crdate'                     => array (
196 196
             'exclude' => 0,
197 197
             'label'   => 'LLL:EXT:lang/locallang_general.xlf:LGL.creationDate',
198
-            'config'  => array(
198
+            'config'  => array (
199 199
                 'type'   => 'none',
200 200
                 'format' => 'datetime',
201 201
                 'eval'   => 'datetime',
202 202
             ),
203 203
         ),
204 204
 
205
-        'tstamp'                     => array(
205
+        'tstamp'                     => array (
206 206
             'exclude' => 0,
207 207
             'label'   => 'LLL:EXT:lang/locallang_general.xlf:LGL.timestamp',
208
-            'config'  => array(
208
+            'config'  => array (
209 209
                 'type'   => 'input',
210 210
                 'renderType' => 'inputDateTime',
211 211
                 'format' => 'datetime',
@@ -213,108 +213,108 @@  discard block
 block discarded – undo
213 213
             ),
214 214
         ),
215 215
 
216
-        'transfer_status'            => array(
216
+        'transfer_status'            => array (
217 217
             'exclude' => 0,
218 218
             'label'   => 'LLL:EXT:dpf/Resources/Private/Language/locallang_db.xlf:tx_dpf_domain_model_document.transfer_status',
219
-            'config'  => array(
219
+            'config'  => array (
220 220
                 'type' => 'input',
221 221
                 'size' => '30',
222 222
                 'eval' => 'trim',
223 223
             ),
224 224
         ),
225 225
 
226
-        'object_identifier'          => array(
226
+        'object_identifier'          => array (
227 227
             'exclude' => 0,
228 228
             'label'   => 'LLL:EXT:dpf/Resources/Private/Language/locallang_db.xlf:tx_dpf_domain_model_document.object_identifier',
229
-            'config'  => array(
229
+            'config'  => array (
230 230
                 'type' => 'input',
231 231
                 'size' => '30',
232 232
                 'eval' => 'trim',
233 233
             ),
234 234
         ),
235 235
 
236
-        'reserved_object_identifier' => array(
236
+        'reserved_object_identifier' => array (
237 237
             'exclude' => 0,
238 238
             'label'   => 'LLL:EXT:dpf/Resources/Private/Language/locallang_db.xlf:tx_dpf_domain_model_document.reserved_object_identifier',
239
-            'config'  => array(
239
+            'config'  => array (
240 240
                 'type' => 'input',
241 241
                 'size' => '30',
242 242
                 'eval' => 'trim',
243 243
             ),
244 244
         ),
245 245
 
246
-        'process_number' => array(
246
+        'process_number' => array (
247 247
             'exclude' => 0,
248 248
             'label'   => 'LLL:EXT:dpf/Resources/Private/Language/locallang_db.xlf:tx_dpf_domain_model_document.process_number',
249
-            'config'  => array(
249
+            'config'  => array (
250 250
                 'type' => 'input',
251 251
                 'size' => '30',
252 252
                 'eval' => 'trim',
253 253
             ),
254 254
         ),
255 255
 
256
-        'state'                      => array(
256
+        'state'                      => array (
257 257
             'exclude' => 0,
258 258
             'label'   => 'LLL:EXT:dpf/Resources/Private/Language/locallang_db.xlf:tx_dpf_domain_model_document.state',
259
-            'config'  => array(
259
+            'config'  => array (
260 260
                 'type' => 'input',
261 261
                 'size' => '30',
262 262
                 'eval' => 'trim',
263 263
             ),
264 264
         ),
265 265
 
266
-        'remote_last_mod_date'       => array(
266
+        'remote_last_mod_date'       => array (
267 267
             'exclude' => 1,
268 268
             'label'   => 'LLL:EXT:dpf/Resources/Private/Language/locallang_db.xlf:tx_dpf_domain_model_document.remote_last_mod_date',
269
-            'config'  => array(
269
+            'config'  => array (
270 270
                 'type' => 'input',
271 271
                 'size' => 30,
272 272
                 'eval' => 'trim',
273 273
             ),
274 274
         ),
275 275
 
276
-        'changed'                    => array(
276
+        'changed'                    => array (
277 277
             'exclude'   => 1,
278 278
             'l10n_mode' => 'exclude',
279 279
             'label'     => 'LLL:EXT:dpf/Resources/Private/Language/locallang_db.xlf:tx_dpf_domain_model_document.changed',
280
-            'config'    => array(
280
+            'config'    => array (
281 281
                 'type'    => 'check',
282 282
                 'default' => 0,
283 283
             ),
284 284
         ),
285 285
 
286
-        'valid'                      => array(
286
+        'valid'                      => array (
287 287
             'exclude'   => 1,
288 288
             'l10n_mode' => 'exclude',
289 289
             'label'     => 'LLL:EXT:dpf/Resources/Private/Language/locallang_db.xlf:tx_dpf_domain_model_document.valid',
290
-            'config'    => array(
290
+            'config'    => array (
291 291
                 'type'    => 'check',
292 292
                 'default' => 0,
293 293
             ),
294 294
         ),
295 295
 
296
-        'date_issued'                => array(
296
+        'date_issued'                => array (
297 297
             'exclude' => 1,
298 298
             'label'   => 'LLL:EXT:dpf/Resources/Private/Language/locallang_db.xlf:tx_dpf_domain_model_document.date_issued',
299
-            'config'  => array(
299
+            'config'  => array (
300 300
                 'type' => 'input',
301 301
                 'size' => 30,
302 302
                 'eval' => 'trim',
303 303
             ),
304 304
         ),
305 305
 
306
-        'file'                       => array(
306
+        'file'                       => array (
307 307
             'exclude' => 1,
308 308
             'label'   => 'LLL:EXT:dpf/Resources/Private/Language/locallang_db.xlf:tx_dpf_domain_model_document.file',
309
-            'config'  => array(
309
+            'config'  => array (
310 310
                 'type'          => 'inline',
311 311
                 'foreign_table' => 'tx_dpf_domain_model_file',
312 312
                 'foreign_field' => 'document',
313
-                'behaviour'     => array(
313
+                'behaviour'     => array (
314 314
                     'disableMovingChildrenWithParent' => 1,
315 315
                 ),
316 316
                 'maxitems'      => 9999,
317
-                'appearance'    => array(
317
+                'appearance'    => array (
318 318
                     'collapseAll'                     => 0,
319 319
                     'levelLinksPosition'              => 'top',
320 320
                     'showSynchronizationLink'         => 1,
@@ -325,13 +325,13 @@  discard block
 block discarded – undo
325 325
 
326 326
         ),
327 327
 
328
-        'owner'              => array(
328
+        'owner'              => array (
329 329
             'exclude' => 1,
330 330
             'label'   => 'Owner',
331
-            'config'  => array(
331
+            'config'  => array (
332 332
                 'type'          => 'select',
333 333
                 'items' => array (
334
-                    array('', 0),
334
+                    array ('', 0),
335 335
                 ),
336 336
                 'renderType'    => 'selectSingle',
337 337
                 'foreign_table' => 'fe_users',
@@ -340,51 +340,51 @@  discard block
 block discarded – undo
340 340
             ),
341 341
         ),
342 342
 
343
-        'editor_uid'         => array(
343
+        'editor_uid'         => array (
344 344
             'exclude'   => 1,
345 345
             'l10n_mode' => 'exclude',
346 346
             'label'     => 'LLL:EXT:dpf/Resources/Private/Language/locallang_db.xlf:tx_dpf_domain_model_document.editor_uid',
347
-            'config'    => array(
347
+            'config'    => array (
348 348
                 'type'    => 'input',
349 349
                 'size'    => 30,
350 350
                 'eval'    => 'trim'
351 351
             ),
352 352
         ),
353 353
 
354
-        'temporary'                      => array(
354
+        'temporary'                      => array (
355 355
             'exclude'   => 1,
356 356
             'l10n_mode' => 'exclude',
357 357
             'label'     => 'LLL:EXT:dpf/Resources/Private/Language/locallang_db.xlf:tx_dpf_domain_model_document.temporary',
358
-            'config'    => array(
358
+            'config'    => array (
359 359
                 'type'    => 'check',
360 360
                 'default' => 0,
361 361
             ),
362 362
         ),
363 363
 
364 364
 
365
-        'suggestion' => array(
365
+        'suggestion' => array (
366 366
             'exclude'   => 1,
367 367
             'l10n_mode' => 'exclude',
368 368
             'label'     => 'LLL:EXT:dpf/Resources/Private/Language/locallang_db.xlf:tx_dpf_domain_model_document.suggestion',
369
-            'config'    => array(
369
+            'config'    => array (
370 370
                 'type'    => 'check',
371 371
                 'default' => 0,
372 372
             ),
373 373
         ),
374 374
 
375
-        'linked_uid' => array(
375
+        'linked_uid' => array (
376 376
             'exclude'   => 1,
377 377
             'l10n_mode' => 'exclude',
378 378
             'label'     => 'LLL:EXT:dpf/Resources/Private/Language/locallang_db.xlf:tx_dpf_domain_model_document.linked_uid',
379
-            'config'    => array(
379
+            'config'    => array (
380 380
                 'type'    => 'check'
381 381
             ),
382 382
         ),
383 383
 
384
-        'comment' => array(
384
+        'comment' => array (
385 385
             'exclude' => 1,
386 386
             'label'   => 'LLL:EXT:dpf/Resources/Private/Language/locallang_db.xlf:tx_dpf_domain_model_document.comment',
387
-            'config'  => array(
387
+            'config'  => array (
388 388
                 'type' => 'input',
389 389
                 'size' => 30,
390 390
                 'eval' => 'trim',
Please login to merge, or discard this patch.
Configuration/TCA/tx_dpf_domain_model_metadataobject.php 1 patch
Spacing   +93 added lines, -93 removed lines patch added patch discarded remove patch
@@ -16,8 +16,8 @@  discard block
 block discarded – undo
16 16
     die('Access denied.');
17 17
 }
18 18
 
19
-return array(
20
-    'ctrl' => array(
19
+return array (
20
+    'ctrl' => array (
21 21
         'title'                    => 'LLL:EXT:dpf/Resources/Private/Language/locallang_db.xlf:tx_dpf_domain_model_metadataobject',
22 22
         'label'                    => 'name',
23 23
         'tstamp'                   => 'tstamp',
@@ -28,7 +28,7 @@  discard block
 block discarded – undo
28 28
         'transOrigPointerField'    => 'l10n_parent',
29 29
         'transOrigDiffSourceField' => 'l10n_diffsource',
30 30
         'delete'                   => 'deleted',
31
-        'enablecolumns'            => array(
31
+        'enablecolumns'            => array (
32 32
             'disabled'  => 'hidden',
33 33
             'starttime' => 'starttime',
34 34
             'endtime'   => 'endtime',
@@ -36,257 +36,257 @@  discard block
 block discarded – undo
36 36
         'searchFields'             => 'name, display_name, max_iteration, mandatory, data_type, validation, mapping, mods_extension, input_field, max_input_length, input_option_list, fill_out_service, gnd_field_uid, default_value, access_restriction_roles, consent',
37 37
         'iconfile'                 => 'EXT:dpf/Resources/Public/Icons/tx_dpf_domain_model_metadataobject.gif',
38 38
     ),
39
-    'interface' => array(
39
+    'interface' => array (
40 40
         'showRecordFieldList' => 'sys_language_uid, l10n_parent, l10n_diffsource, hidden, name, display_name, max_iteration, mandatory, data_type, validation, mapping, mods_extension, input_field, max_input_length, input_option_list, fill_out_service, gnd_field_uid, default_value, access_restriction_roles, consent',
41 41
     ),
42
-    'types'     => array(
43
-        '1' => array('showitem' => 'sys_language_uid, l10n_parent, l10n_diffsource, hidden, --palette--;;1, name, display_name, max_iteration, mandatory, data_type, validation, mapping, mods_extension, input_field, max_input_length, input_option_list, fill_out_service, gnd_field_uid, default_value, access_restriction_roles, consent, --div--;LLL:EXT:frontend/Resources/Private/Language/locallang_ttc.xlf:tabs.access, starttime, endtime'),
42
+    'types'     => array (
43
+        '1' => array ('showitem' => 'sys_language_uid, l10n_parent, l10n_diffsource, hidden, --palette--;;1, name, display_name, max_iteration, mandatory, data_type, validation, mapping, mods_extension, input_field, max_input_length, input_option_list, fill_out_service, gnd_field_uid, default_value, access_restriction_roles, consent, --div--;LLL:EXT:frontend/Resources/Private/Language/locallang_ttc.xlf:tabs.access, starttime, endtime'),
44 44
     ),
45
-    'palettes'  => array(
46
-        '1' => array('showitem' => ''),
45
+    'palettes'  => array (
46
+        '1' => array ('showitem' => ''),
47 47
     ),
48
-    'columns'   => array(
48
+    'columns'   => array (
49 49
 
50
-        'sys_language_uid'  => array(
50
+        'sys_language_uid'  => array (
51 51
             'exclude' => 1,
52 52
             'label'   => 'LLL:EXT:lang/locallang_general.xlf:LGL.language',
53
-            'config'  => array(
53
+            'config'  => array (
54 54
                 'type'                => 'select',
55 55
                 'renderType'          => 'selectSingle',
56 56
                 'foreign_table'       => 'sys_language',
57 57
                 'foreign_table_where' => 'ORDER BY sys_language.title',
58
-                'items'               => array(
59
-                    array('LLL:EXT:lang/locallang_general.xlf:LGL.allLanguages', -1),
60
-                    array('LLL:EXT:lang/locallang_general.xlf:LGL.default_value', 0),
58
+                'items'               => array (
59
+                    array ('LLL:EXT:lang/locallang_general.xlf:LGL.allLanguages', -1),
60
+                    array ('LLL:EXT:lang/locallang_general.xlf:LGL.default_value', 0),
61 61
                 ),
62 62
             ),
63 63
         ),
64
-        'l10n_parent'       => array(
64
+        'l10n_parent'       => array (
65 65
             'displayCond' => 'FIELD:sys_language_uid:>:0',
66 66
             'exclude'     => 1,
67 67
             'label'       => 'LLL:EXT:lang/locallang_general.xlf:LGL.l18n_parent',
68
-            'config'      => array(
68
+            'config'      => array (
69 69
                 'type'                => 'select',
70 70
                 'renderType'          => 'selectSingle',
71
-                'items'               => array(
72
-                    array('', 0),
71
+                'items'               => array (
72
+                    array ('', 0),
73 73
                 ),
74 74
                 'foreign_table'       => 'tx_dpf_domain_model_metadataobject',
75 75
                 'foreign_table_where' => 'AND tx_dpf_domain_model_metadataobject.pid=###CURRENT_PID### AND tx_dpf_domain_model_metadataobject.sys_language_uid IN (-1,0)',
76 76
             ),
77 77
         ),
78
-        'l10n_diffsource'   => array(
79
-            'config' => array(
78
+        'l10n_diffsource'   => array (
79
+            'config' => array (
80 80
                 'type' => 'passthrough',
81 81
             ),
82 82
         ),
83 83
 
84
-        't3ver_label'       => array(
84
+        't3ver_label'       => array (
85 85
             'label'  => 'LLL:EXT:lang/locallang_general.xlf:LGL.versionLabel',
86
-            'config' => array(
86
+            'config' => array (
87 87
                 'type' => 'input',
88 88
                 'size' => 30,
89 89
                 'max'  => 255,
90 90
             ),
91 91
         ),
92 92
 
93
-        'hidden'            => array(
93
+        'hidden'            => array (
94 94
             'exclude'   => 1,
95 95
             'l10n_mode' => 'exclude',
96 96
             'label'     => 'LLL:EXT:lang/locallang_general.xlf:LGL.hidden',
97
-            'config'    => array(
97
+            'config'    => array (
98 98
                 'type' => 'check',
99 99
             ),
100 100
         ),
101
-        'starttime'         => array(
101
+        'starttime'         => array (
102 102
             'exclude'   => 1,
103 103
             'l10n_mode' => 'mergeIfNotBlank',
104 104
             'label'     => 'LLL:EXT:lang/locallang_general.xlf:LGL.starttime',
105
-            'config'    => array(
105
+            'config'    => array (
106 106
                 'type'     => 'input',
107 107
                 'renderType' => 'inputDateTime',
108 108
                 'size'     => 13,
109 109
                 'eval'     => 'datetime',
110 110
                 'checkbox' => 0,
111 111
                 'default'  => 0,
112
-                'range'    => array(
112
+                'range'    => array (
113 113
                     'lower' => mktime(0, 0, 0, date('m'), date('d'), date('Y')),
114 114
                 ),
115 115
             ),
116 116
         ),
117
-        'endtime'           => array(
117
+        'endtime'           => array (
118 118
             'exclude'   => 1,
119 119
             'l10n_mode' => 'mergeIfNotBlank',
120 120
             'label'     => 'LLL:EXT:lang/locallang_general.xlf:LGL.endtime',
121
-            'config'    => array(
121
+            'config'    => array (
122 122
                 'type'     => 'input',
123 123
                 'renderType' => 'inputDateTime',
124 124
                 'size'     => 13,
125 125
                 'eval'     => 'datetime',
126 126
                 'checkbox' => 0,
127 127
                 'default'  => 0,
128
-                'range'    => array(
128
+                'range'    => array (
129 129
                     'lower' => mktime(0, 0, 0, date('m'), date('d'), date('Y')),
130 130
                 ),
131 131
             ),
132 132
         ),
133 133
 
134
-        'name'              => array(
134
+        'name'              => array (
135 135
             'exclude'   => 1,
136 136
             'l10n_mode' => 'exclude',
137 137
             'label'     => 'LLL:EXT:dpf/Resources/Private/Language/locallang_db.xlf:tx_dpf_domain_model_metadataobject.name',
138
-            'config'    => array(
138
+            'config'    => array (
139 139
                 'type' => 'input',
140 140
                 'size' => 30,
141 141
                 'eval' => 'trim',
142 142
             ),
143 143
         ),
144
-        'display_name'      => array(
144
+        'display_name'      => array (
145 145
             'exclude' => 1,
146 146
             'label'   => 'LLL:EXT:dpf/Resources/Private/Language/locallang_db.xlf:tx_dpf_domain_model_metadataobject.display_name',
147
-            'config'  => array(
147
+            'config'  => array (
148 148
                 'type' => 'input',
149 149
                 'size' => 30,
150 150
                 'eval' => 'trim',
151 151
             ),
152 152
         ),
153
-        'max_iteration'     => array(
153
+        'max_iteration'     => array (
154 154
             'exclude'   => 1,
155 155
             'l10n_mode' => 'exclude',
156 156
             'label'     => 'LLL:EXT:dpf/Resources/Private/Language/locallang_db.xlf:tx_dpf_domain_model_metadataobject.max_iteration',
157
-            'config'    => array(
157
+            'config'    => array (
158 158
                 'type' => 'input',
159 159
                 'size' => 4,
160 160
                 'eval' => 'int',
161 161
             ),
162 162
         ),
163
-        'mandatory'         => array(
163
+        'mandatory'         => array (
164 164
             'exclude'   => 1,
165 165
             'l10n_mode' => 'exclude',
166 166
             'label'     => 'LLL:EXT:dpf/Resources/Private/Language/locallang_db.xlf:tx_dpf_domain_model_metadataobject.mandatory',
167
-            'config'    => array(
167
+            'config'    => array (
168 168
                 'type' => 'select',
169 169
                 'size' => 1,
170 170
                 'maxitems' => 1,
171
-                'items' => array(
172
-                    array('',''),
173
-                    array('LLL:EXT:dpf/Resources/Private/Language/locallang_db.xlf:tx_dpf_domain_model_metadataobject.mandatory_yes','1'),
174
-                    array('LLL:EXT:dpf/Resources/Private/Language/locallang_db.xlf:tx_dpf_domain_model_metadataobject.mandatory_file_only','FILE_ONLY'),
171
+                'items' => array (
172
+                    array ('', ''),
173
+                    array ('LLL:EXT:dpf/Resources/Private/Language/locallang_db.xlf:tx_dpf_domain_model_metadataobject.mandatory_yes', '1'),
174
+                    array ('LLL:EXT:dpf/Resources/Private/Language/locallang_db.xlf:tx_dpf_domain_model_metadataobject.mandatory_file_only', 'FILE_ONLY'),
175 175
                 ),
176 176
             ),
177 177
         ),
178
-        'mapping'           => array(
178
+        'mapping'           => array (
179 179
             'exclude'   => 1,
180 180
             'l10n_mode' => 'exclude',
181 181
             'label'     => 'LLL:EXT:dpf/Resources/Private/Language/locallang_db.xlf:tx_dpf_domain_model_metadataobject.mapping',
182
-            'config'    => array(
182
+            'config'    => array (
183 183
                 'type' => 'input',
184 184
                 'size' => 30,
185 185
                 'eval' => 'trim',
186 186
             ),
187 187
         ),
188
-        'data_type'         => array(
188
+        'data_type'         => array (
189 189
             'exclude'   => 1,
190 190
             'l10n_mode' => 'exclude',
191 191
             'label'     => 'LLL:EXT:dpf/Resources/Private/Language/locallang_db.xlf:tx_dpf_domain_model_metadataobject.data_type',
192
-            'config'    => array(
192
+            'config'    => array (
193 193
                 'type'     => 'select',
194 194
                 'renderType' => 'selectSingle',
195
-                'items'    => array(
196
-                    array('', ''),
197
-                    array('LLL:EXT:dpf/Resources/Private/Language/locallang_db.xlf:tx_dpf_domain_model_metadataobject.data_type.regexp', \EWW\Dpf\Domain\Model\MetadataObject::INPUT_DATA_TYPE_REGEXP),
198
-                    array('LLL:EXT:dpf/Resources/Private/Language/locallang_db.xlf:tx_dpf_domain_model_metadataobject.data_type.date', \EWW\Dpf\Domain\Model\MetadataObject::INPUT_DATA_TYPE_DATE),
195
+                'items'    => array (
196
+                    array ('', ''),
197
+                    array ('LLL:EXT:dpf/Resources/Private/Language/locallang_db.xlf:tx_dpf_domain_model_metadataobject.data_type.regexp', \EWW\Dpf\Domain\Model\MetadataObject::INPUT_DATA_TYPE_REGEXP),
198
+                    array ('LLL:EXT:dpf/Resources/Private/Language/locallang_db.xlf:tx_dpf_domain_model_metadataobject.data_type.date', \EWW\Dpf\Domain\Model\MetadataObject::INPUT_DATA_TYPE_DATE),
199 199
                 ),
200 200
                 'size'     => 1,
201 201
                 'maxitems' => 1,
202 202
                 'eval'     => '',
203 203
             ),
204 204
         ),
205
-        'validation'        => array(
205
+        'validation'        => array (
206 206
             'exclude'   => 1,
207 207
             'l10n_mode' => 'exclude',
208 208
             'label'     => 'LLL:EXT:dpf/Resources/Private/Language/locallang_db.xlf:tx_dpf_domain_model_metadataobject.validation',
209
-            'config'    => array(
209
+            'config'    => array (
210 210
                 'type' => 'input',
211 211
                 'size' => 30,
212 212
                 'eval' => 'trim',
213 213
             ),
214 214
         ),
215
-        'mods_extension'    => array(
215
+        'mods_extension'    => array (
216 216
             'exclude'   => 1,
217 217
             'l10n_mode' => 'exclude',
218 218
             'label'     => 'LLL:EXT:dpf/Resources/Private/Language/locallang_db.xlf:tx_dpf_domain_model_metadataobject.mods_extension',
219
-            'config'    => array(
219
+            'config'    => array (
220 220
                 'type'    => 'check',
221 221
                 'default' => 0,
222 222
             ),
223 223
         ),
224
-        'access_restriction_roles' => array(
224
+        'access_restriction_roles' => array (
225 225
             'label' => 'LLL:EXT:dpf/Resources/Private/Language/locallang_db.xlf:tx_dpf_domain_model_metadataobject.access_restriction_roles',
226
-            'config' => array(
226
+            'config' => array (
227 227
                 'type' => 'select',
228 228
                 'size' => 2,
229 229
                 'maxitems' => 2,
230
-                'items' => array(
231
-                    array('LLL:EXT:dpf/Resources/Private/Language/locallang_db.xlf:tx_dpf_domain_model_feusergroup.kitodo_role_researcher', EWW\Dpf\Security\AuthorizationChecker::ROLE_RESEARCHER),
232
-                    array('LLL:EXT:dpf/Resources/Private/Language/locallang_db.xlf:tx_dpf_domain_model_feusergroup.kitodo_role_librarian', EWW\Dpf\Security\AuthorizationChecker::ROLE_LIBRARIAN),
230
+                'items' => array (
231
+                    array ('LLL:EXT:dpf/Resources/Private/Language/locallang_db.xlf:tx_dpf_domain_model_feusergroup.kitodo_role_researcher', EWW\Dpf\Security\AuthorizationChecker::ROLE_RESEARCHER),
232
+                    array ('LLL:EXT:dpf/Resources/Private/Language/locallang_db.xlf:tx_dpf_domain_model_feusergroup.kitodo_role_librarian', EWW\Dpf\Security\AuthorizationChecker::ROLE_LIBRARIAN),
233 233
                 ),
234 234
             ),
235 235
         ),
236
-        'consent'           => array(
236
+        'consent'           => array (
237 237
             'exclude'   => 1,
238 238
             'l10n_mode' => 'exclude',
239 239
             'label'     => 'LLL:EXT:dpf/Resources/Private/Language/locallang_db.xlf:tx_dpf_domain_model_metadataobject.consent',
240
-            'config'    => array(
240
+            'config'    => array (
241 241
                 'type'    => 'check',
242 242
                 'default' => 0,
243 243
             ),
244 244
         ),
245
-        'input_field'       => array(
245
+        'input_field'       => array (
246 246
             'exclude'   => 1,
247 247
             'l10n_mode' => 'exclude',
248 248
             'label'     => 'LLL:EXT:dpf/Resources/Private/Language/locallang_db.xlf:tx_dpf_domain_model_metadataobject.input_field',
249
-            'config'    => array(
249
+            'config'    => array (
250 250
                 'type'     => 'select',
251 251
                 'renderType' => 'selectSingle',
252
-                'items'    => array(
253
-                    array('LLL:EXT:dpf/Resources/Private/Language/locallang_db.xlf:tx_dpf_domain_model_metadataobject.input_type.input', \EWW\Dpf\Domain\Model\MetadataObject::input),
254
-                    array('LLL:EXT:dpf/Resources/Private/Language/locallang_db.xlf:tx_dpf_domain_model_metadataobject.input_type.textarea', \EWW\Dpf\Domain\Model\MetadataObject::textarea),
255
-                    array('LLL:EXT:dpf/Resources/Private/Language/locallang_db.xlf:tx_dpf_domain_model_metadataobject.input_type.select', \EWW\Dpf\Domain\Model\MetadataObject::select),
256
-                    array('LLL:EXT:dpf/Resources/Private/Language/locallang_db.xlf:tx_dpf_domain_model_metadataobject.input_type.checkbox', \EWW\Dpf\Domain\Model\MetadataObject::checkbox),
257
-                    array('LLL:EXT:dpf/Resources/Private/Language/locallang_db.xlf:tx_dpf_domain_model_metadataobject.input_type.hidden', \EWW\Dpf\Domain\Model\MetadataObject::hidden),
258
-                    array('LLL:EXT:dpf/Resources/Private/Language/locallang_db.xlf:tx_dpf_domain_model_metadataobject.input_type.inputDropdown', \EWW\Dpf\Domain\Model\MetadataObject::INPUTDROPDOWN),
252
+                'items'    => array (
253
+                    array ('LLL:EXT:dpf/Resources/Private/Language/locallang_db.xlf:tx_dpf_domain_model_metadataobject.input_type.input', \EWW\Dpf\Domain\Model\MetadataObject::input),
254
+                    array ('LLL:EXT:dpf/Resources/Private/Language/locallang_db.xlf:tx_dpf_domain_model_metadataobject.input_type.textarea', \EWW\Dpf\Domain\Model\MetadataObject::textarea),
255
+                    array ('LLL:EXT:dpf/Resources/Private/Language/locallang_db.xlf:tx_dpf_domain_model_metadataobject.input_type.select', \EWW\Dpf\Domain\Model\MetadataObject::select),
256
+                    array ('LLL:EXT:dpf/Resources/Private/Language/locallang_db.xlf:tx_dpf_domain_model_metadataobject.input_type.checkbox', \EWW\Dpf\Domain\Model\MetadataObject::checkbox),
257
+                    array ('LLL:EXT:dpf/Resources/Private/Language/locallang_db.xlf:tx_dpf_domain_model_metadataobject.input_type.hidden', \EWW\Dpf\Domain\Model\MetadataObject::hidden),
258
+                    array ('LLL:EXT:dpf/Resources/Private/Language/locallang_db.xlf:tx_dpf_domain_model_metadataobject.input_type.inputDropdown', \EWW\Dpf\Domain\Model\MetadataObject::INPUTDROPDOWN),
259 259
                 ),
260 260
                 'size'     => 1,
261 261
                 'maxitems' => 1,
262 262
                 'eval'     => '',
263 263
             ),
264 264
         ),
265
-        'max_input_length'       => array(
266
-            'displayCond' => array(
267
-                'OR' => array(
265
+        'max_input_length'       => array (
266
+            'displayCond' => array (
267
+                'OR' => array (
268 268
                     'FIELD:input_field:REQ:false',
269
-                    'FIELD:input_field:=:'.\EWW\Dpf\Domain\Model\MetadataObject::input,
270
-                    'FIELD:input_field:=:'.\EWW\Dpf\Domain\Model\MetadataObject::textarea,
269
+                    'FIELD:input_field:=:' . \EWW\Dpf\Domain\Model\MetadataObject::input,
270
+                    'FIELD:input_field:=:' . \EWW\Dpf\Domain\Model\MetadataObject::textarea,
271 271
                 ),
272 272
             ),
273 273
             'exclude'   => 1,
274 274
             'l10n_mode' => 'exclude',
275 275
             'label'     => 'LLL:EXT:dpf/Resources/Private/Language/locallang_db.xlf:tx_dpf_domain_model_metadataobject.max_input_length',
276
-            'config'    => array(
276
+            'config'    => array (
277 277
                 'type' => 'input',
278 278
                 'size' => 4,
279 279
                 'eval' => 'trim,number',
280 280
             ),
281 281
         ),
282
-        'input_option_list' => array(
282
+        'input_option_list' => array (
283 283
             'exclude' => 1,
284 284
             'label'   => 'LLL:EXT:dpf/Resources/Private/Language/locallang_db.xlf:tx_dpf_domain_model_metadataobject.input_option_list',
285
-            'config'  => array(
285
+            'config'  => array (
286 286
                 'type'                => 'select',
287 287
                 'renderType'          => 'selectSingle',
288
-                'items'               => array(
289
-                    array('', 0),
288
+                'items'               => array (
289
+                    array ('', 0),
290 290
                 ),
291 291
                 'foreign_table'       => 'tx_dpf_domain_model_inputoptionlist',
292 292
                 'foreign_table_where' => ' AND (tx_dpf_domain_model_inputoptionlist.pid=###CURRENT_PID###) AND (tx_dpf_domain_model_inputoptionlist.sys_language_uid = 0)',
@@ -294,27 +294,27 @@  discard block
 block discarded – undo
294 294
                 'maxitems'            => 1,
295 295
             ),
296 296
         ),
297
-        'default_value'     => array(
297
+        'default_value'     => array (
298 298
             'exclude' => 1,
299 299
             'label'   => 'LLL:EXT:dpf/Resources/Private/Language/locallang_db.xlf:tx_dpf_domain_model_metadataobject.default_value',
300
-            'config'  => array(
300
+            'config'  => array (
301 301
                 'type' => 'text',
302 302
                 'cols' => 20,
303 303
                 'rows' => 3,
304 304
                 'eval' => 'trim',
305 305
             ),
306 306
         ),
307
-        'fill_out_service'  => array(
307
+        'fill_out_service'  => array (
308 308
             'exclude'   => 1,
309 309
             'l10n_mode' => 'exclude',
310 310
             'label'     => 'LLL:EXT:dpf/Resources/Private/Language/locallang_db.xlf:tx_dpf_domain_model_metadataobject.fill_out_service',
311
-            'config'    => array(
311
+            'config'    => array (
312 312
                 'type'     => 'select',
313 313
                 'renderType' => 'selectSingle',
314
-                'items'    => array(
315
-                    array('', 0),
316
-                    array('LLL:EXT:dpf/Resources/Private/Language/locallang_db.xlf:tx_dpf_domain_model_metadataobject.fill_out_service.urn', \EWW\Dpf\Domain\Model\MetadataObject::FILL_OUT_SERVICE_URN),
317
-                    array('LLL:EXT:dpf/Resources/Private/Language/locallang_db.xlf:tx_dpf_domain_model_metadataobject.fill_out_service.gnd', \EWW\Dpf\Domain\Model\MetadataObject::FILL_OUT_SERVICE_GND),
314
+                'items'    => array (
315
+                    array ('', 0),
316
+                    array ('LLL:EXT:dpf/Resources/Private/Language/locallang_db.xlf:tx_dpf_domain_model_metadataobject.fill_out_service.urn', \EWW\Dpf\Domain\Model\MetadataObject::FILL_OUT_SERVICE_URN),
317
+                    array ('LLL:EXT:dpf/Resources/Private/Language/locallang_db.xlf:tx_dpf_domain_model_metadataobject.fill_out_service.gnd', \EWW\Dpf\Domain\Model\MetadataObject::FILL_OUT_SERVICE_GND),
318 318
                 ),
319 319
                 'size'     => 1,
320 320
                 'maxitems' => 1,
@@ -322,18 +322,18 @@  discard block
 block discarded – undo
322 322
             ),
323 323
             'onChange' => 'reload',
324 324
         ),
325
-        'gnd_field_uid' => array(
326
-            'displayCond' => 'FIELD:fill_out_service:=:'.\EWW\Dpf\Domain\Model\MetadataObject::FILL_OUT_SERVICE_GND,
325
+        'gnd_field_uid' => array (
326
+            'displayCond' => 'FIELD:fill_out_service:=:' . \EWW\Dpf\Domain\Model\MetadataObject::FILL_OUT_SERVICE_GND,
327 327
             'exclude'   => 0,
328 328
             'label'   => 'LLL:EXT:dpf/Resources/Private/Language/locallang_db.xlf:tx_dpf_domain_model_metadataobject.gnd_field_uid',
329
-            'config'  => array(
329
+            'config'  => array (
330 330
                 'type' => 'input',
331 331
                 'size' => 30,
332 332
                 'eval' => 'trim',
333 333
             ),
334 334
         ),
335
-        'metadatagroup'     => array(
336
-            'config' => array(
335
+        'metadatagroup'     => array (
336
+            'config' => array (
337 337
                 'type' => 'passthrough',
338 338
             ),
339 339
         ),
Please login to merge, or discard this patch.
Configuration/TCA/tx_dpf_domain_model_client.php 2 patches
Spacing   +86 added lines, -86 removed lines patch added patch discarded remove patch
@@ -15,8 +15,8 @@  discard block
 block discarded – undo
15 15
 if (!defined('TYPO3_MODE')) {
16 16
     die('Access denied.');
17 17
 }
18
-return array(
19
-    'ctrl' => array(
18
+return array (
19
+    'ctrl' => array (
20 20
         'title'                    => 'LLL:EXT:dpf/Resources/Private/Language/locallang_db.xlf:tx_dpf_domain_model_client',
21 21
         'label'                    => 'project',
22 22
         'tstamp'                   => 'tstamp',
@@ -27,7 +27,7 @@  discard block
 block discarded – undo
27 27
         'transOrigPointerField'    => 'l10n_parent',
28 28
         'transOrigDiffSourceField' => 'l10n_diffsource',
29 29
         'delete'                   => 'deleted',
30
-        'enablecolumns'            => array(
30
+        'enablecolumns'            => array (
31 31
             'disabled'  => 'hidden',
32 32
             'starttime' => 'starttime',
33 33
             'endtime'   => 'endtime',
@@ -43,7 +43,7 @@  discard block
 block discarded – undo
43 43
         'requestUpdate'            => 'replace_niss_part',
44 44
         'iconfile'                 => 'EXT:dpf/Resources/Public/Icons/tx_dpf_domain_model_client.gif',
45 45
     ),
46
-    'interface' => array(
46
+    'interface' => array (
47 47
         'showRecordFieldList' => 'sys_language_uid, l10n_parent, l10n_diffsource, hidden, client, owner_id,
48 48
         network_initial, library_identifier, admin_email, project, replace_niss_part, niss_part_search, niss_part_replace,
49 49
         sword_host, sword_user, sword_password, sword_collection_namespace, fedora_host, fedora_user, fedora_password,
@@ -53,8 +53,8 @@  discard block
 block discarded – undo
53 53
         submitter_ingest_notification_subject, submitter_ingest_notification_body,
54 54
         admin_register_document_notification_subject, admin_register_document_notification_body'
55 55
     ),
56
-    'types'     => array(
57
-        '1' => array('showitem' => 'sys_language_uid, l10n_parent, l10n_diffsource, hidden, --palette--;;1,
56
+    'types'     => array (
57
+        '1' => array ('showitem' => 'sys_language_uid, l10n_parent, l10n_diffsource, hidden, --palette--;;1,
58 58
         client, owner_id, network_initial, library_identifier, admin_email, project, replace_niss_part, niss_part_search, niss_part_replace,
59 59
         --div--;SWORD, sword_host, sword_user, sword_password, sword_collection_namespace,
60 60
         --div--;Fedora, fedora_host, fedora_user, fedora_password,
@@ -64,315 +64,315 @@  discard block
 block discarded – undo
64 64
         --div--;Submitter Notification, submitter_new_document_notification_subject, submitter_new_document_notification_body, submitter_ingest_notification_subject, submitter_ingest_notification_body,
65 65
         --div--;LLL:EXT:frontend/Resources/Private/Language/locallang_ttc.xlf:tabs.access, starttime, endtime'),
66 66
     ),
67
-    'palettes'  => array(
68
-        '1' => array('showitem' => ''),
67
+    'palettes'  => array (
68
+        '1' => array ('showitem' => ''),
69 69
     ),
70
-    'columns'   => array(
71
-        'sys_language_uid'   => array(
70
+    'columns'   => array (
71
+        'sys_language_uid'   => array (
72 72
             'exclude' => 1,
73 73
             'label'   => 'LLL:EXT:lang/locallang_general.xlf:LGL.language',
74
-            'config'  => array(
74
+            'config'  => array (
75 75
                 'type'                => 'select',
76 76
                 'renderType'          => 'selectSingle',
77 77
                 'foreign_table'       => 'sys_language',
78 78
                 'foreign_table_where' => 'ORDER BY sys_language.title',
79
-                'items'               => array(
80
-                    array('LLL:EXT:lang/locallang_general.xlf:LGL.allLanguages', -1),
81
-                    array('LLL:EXT:lang/locallang_general.xlf:LGL.default_value', 0),
79
+                'items'               => array (
80
+                    array ('LLL:EXT:lang/locallang_general.xlf:LGL.allLanguages', -1),
81
+                    array ('LLL:EXT:lang/locallang_general.xlf:LGL.default_value', 0),
82 82
                 ),
83 83
             ),
84 84
         ),
85
-        'l10n_parent'        => array(
85
+        'l10n_parent'        => array (
86 86
             'displayCond' => 'FIELD:sys_language_uid:>:0',
87 87
             'exclude'     => 1,
88 88
             'label'       => 'LLL:EXT:lang/locallang_general.xlf:LGL.l18n_parent',
89
-            'config'      => array(
89
+            'config'      => array (
90 90
                 'type'                => 'select',
91 91
                 'renderType'          => 'selectSingle',
92
-                'items'               => array(
93
-                    array('', 0),
92
+                'items'               => array (
93
+                    array ('', 0),
94 94
                 ),
95 95
                 'foreign_table'       => 'tx_dpf_domain_model_client',
96 96
                 'foreign_table_where' => 'AND tx_dpf_domain_model_client.pid=###CURRENT_PID### AND tx_dpf_domain_model_client.sys_language_uid IN (-1,0)',
97 97
             ),
98 98
         ),
99
-        'l10n_diffsource'    => array(
100
-            'config' => array(
99
+        'l10n_diffsource'    => array (
100
+            'config' => array (
101 101
                 'type' => 'passthrough',
102 102
             ),
103 103
         ),
104
-        't3ver_label'        => array(
104
+        't3ver_label'        => array (
105 105
             'label'  => 'LLL:EXT:lang/locallang_general.xlf:LGL.versionLabel',
106
-            'config' => array(
106
+            'config' => array (
107 107
                 'type' => 'input',
108 108
                 'size' => 30,
109 109
                 'max'  => 255,
110 110
             ),
111 111
         ),
112
-        'hidden'             => array(
112
+        'hidden'             => array (
113 113
             'exclude' => 1,
114 114
             'label'   => 'LLL:EXT:lang/locallang_general.xlf:LGL.hidden',
115
-            'config'  => array(
115
+            'config'  => array (
116 116
                 'type' => 'check',
117 117
             ),
118 118
         ),
119
-        'starttime'          => array(
119
+        'starttime'          => array (
120 120
             'exclude'   => 1,
121 121
             'l10n_mode' => 'mergeIfNotBlank',
122 122
             'label'     => 'LLL:EXT:lang/locallang_general.xlf:LGL.starttime',
123
-            'config'    => array(
123
+            'config'    => array (
124 124
                 'type'     => 'input',
125 125
                 'renderType' => 'inputDateTime',
126 126
                 'size'     => 13,
127 127
                 'eval'     => 'datetime',
128 128
                 'checkbox' => 0,
129 129
                 'default'  => 0,
130
-                'range'    => array(
130
+                'range'    => array (
131 131
                     'lower' => mktime(0, 0, 0, date('m'), date('d'), date('Y')),
132 132
                 ),
133 133
             ),
134 134
         ),
135
-        'endtime'            => array(
135
+        'endtime'            => array (
136 136
             'exclude'   => 1,
137 137
             'l10n_mode' => 'mergeIfNotBlank',
138 138
             'label'     => 'LLL:EXT:lang/locallang_general.xlf:LGL.endtime',
139
-            'config'    => array(
139
+            'config'    => array (
140 140
                 'type'     => 'input',
141 141
                 'renderType' => 'inputDateTime',
142 142
                 'size'     => 13,
143 143
                 'eval'     => 'datetime',
144 144
                 'checkbox' => 0,
145 145
                 'default'  => 0,
146
-                'range'    => array(
146
+                'range'    => array (
147 147
                     'lower' => mktime(0, 0, 0, date('m'), date('d'), date('Y')),
148 148
                 ),
149 149
             ),
150 150
         ),
151
-        'project'            => array(
151
+        'project'            => array (
152 152
             'exclude'   => 1,
153 153
             'l10n_mode' => 'exclude',
154 154
             'label'     => 'LLL:EXT:dpf/Resources/Private/Language/locallang_db.xlf:tx_dpf_domain_model_client.project',
155
-            'config'    => array(
155
+            'config'    => array (
156 156
                 'type' => 'input',
157 157
                 'size' => 30,
158 158
                 'eval' => 'trim',
159 159
             ),
160 160
         ),
161
-        'client'             => array(
161
+        'client'             => array (
162 162
             'exclude'      => 1,
163 163
             'l10n_mode'    => 'exclude',
164 164
             'l10n_display' => 'defaultAsReadonly',
165 165
             'label'        => 'LLL:EXT:dpf/Resources/Private/Language/locallang_db.xlf:tx_dpf_domain_model_client.client',
166
-            'config'       => array(
166
+            'config'       => array (
167 167
                 'type' => 'input',
168 168
                 'size' => 30,
169 169
                 'eval' => 'trim',
170 170
             ),
171 171
         ),
172
-        'network_initial'    => array(
172
+        'network_initial'    => array (
173 173
             'exclude'   => 1,
174 174
             'l10n_mode' => 'exclude',
175 175
             'label'     => 'LLL:EXT:dpf/Resources/Private/Language/locallang_db.xlf:tx_dpf_domain_model_client.network_initial',
176
-            'config'    => array(
176
+            'config'    => array (
177 177
                 'type' => 'input',
178 178
                 'size' => 30,
179 179
                 'eval' => 'trim',
180 180
             ),
181 181
         ),
182
-        'library_identifier' => array(
182
+        'library_identifier' => array (
183 183
             'exclude'   => 1,
184 184
             'l10n_mode' => 'exclude',
185 185
             'label'     => 'LLL:EXT:dpf/Resources/Private/Language/locallang_db.xlf:tx_dpf_domain_model_client.library_identifier',
186
-            'config'    => array(
186
+            'config'    => array (
187 187
                 'type' => 'input',
188 188
                 'size' => 30,
189 189
                 'eval' => 'trim',
190 190
             ),
191 191
         ),
192
-        'owner_id'           => array(
192
+        'owner_id'           => array (
193 193
             'exclude'   => 1,
194 194
             'l10n_mode' => 'exclude',
195 195
             'label'     => 'LLL:EXT:dpf/Resources/Private/Language/locallang_db.xlf:tx_dpf_domain_model_client.owner_id',
196
-            'config'    => array(
196
+            'config'    => array (
197 197
                 'type' => 'input',
198 198
                 'size' => 30,
199 199
                 'eval' => 'trim,required',
200 200
             ),
201 201
         ),
202
-        'admin_email'        => array(
202
+        'admin_email'        => array (
203 203
             'exclude'   => 1,
204 204
             'l10n_mode' => 'exclude',
205 205
             'label'     => 'LLL:EXT:dpf/Resources/Private/Language/locallang_db.xlf:tx_dpf_domain_model_client.admin_email',
206
-            'config'    => array(
206
+            'config'    => array (
207 207
                 'type' => 'input',
208 208
                 'size' => 30,
209 209
                 'eval' => 'trim',
210 210
             ),
211 211
         ),
212
-        'replace_niss_part'  => array(
212
+        'replace_niss_part'  => array (
213 213
             'exclude'   => 1,
214 214
             'l10n_mode' => 'exclude',
215 215
             'label'     => 'LLL:EXT:dpf/Resources/Private/Language/locallang_db.xlf:tx_dpf_domain_model_client.replace_niss_part',
216
-            'config'    => array(
216
+            'config'    => array (
217 217
                 'type'    => 'check',
218 218
                 'default' => 0,
219 219
             ),
220 220
             'onChange' => 'reload',
221 221
         ),
222
-        'niss_part_search'   => array(
222
+        'niss_part_search'   => array (
223 223
             'exclude'     => 1,
224 224
             'label'       => 'LLL:EXT:dpf/Resources/Private/Language/locallang_db.xlf:tx_dpf_domain_model_client.niss_part_search',
225 225
             'displayCond' => 'FIELD:replace_niss_part:=:1',
226
-            'config'      => array(
226
+            'config'      => array (
227 227
                 'type' => 'input',
228 228
                 'size' => 30,
229 229
                 'eval' => 'trim,required',
230 230
             ),
231 231
         ),
232
-        'niss_part_replace'  => array(
232
+        'niss_part_replace'  => array (
233 233
             'exclude'     => 1,
234 234
             'label'       => 'LLL:EXT:dpf/Resources/Private/Language/locallang_db.xlf:tx_dpf_domain_model_client.niss_part_replace',
235 235
             'displayCond' => 'FIELD:replace_niss_part:=:1',
236
-            'config'      => array(
236
+            'config'      => array (
237 237
                 'type' => 'input',
238 238
                 'size' => 30,
239 239
                 'eval' => 'trim,required',
240 240
             ),
241 241
         ),
242
-        'sword_host' => array(
242
+        'sword_host' => array (
243 243
             'exclude'      => 1,
244 244
             'l10n_mode'    => 'exclude',
245 245
             'l10n_display' => 'defaultAsReadonly',
246 246
             'label'        => 'LLL:EXT:dpf/Resources/Private/Language/locallang_db.xlf:tx_dpf_domain_model_client.sword_host',
247
-            'config'       => array(
247
+            'config'       => array (
248 248
                 'type' => 'input',
249 249
                 'size' => 30,
250 250
                 'eval' => 'trim',
251 251
             ),
252 252
         ),
253
-        'sword_user' => array(
253
+        'sword_user' => array (
254 254
             'exclude'      => 1,
255 255
             'l10n_mode'    => 'exclude',
256 256
             'l10n_display' => 'defaultAsReadonly',
257 257
             'label'        => 'LLL:EXT:dpf/Resources/Private/Language/locallang_db.xlf:tx_dpf_domain_model_client.sword_user',
258
-            'config'       => array(
258
+            'config'       => array (
259 259
                 'type' => 'input',
260 260
                 'size' => 30,
261 261
                 'eval' => 'trim',
262 262
             ),
263 263
         ),
264
-        'sword_password' => array(
264
+        'sword_password' => array (
265 265
             'exclude'      => 1,
266 266
             'l10n_mode'    => 'exclude',
267 267
             'l10n_display' => 'defaultAsReadonly',
268 268
             'label'        => 'LLL:EXT:dpf/Resources/Private/Language/locallang_db.xlf:tx_dpf_domain_model_client.sword_password',
269
-            'config'       => array(
269
+            'config'       => array (
270 270
                 'type' => 'input',
271 271
                 'size' => 30,
272 272
                 'eval' => 'trim',
273 273
             ),
274 274
         ),
275
-        'sword_collection_namespace' => array(
275
+        'sword_collection_namespace' => array (
276 276
             'exclude'      => 1,
277 277
             'l10n_mode'    => 'exclude',
278 278
             'l10n_display' => 'defaultAsReadonly',
279 279
             'label'        => 'LLL:EXT:dpf/Resources/Private/Language/locallang_db.xlf:tx_dpf_domain_model_client.sword_collection_namespace',
280
-            'config'       => array(
280
+            'config'       => array (
281 281
                 'type' => 'input',
282 282
                 'size' => 30,
283 283
                 'eval' => 'trim',
284 284
             ),
285 285
         ),
286
-        'fedora_host' => array(
286
+        'fedora_host' => array (
287 287
             'exclude'      => 1,
288 288
             'l10n_mode'    => 'exclude',
289 289
             'l10n_display' => 'defaultAsReadonly',
290 290
             'label'        => 'LLL:EXT:dpf/Resources/Private/Language/locallang_db.xlf:tx_dpf_domain_model_client.fedora_host',
291
-            'config'       => array(
291
+            'config'       => array (
292 292
                 'type' => 'input',
293 293
                 'size' => 30,
294 294
                 'eval' => 'trim',
295 295
             ),
296 296
         ),
297
-        'fedora_user' => array(
297
+        'fedora_user' => array (
298 298
             'exclude'      => 1,
299 299
             'l10n_mode'    => 'exclude',
300 300
             'l10n_display' => 'defaultAsReadonly',
301 301
             'label'        => 'LLL:EXT:dpf/Resources/Private/Language/locallang_db.xlf:tx_dpf_domain_model_client.fedora_user',
302
-            'config'       => array(
302
+            'config'       => array (
303 303
                 'type' => 'input',
304 304
                 'size' => 30,
305 305
                 'eval' => 'trim',
306 306
             ),
307 307
         ),
308
-        'fedora_password' => array(
308
+        'fedora_password' => array (
309 309
             'exclude'      => 1,
310 310
             'l10n_mode'    => 'exclude',
311 311
             'l10n_display' => 'defaultAsReadonly',
312 312
             'label'        => 'LLL:EXT:dpf/Resources/Private/Language/locallang_db.xlf:tx_dpf_domain_model_client.fedora_password',
313
-            'config'       => array(
313
+            'config'       => array (
314 314
                 'type' => 'input',
315 315
                 'size' => 30,
316 316
                 'eval' => 'trim',
317 317
             ),
318 318
         ),
319
-        'elastic_search_host' => array(
319
+        'elastic_search_host' => array (
320 320
             'exclude'      => 1,
321 321
             'l10n_mode'    => 'exclude',
322 322
             'l10n_display' => 'defaultAsReadonly',
323 323
             'label'        => 'LLL:EXT:dpf/Resources/Private/Language/locallang_db.xlf:tx_dpf_domain_model_client.elastic_search_host',
324
-            'config'       => array(
324
+            'config'       => array (
325 325
                 'type' => 'input',
326 326
                 'size' => 30,
327 327
                 'eval' => 'trim',
328 328
             ),
329 329
         ),
330
-        'elastic_search_port' => array(
330
+        'elastic_search_port' => array (
331 331
             'exclude'      => 1,
332 332
             'l10n_mode'    => 'exclude',
333 333
             'l10n_display' => 'defaultAsReadonly',
334 334
             'label'        => 'LLL:EXT:dpf/Resources/Private/Language/locallang_db.xlf:tx_dpf_domain_model_client.elastic_search_port',
335
-            'config'       => array(
335
+            'config'       => array (
336 336
                 'type' => 'input',
337 337
                 'size' => 30,
338 338
                 'eval' => 'trim',
339 339
             ),
340 340
         ),
341
-        'upload_directory' => array(
341
+        'upload_directory' => array (
342 342
             'exclude'      => 1,
343 343
             'l10n_mode'    => 'exclude',
344 344
             'l10n_display' => 'defaultAsReadonly',
345 345
             'label'        => 'LLL:EXT:dpf/Resources/Private/Language/locallang_db.xlf:tx_dpf_domain_model_client.upload_directory',
346
-            'config'       => array(
346
+            'config'       => array (
347 347
                 'type' => 'input',
348 348
                 'size' => 30,
349 349
                 'eval' => 'trim',
350 350
             ),
351 351
         ),
352
-        'upload_domain' => array(
352
+        'upload_domain' => array (
353 353
             'exclude'      => 1,
354 354
             'l10n_mode'    => 'exclude',
355 355
             'l10n_display' => 'defaultAsReadonly',
356 356
             'label'        => 'LLL:EXT:dpf/Resources/Private/Language/locallang_db.xlf:tx_dpf_domain_model_client.upload_domain',
357
-            'config'       => array(
357
+            'config'       => array (
358 358
                 'type' => 'input',
359 359
                 'size' => 30,
360 360
                 'eval' => 'trim',
361 361
             ),
362 362
         ),
363
-        'admin_new_document_notification_subject' => array(
363
+        'admin_new_document_notification_subject' => array (
364 364
             'exclude' => 1,
365 365
             'label'   => 'LLL:EXT:dpf/Resources/Private/Language/locallang_db.xlf:tx_dpf_domain_model_client.admin_new_document_notification_subject',
366
-            'config'  => array(
366
+            'config'  => array (
367 367
                 'type' => 'input',
368 368
                 'size' => 50,
369 369
                 'eval' => 'trim',
370 370
             ),
371 371
         ),
372
-        'admin_new_document_notification_body' => array(
372
+        'admin_new_document_notification_body' => array (
373 373
             'exclude' => 1,
374 374
             'label'   => 'LLL:EXT:dpf/Resources/Private/Language/locallang_db.xlf:tx_dpf_domain_model_client.admin_new_document_notification_body',
375
-            'config'  => array(
375
+            'config'  => array (
376 376
                 'type' => 'text',
377 377
                 'cols' => 40,
378 378
                 'rows' => 15,
@@ -380,19 +380,19 @@  discard block
 block discarded – undo
380 380
                 'enableRichtext' => true,
381 381
             ),
382 382
         ),
383
-        'admin_register_document_notification_subject' => array(
383
+        'admin_register_document_notification_subject' => array (
384 384
             'exclude' => 1,
385 385
             'label'   => 'LLL:EXT:dpf/Resources/Private/Language/locallang_db.xlf:tx_dpf_domain_model_client.admin_register_document_notification_subject',
386
-            'config'  => array(
386
+            'config'  => array (
387 387
                 'type' => 'input',
388 388
                 'size' => 50,
389 389
                 'eval' => 'trim',
390 390
             ),
391 391
         ),
392
-        'admin_register_document_notification_body' => array(
392
+        'admin_register_document_notification_body' => array (
393 393
             'exclude' => 1,
394 394
             'label'   => 'LLL:EXT:dpf/Resources/Private/Language/locallang_db.xlf:tx_dpf_domain_model_client.admin_register_document_notification_body',
395
-            'config'  => array(
395
+            'config'  => array (
396 396
                 'type' => 'text',
397 397
                 'cols' => 40,
398 398
                 'rows' => 15,
@@ -400,19 +400,19 @@  discard block
 block discarded – undo
400 400
                 'enableRichtext' => true,
401 401
             ),
402 402
         ),
403
-        'submitter_new_document_notification_subject' => array(
403
+        'submitter_new_document_notification_subject' => array (
404 404
             'exclude' => 1,
405 405
             'label'   => 'LLL:EXT:dpf/Resources/Private/Language/locallang_db.xlf:tx_dpf_domain_model_client.submitter_new_document_notification_subject',
406
-            'config'  => array(
406
+            'config'  => array (
407 407
                 'type' => 'input',
408 408
                 'size' => 50,
409 409
                 'eval' => 'trim',
410 410
             ),
411 411
         ),
412
-        'submitter_new_document_notification_body' => array(
412
+        'submitter_new_document_notification_body' => array (
413 413
             'exclude' => 1,
414 414
             'label'   => 'LLL:EXT:dpf/Resources/Private/Language/locallang_db.xlf:tx_dpf_domain_model_client.submitter_new_document_notification_body',
415
-            'config'  => array(
415
+            'config'  => array (
416 416
                 'type' => 'text',
417 417
                 'cols' => 40,
418 418
                 'rows' => 15,
@@ -420,19 +420,19 @@  discard block
 block discarded – undo
420 420
                 'enableRichtext' => true,
421 421
             ),
422 422
         ),
423
-        'submitter_ingest_notification_subject' => array(
423
+        'submitter_ingest_notification_subject' => array (
424 424
             'exclude' => 1,
425 425
             'label'   => 'LLL:EXT:dpf/Resources/Private/Language/locallang_db.xlf:tx_dpf_domain_model_client.submitter_ingest_notification_subject',
426
-            'config'  => array(
426
+            'config'  => array (
427 427
                 'type' => 'input',
428 428
                 'size' => 50,
429 429
                 'eval' => 'trim',
430 430
             ),
431 431
         ),
432
-        'submitter_ingest_notification_body' => array(
432
+        'submitter_ingest_notification_body' => array (
433 433
             'exclude' => 1,
434 434
             'label'   => 'LLL:EXT:dpf/Resources/Private/Language/locallang_db.xlf:tx_dpf_domain_model_client.submitter_ingest_notification_body',
435
-            'config'  => array(
435
+            'config'  => array (
436 436
                 'type' => 'text',
437 437
                 'cols' => 40,
438 438
                 'rows' => 15,
Please login to merge, or discard this patch.
Upper-Lower-Casing   +5 added lines, -5 removed lines patch added patch discarded remove patch
@@ -22,7 +22,7 @@  discard block
 block discarded – undo
22 22
         'tstamp'                   => 'tstamp',
23 23
         'crdate'                   => 'crdate',
24 24
         'cruser_id'                => 'cruser_id',
25
-        'versioningWS'             => true,
25
+        'versioningWS'             => TRUE,
26 26
         'languageField'            => 'sys_language_uid',
27 27
         'transOrigPointerField'    => 'l10n_parent',
28 28
         'transOrigDiffSourceField' => 'l10n_diffsource',
@@ -377,7 +377,7 @@  discard block
 block discarded – undo
377 377
                 'cols' => 40,
378 378
                 'rows' => 15,
379 379
                 'eval' => 'trim',
380
-                'enableRichtext' => true,
380
+                'enableRichtext' => TRUE,
381 381
             ),
382 382
         ),
383 383
         'admin_register_document_notification_subject' => array(
@@ -397,7 +397,7 @@  discard block
 block discarded – undo
397 397
                 'cols' => 40,
398 398
                 'rows' => 15,
399 399
                 'eval' => 'trim',
400
-                'enableRichtext' => true,
400
+                'enableRichtext' => TRUE,
401 401
             ),
402 402
         ),
403 403
         'submitter_new_document_notification_subject' => array(
@@ -417,7 +417,7 @@  discard block
 block discarded – undo
417 417
                 'cols' => 40,
418 418
                 'rows' => 15,
419 419
                 'eval' => 'trim',
420
-                'enableRichtext' => true,
420
+                'enableRichtext' => TRUE,
421 421
             ),
422 422
         ),
423 423
         'submitter_ingest_notification_subject' => array(
@@ -437,7 +437,7 @@  discard block
 block discarded – undo
437 437
                 'cols' => 40,
438 438
                 'rows' => 15,
439 439
                 'eval' => 'trim',
440
-                'enableRichtext' => true,
440
+                'enableRichtext' => TRUE,
441 441
             ),
442 442
         ),
443 443
     ),
Please login to merge, or discard this patch.
Configuration/TCA/Overrides/fe_groups.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -23,12 +23,12 @@
 block discarded – undo
23 23
         'config' => array (
24 24
         'type' => 'select',
25 25
         'items' => array (
26
-            array('', ''),
27
-            array(
26
+            array ('', ''),
27
+            array (
28 28
                 'LLL:EXT:dpf/Resources/Private/Language/locallang_db.xlf:tx_dpf_domain_model_feusergroup.kitodo_role_researcher',
29 29
                 \EWW\Dpf\Security\AuthorizationChecker::ROLE_RESEARCHER
30 30
             ),
31
-            array(
31
+            array (
32 32
                 'LLL:EXT:dpf/Resources/Private/Language/locallang_db.xlf:tx_dpf_domain_model_feusergroup.kitodo_role_librarian',
33 33
                 \EWW\Dpf\Security\AuthorizationChecker::ROLE_LIBRARIAN
34 34
             ),
Please login to merge, or discard this patch.
Configuration/TCA/tx_dpf_domain_model_metadatapage.php 1 patch
Spacing   +50 added lines, -50 removed lines patch added patch discarded remove patch
@@ -16,8 +16,8 @@  discard block
 block discarded – undo
16 16
     die('Access denied.');
17 17
 }
18 18
 
19
-return array(
20
-    'ctrl' => array(
19
+return array (
20
+    'ctrl' => array (
21 21
         'title'                    => 'LLL:EXT:dpf/Resources/Private/Language/locallang_db.xlf:tx_dpf_domain_model_metadatapage',
22 22
         'label'                    => 'name',
23 23
         'tstamp'                   => 'tstamp',
@@ -28,7 +28,7 @@  discard block
 block discarded – undo
28 28
         'transOrigPointerField'    => 'l10n_parent',
29 29
         'transOrigDiffSourceField' => 'l10n_diffsource',
30 30
         'delete'                   => 'deleted',
31
-        'enablecolumns'            => array(
31
+        'enablecolumns'            => array (
32 32
             'disabled'  => 'hidden',
33 33
             'starttime' => 'starttime',
34 34
             'endtime'   => 'endtime',
@@ -36,143 +36,143 @@  discard block
 block discarded – undo
36 36
         'searchFields'             => 'name, display_name, page_number, access_restriction_roles, metadata_group',
37 37
         'iconfile'                 => 'EXT:dpf/Resources/Public/Icons/tx_dpf_domain_model_metadatapage.gif',
38 38
     ),
39
-    'interface' => array(
39
+    'interface' => array (
40 40
         'showRecordFieldList' => 'sys_language_uid, l10n_parent, l10n_diffsource, hidden, name, display_name, page_number, access_restriction_roles, metadata_group',
41 41
     ),
42
-    'types'     => array(
43
-        '1' => array('showitem' => 'sys_language_uid, l10n_parent, l10n_diffsource, hidden, --palette--;;1, name, display_name, page_number, access_restriction_roles, metadata_group, --div--;LLL:EXT:frontend/Resources/Private/Language/locallang_ttc.xlf:tabs.access, starttime, endtime'),
42
+    'types'     => array (
43
+        '1' => array ('showitem' => 'sys_language_uid, l10n_parent, l10n_diffsource, hidden, --palette--;;1, name, display_name, page_number, access_restriction_roles, metadata_group, --div--;LLL:EXT:frontend/Resources/Private/Language/locallang_ttc.xlf:tabs.access, starttime, endtime'),
44 44
     ),
45
-    'palettes'  => array(
46
-        '1' => array('showitem' => ''),
45
+    'palettes'  => array (
46
+        '1' => array ('showitem' => ''),
47 47
     ),
48
-    'columns'   => array(
49
-        'sys_language_uid' => array(
48
+    'columns'   => array (
49
+        'sys_language_uid' => array (
50 50
             'exclude' => 1,
51 51
             'label'   => 'LLL:EXT:lang/locallang_general.xlf:LGL.language',
52
-            'config'  => array(
52
+            'config'  => array (
53 53
                 'type'                => 'select',
54 54
                 'renderType'          => 'selectSingle',
55 55
                 'foreign_table'       => 'sys_language',
56 56
                 'foreign_table_where' => 'ORDER BY sys_language.title',
57
-                'items'               => array(
58
-                    array('LLL:EXT:lang/locallang_general.xlf:LGL.allLanguages', -1),
59
-                    array('LLL:EXT:lang/locallang_general.xlf:LGL.default_value', 0),
57
+                'items'               => array (
58
+                    array ('LLL:EXT:lang/locallang_general.xlf:LGL.allLanguages', -1),
59
+                    array ('LLL:EXT:lang/locallang_general.xlf:LGL.default_value', 0),
60 60
                 ),
61 61
             ),
62 62
         ),
63
-        'l10n_parent'      => array(
63
+        'l10n_parent'      => array (
64 64
             'displayCond' => 'FIELD:sys_language_uid:>:0',
65 65
             'exclude'     => 1,
66 66
             'label'       => 'LLL:EXT:lang/locallang_general.xlf:LGL.l18n_parent',
67
-            'config'      => array(
67
+            'config'      => array (
68 68
                 'type'                => 'select',
69 69
                 'renderType'          => 'selectSingle',
70
-                'items'               => array(
71
-                    array('', 0),
70
+                'items'               => array (
71
+                    array ('', 0),
72 72
                 ),
73 73
                 'foreign_table'       => 'tx_dpf_domain_model_metadatapage',
74 74
                 'foreign_table_where' => 'AND tx_dpf_domain_model_metadatapage.pid=###CURRENT_PID### AND tx_dpf_domain_model_metadatapage.sys_language_uid IN (-1,0)',
75 75
             ),
76 76
         ),
77
-        'l10n_diffsource'  => array(
78
-            'config' => array(
77
+        'l10n_diffsource'  => array (
78
+            'config' => array (
79 79
                 'type' => 'passthrough',
80 80
             ),
81 81
         ),
82
-        't3ver_label'      => array(
82
+        't3ver_label'      => array (
83 83
             'label'  => 'LLL:EXT:lang/locallang_general.xlf:LGL.versionLabel',
84
-            'config' => array(
84
+            'config' => array (
85 85
                 'type' => 'input',
86 86
                 'size' => 30,
87 87
                 'max'  => 255,
88 88
             ),
89 89
         ),
90
-        'hidden'           => array(
90
+        'hidden'           => array (
91 91
             'exclude'   => 1,
92 92
             'l10n_mode' => 'exclude',
93 93
             'label'     => 'LLL:EXT:lang/locallang_general.xlf:LGL.hidden',
94
-            'config'    => array(
94
+            'config'    => array (
95 95
                 'type' => 'check',
96 96
             ),
97 97
         ),
98
-        'starttime'        => array(
98
+        'starttime'        => array (
99 99
             'exclude'   => 1,
100 100
             'l10n_mode' => 'mergeIfNotBlank',
101 101
             'label'     => 'LLL:EXT:lang/locallang_general.xlf:LGL.starttime',
102
-            'config'    => array(
102
+            'config'    => array (
103 103
                 'type'     => 'input',
104 104
                 'renderType' => 'inputDateTime',
105 105
                 'size'     => 13,
106 106
                 'eval'     => 'datetime',
107 107
                 'checkbox' => 0,
108 108
                 'default'  => 0,
109
-                'range'    => array(
109
+                'range'    => array (
110 110
                     'lower' => mktime(0, 0, 0, date('m'), date('d'), date('Y')),
111 111
                 ),
112 112
             ),
113 113
         ),
114
-        'endtime'          => array(
114
+        'endtime'          => array (
115 115
             'exclude'   => 1,
116 116
             'l10n_mode' => 'mergeIfNotBlank',
117 117
             'label'     => 'LLL:EXT:lang/locallang_general.xlf:LGL.endtime',
118
-            'config'    => array(
118
+            'config'    => array (
119 119
                 'type'     => 'input',
120 120
                 'renderType' => 'inputDateTime',
121 121
                 'size'     => 13,
122 122
                 'eval'     => 'datetime',
123 123
                 'checkbox' => 0,
124 124
                 'default'  => 0,
125
-                'range'    => array(
125
+                'range'    => array (
126 126
                     'lower' => mktime(0, 0, 0, date('m'), date('d'), date('Y')),
127 127
                 ),
128 128
             ),
129 129
         ),
130
-        'name'             => array(
130
+        'name'             => array (
131 131
             'exclude'   => 1,
132 132
             'l10n_mode' => 'exclude',
133 133
             'label'     => 'LLL:EXT:dpf/Resources/Private/Language/locallang_db.xlf:tx_dpf_domain_model_metadatapage.name',
134
-            'config'    => array(
134
+            'config'    => array (
135 135
                 'type' => 'input',
136 136
                 'size' => 30,
137 137
                 'eval' => 'trim,uniqueInPid',
138 138
             ),
139 139
         ),
140
-        'display_name'     => array(
140
+        'display_name'     => array (
141 141
             'exclude' => 1,
142 142
             'label'   => 'LLL:EXT:dpf/Resources/Private/Language/locallang_db.xlf:tx_dpf_domain_model_metadatapage.display_name',
143
-            'config'  => array(
143
+            'config'  => array (
144 144
                 'type' => 'input',
145 145
                 'size' => 30,
146 146
                 'eval' => 'trim',
147 147
             ),
148 148
         ),
149
-        'page_number'      => array(
149
+        'page_number'      => array (
150 150
             'exclude'   => 1,
151 151
             'l10n_mode' => 'exclude',
152 152
             'label'     => 'LLL:EXT:dpf/Resources/Private/Language/locallang_db.xlf:tx_dpf_domain_model_metadatapage.page_number',
153
-            'config'    => array(
153
+            'config'    => array (
154 154
                 'type' => 'input',
155 155
                 'size' => 4,
156 156
                 'eval' => 'int',
157 157
             ),
158 158
         ),
159
-        'access_restriction_roles' => array(
159
+        'access_restriction_roles' => array (
160 160
             'label' => 'LLL:EXT:dpf/Resources/Private/Language/locallang_db.xlf:tx_dpf_domain_model_metadatapage.access_restriction_roles',
161
-            'config' => array(
161
+            'config' => array (
162 162
                 'type' => 'select',
163 163
                 'size' => 2,
164 164
                 'maxitems' => 2,
165
-                'items' => array(
166
-                    array('LLL:EXT:dpf/Resources/Private/Language/locallang_db.xlf:tx_dpf_domain_model_feusergroup.kitodo_role_researcher', EWW\Dpf\Security\AuthorizationChecker::ROLE_RESEARCHER),
167
-                    array('LLL:EXT:dpf/Resources/Private/Language/locallang_db.xlf:tx_dpf_domain_model_feusergroup.kitodo_role_librarian', EWW\Dpf\Security\AuthorizationChecker::ROLE_LIBRARIAN),
165
+                'items' => array (
166
+                    array ('LLL:EXT:dpf/Resources/Private/Language/locallang_db.xlf:tx_dpf_domain_model_feusergroup.kitodo_role_researcher', EWW\Dpf\Security\AuthorizationChecker::ROLE_RESEARCHER),
167
+                    array ('LLL:EXT:dpf/Resources/Private/Language/locallang_db.xlf:tx_dpf_domain_model_feusergroup.kitodo_role_librarian', EWW\Dpf\Security\AuthorizationChecker::ROLE_LIBRARIAN),
168 168
                 ),
169 169
             ),
170 170
         ),
171
-        'metadata_group'   => array(
171
+        'metadata_group'   => array (
172 172
             'exclude'   => 1,
173 173
             'l10n_mode' => 'exclude',
174 174
             'label'     => 'LLL:EXT:dpf/Resources/Private/Language/locallang_db.xlf:tx_dpf_domain_model_metadatapage.metadata_group',
175
-            'config'    => array(
175
+            'config'    => array (
176 176
                 'type'                => 'select',
177 177
                 'renderType'          => 'selectMultipleSideBySide',
178 178
                 'foreign_table'       => 'tx_dpf_domain_model_metadatagroup',
@@ -182,24 +182,24 @@  discard block
 block discarded – undo
182 182
                 'autoSizeMax'         => 30,
183 183
                 'maxitems'            => 9999,
184 184
                 'multiple'            => 0,
185
-                'wizards'             => array(
185
+                'wizards'             => array (
186 186
                     '_VERTICAL' => 1,
187 187
                 ),
188
-                'fieldControl' => array(
189
-                    'editPopup' => array(
188
+                'fieldControl' => array (
189
+                    'editPopup' => array (
190 190
                         'disabled' => false,
191 191
                     ),
192
-                    'addRecord' => array(
192
+                    'addRecord' => array (
193 193
                         'disabled' => false,
194
-                        'options' =>  array(
194
+                        'options' =>  array (
195 195
                             'setValue' => 'prepend',
196 196
                         ),
197 197
                     ),
198 198
                 ),
199 199
             ),
200 200
         ),
201
-        'documenttype'     => array(
202
-            'config' => array(
201
+        'documenttype'     => array (
202
+            'config' => array (
203 203
                 'type' => 'passthrough',
204 204
             ),
205 205
         ),
Please login to merge, or discard this patch.
Configuration/TCA/tx_dpf_domain_model_metadatagroup.php 1 patch
Spacing   +61 added lines, -61 removed lines patch added patch discarded remove patch
@@ -16,8 +16,8 @@  discard block
 block discarded – undo
16 16
     die('Access denied.');
17 17
 }
18 18
 
19
-return array(
20
-    'ctrl' => array(
19
+return array (
20
+    'ctrl' => array (
21 21
         'title'                    => 'LLL:EXT:dpf/Resources/Private/Language/locallang_db.xlf:tx_dpf_domain_model_metadatagroup',
22 22
         'label'                    => 'name',
23 23
         'tstamp'                   => 'tstamp',
@@ -28,7 +28,7 @@  discard block
 block discarded – undo
28 28
         'transOrigPointerField'    => 'l10n_parent',
29 29
         'transOrigDiffSourceField' => 'l10n_diffsource',
30 30
         'delete'                   => 'deleted',
31
-        'enablecolumns'            => array(
31
+        'enablecolumns'            => array (
32 32
             'disabled'  => 'hidden',
33 33
             'starttime' => 'starttime',
34 34
             'endtime'   => 'endtime',
@@ -36,201 +36,201 @@  discard block
 block discarded – undo
36 36
         'searchFields'             => 'name, display_name, mandatory, mapping_for_reading, mapping, mods_extension_mapping, mods_extension_reference, max_iteration, metadata_object, access_restriction_roles, info_text',
37 37
         'iconfile'                 => 'EXT:dpf/Resources/Public/Icons/tx_dpf_domain_model_metadatagroup.gif',
38 38
     ),
39
-    'interface' => array(
39
+    'interface' => array (
40 40
         'showRecordFieldList' => 'sys_language_uid, l10n_parent, l10n_diffsource, hidden, name, display_name, mandatory, mapping_for_reading, mapping, mods_extension_mapping, mods_extension_reference, max_iteration, metadata_object, access_restriction_roles, info_text',
41 41
     ),
42
-    'types'     => array(
43
-        '1' => array('showitem' => 'sys_language_uid, l10n_parent, l10n_diffsource, hidden, --palette--;;1, name, display_name, mandatory, mapping_for_reading, mapping, mods_extension_mapping, mods_extension_reference, max_iteration, metadata_object, access_restriction_roles, info_text, --div--;LLL:EXT:frontend/Resources/Private/Language/locallang_ttc.xlf:tabs.access, starttime, endtime'),
42
+    'types'     => array (
43
+        '1' => array ('showitem' => 'sys_language_uid, l10n_parent, l10n_diffsource, hidden, --palette--;;1, name, display_name, mandatory, mapping_for_reading, mapping, mods_extension_mapping, mods_extension_reference, max_iteration, metadata_object, access_restriction_roles, info_text, --div--;LLL:EXT:frontend/Resources/Private/Language/locallang_ttc.xlf:tabs.access, starttime, endtime'),
44 44
     ),
45
-    'palettes'  => array(
46
-        '1' => array('showitem' => ''),
45
+    'palettes'  => array (
46
+        '1' => array ('showitem' => ''),
47 47
     ),
48
-    'columns'   => array(
48
+    'columns'   => array (
49 49
 
50
-        'sys_language_uid'         => array(
50
+        'sys_language_uid'         => array (
51 51
             'exclude' => 1,
52 52
             'label'   => 'LLL:EXT:lang/locallang_general.xlf:LGL.language',
53
-            'config'  => array(
53
+            'config'  => array (
54 54
                 'type'                => 'select',
55 55
                 'renderType'          => 'selectSingle',
56 56
                 'foreign_table'       => 'sys_language',
57 57
                 'foreign_table_where' => 'ORDER BY sys_language.title',
58
-                'items'               => array(
59
-                    array('LLL:EXT:lang/locallang_general.xlf:LGL.allLanguages', -1),
60
-                    array('LLL:EXT:lang/locallang_general.xlf:LGL.default_value', 0),
58
+                'items'               => array (
59
+                    array ('LLL:EXT:lang/locallang_general.xlf:LGL.allLanguages', -1),
60
+                    array ('LLL:EXT:lang/locallang_general.xlf:LGL.default_value', 0),
61 61
                 ),
62 62
             ),
63 63
         ),
64
-        'l10n_parent'              => array(
64
+        'l10n_parent'              => array (
65 65
             'displayCond' => 'FIELD:sys_language_uid:>:0',
66 66
             'exclude'     => 1,
67 67
             'label'       => 'LLL:EXT:lang/locallang_general.xlf:LGL.l18n_parent',
68
-            'config'      => array(
68
+            'config'      => array (
69 69
                 'type'                => 'select',
70 70
                 'renderType'          => 'selectSingle',
71
-                'items'               => array(
72
-                    array('', 0),
71
+                'items'               => array (
72
+                    array ('', 0),
73 73
                 ),
74 74
                 'foreign_table'       => 'tx_dpf_domain_model_metadatagroup',
75 75
                 'foreign_table_where' => 'AND tx_dpf_domain_model_metadatagroup.pid=###CURRENT_PID### AND tx_dpf_domain_model_metadatagroup.sys_language_uid IN (-1,0)',
76 76
             ),
77 77
         ),
78
-        'l10n_diffsource'          => array(
79
-            'config' => array(
78
+        'l10n_diffsource'          => array (
79
+            'config' => array (
80 80
                 'type' => 'passthrough',
81 81
             ),
82 82
         ),
83 83
 
84
-        't3ver_label'              => array(
84
+        't3ver_label'              => array (
85 85
             'label'  => 'LLL:EXT:lang/locallang_general.xlf:LGL.versionLabel',
86
-            'config' => array(
86
+            'config' => array (
87 87
                 'type' => 'input',
88 88
                 'size' => 30,
89 89
                 'max'  => 255,
90 90
             ),
91 91
         ),
92 92
 
93
-        'hidden'                   => array(
93
+        'hidden'                   => array (
94 94
             'exclude'   => 1,
95 95
             'l10n_mode' => 'exclude',
96 96
             'label'     => 'LLL:EXT:lang/locallang_general.xlf:LGL.hidden',
97
-            'config'    => array(
97
+            'config'    => array (
98 98
                 'type' => 'check',
99 99
             ),
100 100
         ),
101
-        'starttime'                => array(
101
+        'starttime'                => array (
102 102
             'exclude'   => 1,
103 103
             'l10n_mode' => 'mergeIfNotBlank',
104 104
             'label'     => 'LLL:EXT:lang/locallang_general.xlf:LGL.starttime',
105
-            'config'    => array(
105
+            'config'    => array (
106 106
                 'type'     => 'input',
107 107
                 'renderType' => 'inputDateTime',
108 108
                 'size'     => 13,
109 109
                 'eval'     => 'datetime',
110 110
                 'checkbox' => 0,
111 111
                 'default'  => 0,
112
-                'range'    => array(
112
+                'range'    => array (
113 113
                     'lower' => mktime(0, 0, 0, date('m'), date('d'), date('Y')),
114 114
                 ),
115 115
             ),
116 116
         ),
117
-        'endtime'                  => array(
117
+        'endtime'                  => array (
118 118
             'exclude'   => 1,
119 119
             'l10n_mode' => 'mergeIfNotBlank',
120 120
             'label'     => 'LLL:EXT:lang/locallang_general.xlf:LGL.endtime',
121
-            'config'    => array(
121
+            'config'    => array (
122 122
                 'type'     => 'input',
123 123
                 'renderType' => 'inputDateTime',
124 124
                 'size'     => 13,
125 125
                 'eval'     => 'datetime',
126 126
                 'checkbox' => 0,
127 127
                 'default'  => 0,
128
-                'range'    => array(
128
+                'range'    => array (
129 129
                     'lower' => mktime(0, 0, 0, date('m'), date('d'), date('Y')),
130 130
                 ),
131 131
             ),
132 132
         ),
133 133
 
134
-        'name'                     => array(
134
+        'name'                     => array (
135 135
             'exclude'   => 1,
136 136
             'l10n_mode' => 'exclude',
137 137
             'label'     => 'LLL:EXT:dpf/Resources/Private/Language/locallang_db.xlf:tx_dpf_domain_model_metadatagroup.name',
138
-            'config'    => array(
138
+            'config'    => array (
139 139
                 'type' => 'input',
140 140
                 'size' => 30,
141 141
                 'eval' => 'trim,uniqueInPid',
142 142
             ),
143 143
         ),
144
-        'display_name'             => array(
144
+        'display_name'             => array (
145 145
             'exclude' => 1,
146 146
             'label'   => 'LLL:EXT:dpf/Resources/Private/Language/locallang_db.xlf:tx_dpf_domain_model_metadatagroup.display_name',
147
-            'config'  => array(
147
+            'config'  => array (
148 148
                 'type' => 'input',
149 149
                 'size' => 30,
150 150
                 'eval' => 'trim',
151 151
             ),
152 152
         ),
153
-        'mandatory'                => array(
153
+        'mandatory'                => array (
154 154
             'exclude'   => 1,
155 155
             'l10n_mode' => 'exclude',
156 156
             'label'     => 'LLL:EXT:dpf/Resources/Private/Language/locallang_db.xlf:tx_dpf_domain_model_metadatagroup.mandatory',
157
-            'config'    => array(
157
+            'config'    => array (
158 158
                 'type' => 'select',
159 159
                 'size' => 1,
160 160
                 'maxitems' => 1,
161
-                'items' => array(
162
-                    array('',''),
163
-                    array('LLL:EXT:dpf/Resources/Private/Language/locallang_db.xlf:tx_dpf_domain_model_metadatagroup.mandatory_yes','1'),
164
-                    array('LLL:EXT:dpf/Resources/Private/Language/locallang_db.xlf:tx_dpf_domain_model_metadatagroup.mandatory_file_only','FILE_ONLY'),
161
+                'items' => array (
162
+                    array ('', ''),
163
+                    array ('LLL:EXT:dpf/Resources/Private/Language/locallang_db.xlf:tx_dpf_domain_model_metadatagroup.mandatory_yes', '1'),
164
+                    array ('LLL:EXT:dpf/Resources/Private/Language/locallang_db.xlf:tx_dpf_domain_model_metadatagroup.mandatory_file_only', 'FILE_ONLY'),
165 165
                 ),
166 166
             ),
167 167
         ),
168
-        'mapping_for_reading'      => array(
168
+        'mapping_for_reading'      => array (
169 169
             'exclude'   => 1,
170 170
             'l10n_mode' => 'exclude',
171 171
             'label'     => 'LLL:EXT:dpf/Resources/Private/Language/locallang_db.xlf:tx_dpf_domain_model_metadatagroup.mapping_for_reading',
172
-            'config'    => array(
172
+            'config'    => array (
173 173
                 'type' => 'input',
174 174
                 'size' => 30,
175 175
                 'eval' => 'trim',
176 176
             ),
177 177
         ),
178
-        'mapping'                  => array(
178
+        'mapping'                  => array (
179 179
             'exclude'   => 1,
180 180
             'l10n_mode' => 'exclude',
181 181
             'label'     => 'LLL:EXT:dpf/Resources/Private/Language/locallang_db.xlf:tx_dpf_domain_model_metadatagroup.mapping',
182
-            'config'    => array(
182
+            'config'    => array (
183 183
                 'type' => 'input',
184 184
                 'size' => 30,
185 185
                 'eval' => 'trim',
186 186
             ),
187 187
         ),
188
-        'mods_extension_mapping'   => array(
188
+        'mods_extension_mapping'   => array (
189 189
             'exclude'   => 1,
190 190
             'l10n_mode' => 'exclude',
191 191
             'label'     => 'LLL:EXT:dpf/Resources/Private/Language/locallang_db.xlf:tx_dpf_domain_model_metadatagroup.mods_extension_mapping',
192
-            'config'    => array(
192
+            'config'    => array (
193 193
                 'type' => 'input',
194 194
                 'size' => 30,
195 195
                 'eval' => 'trim',
196 196
             ),
197 197
         ),
198
-        'mods_extension_reference' => array(
198
+        'mods_extension_reference' => array (
199 199
             'exclude'   => 1,
200 200
             'l10n_mode' => 'exclude',
201 201
             'label'     => 'LLL:EXT:dpf/Resources/Private/Language/locallang_db.xlf:tx_dpf_domain_model_metadatagroup.mods_extension_reference',
202
-            'config'    => array(
202
+            'config'    => array (
203 203
                 'type' => 'input',
204 204
                 'size' => 30,
205 205
                 'eval' => 'trim',
206 206
             ),
207 207
         ),
208
-        'max_iteration'            => array(
208
+        'max_iteration'            => array (
209 209
             'exclude'   => 1,
210 210
             'l10n_mode' => 'exclude',
211 211
             'label'     => 'LLL:EXT:dpf/Resources/Private/Language/locallang_db.xlf:tx_dpf_domain_model_metadatagroup.max_iteration',
212
-            'config'    => array(
212
+            'config'    => array (
213 213
                 'type' => 'input',
214 214
                 'size' => 4,
215 215
                 'eval' => 'int',
216 216
             ),
217 217
         ),
218
-        'access_restriction_roles' => array(
218
+        'access_restriction_roles' => array (
219 219
             'label' => 'LLL:EXT:dpf/Resources/Private/Language/locallang_db.xlf:tx_dpf_domain_model_metadatagroup.access_restriction_roles',
220
-            'config' => array(
220
+            'config' => array (
221 221
                 'type' => 'select',
222 222
                 'size' => 2,
223 223
                 'maxitems' => 2,
224
-                'items' => array(
225
-                    array('LLL:EXT:dpf/Resources/Private/Language/locallang_db.xlf:tx_dpf_domain_model_feusergroup.kitodo_role_researcher', EWW\Dpf\Security\AuthorizationChecker::ROLE_RESEARCHER),
226
-                    array('LLL:EXT:dpf/Resources/Private/Language/locallang_db.xlf:tx_dpf_domain_model_feusergroup.kitodo_role_librarian', EWW\Dpf\Security\AuthorizationChecker::ROLE_LIBRARIAN),
224
+                'items' => array (
225
+                    array ('LLL:EXT:dpf/Resources/Private/Language/locallang_db.xlf:tx_dpf_domain_model_feusergroup.kitodo_role_researcher', EWW\Dpf\Security\AuthorizationChecker::ROLE_RESEARCHER),
226
+                    array ('LLL:EXT:dpf/Resources/Private/Language/locallang_db.xlf:tx_dpf_domain_model_feusergroup.kitodo_role_librarian', EWW\Dpf\Security\AuthorizationChecker::ROLE_LIBRARIAN),
227 227
                 ),
228 228
             ),
229 229
         ),
230
-        'info_text'                => array(
230
+        'info_text'                => array (
231 231
             'exclude' => 1,
232 232
             'label'   => 'LLL:EXT:dpf/Resources/Private/Language/locallang_db.xlf:tx_dpf_domain_model_metadatagroup.info_text',
233
-            'config'  => array(
233
+            'config'  => array (
234 234
                 'type' => 'text',
235 235
                 'cols' => 40,
236 236
                 'rows' => 15,
@@ -238,24 +238,24 @@  discard block
 block discarded – undo
238 238
                 'enableRichtext' => true,
239 239
             ),
240 240
         ),
241
-        'metadata_object'          => array(
241
+        'metadata_object'          => array (
242 242
             'exclude'   => 1,
243 243
             'l10n_mode' => 'exclude',
244 244
             'label'     => 'LLL:EXT:dpf/Resources/Private/Language/locallang_db.xlf:tx_dpf_domain_model_metadatagroup.metadata_object',
245
-            'config'    => array(
245
+            'config'    => array (
246 246
                 'type'           => 'inline',
247 247
                 'foreign_table'  => 'tx_dpf_domain_model_metadataobject',
248 248
                 'foreign_field'  => 'metadatagroup',
249 249
                 'foreign_label'  => 'display_name',
250 250
                 'foreign_sortby' => 'sorting',
251
-                'behaviour'      => array(
251
+                'behaviour'      => array (
252 252
                     'disableMovingChildrenWithParent' => 1,
253 253
                 ),
254 254
                 'size'           => 10,
255 255
                 'autoSizeMax'    => 30,
256 256
                 'maxitems'       => 9999,
257 257
                 'multiple'       => 0,
258
-                'appearance'     => array(
258
+                'appearance'     => array (
259 259
                     'collapseAll'                     => 1,
260 260
                     'levelLinksPosition'              => 'top',
261 261
                     'showSynchronizationLink'         => 1,
Please login to merge, or discard this patch.
Classes/ViewHelpers/CanAccessViewHelper.php 2 patches
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -30,7 +30,7 @@  discard block
 block discarded – undo
30 30
      * @param string $class : Model class name, in case of parameter 2 is a UID.
31 31
      * @return bool
32 32
      */
33
-    public function render($attribute, $subject, $class="EWW\\Dpf\\Domain\\Model\\Document")
33
+    public function render($attribute, $subject, $class = "EWW\\Dpf\\Domain\\Model\\Document")
34 34
     {
35 35
         $objectManager = GeneralUtility::makeInstance(ObjectManager::class);
36 36
         $authorizationChecker = $objectManager->get(AuthorizationChecker::class);
@@ -54,7 +54,7 @@  discard block
 block discarded – undo
54 54
             list($class, $uid) = explode(":", $subject);
55 55
         }
56 56
 
57
-        $repositoryClass = str_replace("Model", "Repository", $class)."Repository";
57
+        $repositoryClass = str_replace("Model", "Repository", $class) . "Repository";
58 58
         $repository = $objectManager->get($repositoryClass);
59 59
 
60 60
         if ($repository) {
Please login to merge, or discard this patch.
Braces   +2 added lines, -4 removed lines patch added patch discarded remove patch
@@ -20,8 +20,7 @@  discard block
 block discarded – undo
20 20
 use EWW\Dpf\Domain\Repository\DocumentRepository;
21 21
 use EWW\Dpf\Security\AuthorizationChecker;
22 22
 
23
-class CanAccessViewHelper extends AbstractViewHelper
24
-{
23
+class CanAccessViewHelper extends AbstractViewHelper {
25 24
     /**
26 25
      * Checks if access can be granted for the given attribute and subject.
27 26
      *
@@ -30,8 +29,7 @@  discard block
 block discarded – undo
30 29
      * @param string $class : Model class name, in case of parameter 2 is a UID.
31 30
      * @return bool
32 31
      */
33
-    public function render($attribute, $subject, $class="EWW\\Dpf\\Domain\\Model\\Document")
34
-    {
32
+    public function render($attribute, $subject, $class="EWW\\Dpf\\Domain\\Model\\Document") {
35 33
         $objectManager = GeneralUtility::makeInstance(ObjectManager::class);
36 34
         $authorizationChecker = $objectManager->get(AuthorizationChecker::class);
37 35
 
Please login to merge, or discard this patch.