@@ -16,8 +16,8 @@ discard block |
||
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 |
||
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,74 +36,74 @@ discard block |
||
36 | 36 | 'searchFields' => 'name, display_name, max_iteration, mandatory, data_type, validation, mapping, mods_extension, json_mapping, input_field, deposit_license, max_input_length, input_option_list, fill_out_service, gnd_field_uid, default_value, access_restriction_roles, consent, embargo, fis_person_mapping, fis_organisation_mapping, gnd_person_mapping, gnd_organisation_mapping, ror_mapping, zdb_mapping, unpaywall_mapping, orcid_person_mapping, help_text, object_type', |
37 | 37 | 'iconfile' => 'EXT:dpf/Resources/Public/Icons/default.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, json_mapping, input_field, deposit_license, max_input_length, input_option_list, fill_out_service, gnd_field_uid, default_value, access_restriction_roles, consent, embargo, fis_person_mapping, fis_organisation_mapping, gnd_person_mapping, gnd_organisation_mapping, ror_mapping, zdb_mapping, unpaywall_mapping, orcid_person_mapping, help_text, object_type', |
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, json_mapping, input_field, deposit_license, max_input_length, input_option_list, fill_out_service, gnd_field_uid, default_value, access_restriction_roles, consent, embargo, fis_person_mapping, fis_organisation_mapping, gnd_person_mapping, gnd_organisation_mapping, ror_mapping, zdb_mapping, unpaywall_mapping, orcid_person_mapping, help_text, object_type, --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, json_mapping, input_field, deposit_license, max_input_length, input_option_list, fill_out_service, gnd_field_uid, default_value, access_restriction_roles, consent, embargo, fis_person_mapping, fis_organisation_mapping, gnd_person_mapping, gnd_organisation_mapping, ror_mapping, zdb_mapping, unpaywall_mapping, orcid_person_mapping, help_text, object_type, --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 | 'default' => 0, |
63 | 63 | ), |
64 | 64 | ), |
65 | - 'l10n_parent' => array( |
|
65 | + 'l10n_parent' => array ( |
|
66 | 66 | 'displayCond' => 'FIELD:sys_language_uid:>:0', |
67 | 67 | 'exclude' => 1, |
68 | 68 | 'label' => 'LLL:EXT:lang/locallang_general.xlf:LGL.l18n_parent', |
69 | - 'config' => array( |
|
69 | + 'config' => array ( |
|
70 | 70 | 'type' => 'select', |
71 | 71 | 'renderType' => 'selectSingle', |
72 | - 'items' => array( |
|
73 | - array('', 0), |
|
72 | + 'items' => array ( |
|
73 | + array ('', 0), |
|
74 | 74 | ), |
75 | 75 | 'foreign_table' => 'tx_dpf_domain_model_metadataobject', |
76 | 76 | 'foreign_table_where' => 'AND tx_dpf_domain_model_metadataobject.pid=###CURRENT_PID### AND tx_dpf_domain_model_metadataobject.sys_language_uid IN (-1,0)', |
77 | 77 | ), |
78 | 78 | ), |
79 | - 'l10n_diffsource' => array( |
|
80 | - 'config' => array( |
|
79 | + 'l10n_diffsource' => array ( |
|
80 | + 'config' => array ( |
|
81 | 81 | 'type' => 'passthrough', |
82 | 82 | ), |
83 | 83 | ), |
84 | 84 | |
85 | - 't3ver_label' => array( |
|
85 | + 't3ver_label' => array ( |
|
86 | 86 | 'label' => 'LLL:EXT:lang/locallang_general.xlf:LGL.versionLabel', |
87 | - 'config' => array( |
|
87 | + 'config' => array ( |
|
88 | 88 | 'type' => 'input', |
89 | 89 | 'size' => 30, |
90 | 90 | 'max' => 255, |
91 | 91 | ), |
92 | 92 | ), |
93 | 93 | |
94 | - 'hidden' => array( |
|
94 | + 'hidden' => array ( |
|
95 | 95 | 'exclude' => 1, |
96 | 96 | 'l10n_mode' => 'exclude', |
97 | 97 | 'label' => 'LLL:EXT:lang/locallang_general.xlf:LGL.hidden', |
98 | - 'config' => array( |
|
98 | + 'config' => array ( |
|
99 | 99 | 'type' => 'check', |
100 | 100 | ), |
101 | 101 | ), |
102 | - 'starttime' => array( |
|
102 | + 'starttime' => array ( |
|
103 | 103 | 'exclude' => 1, |
104 | 104 | 'label' => 'LLL:EXT:lang/locallang_general.xlf:LGL.starttime', |
105 | - 'config' => array( |
|
106 | - 'behaviour' => array( |
|
105 | + 'config' => array ( |
|
106 | + 'behaviour' => array ( |
|
107 | 107 | 'allowLanguageSynchronization' => true |
108 | 108 | ), |
109 | 109 | 'type' => 'input', |
@@ -112,16 +112,16 @@ discard block |
||
112 | 112 | 'eval' => 'datetime', |
113 | 113 | 'checkbox' => 0, |
114 | 114 | 'default' => 0, |
115 | - 'range' => array( |
|
115 | + 'range' => array ( |
|
116 | 116 | 'lower' => mktime(0, 0, 0, date('m'), date('d'), date('Y')), |
117 | 117 | ), |
118 | 118 | ), |
119 | 119 | ), |
120 | - 'endtime' => array( |
|
120 | + 'endtime' => array ( |
|
121 | 121 | 'exclude' => 1, |
122 | 122 | 'label' => 'LLL:EXT:lang/locallang_general.xlf:LGL.endtime', |
123 | - 'config' => array( |
|
124 | - 'behaviour' => array( |
|
123 | + 'config' => array ( |
|
124 | + 'behaviour' => array ( |
|
125 | 125 | 'allowLanguageSynchronization' => true |
126 | 126 | ), |
127 | 127 | 'type' => 'input', |
@@ -130,173 +130,173 @@ discard block |
||
130 | 130 | 'eval' => 'datetime', |
131 | 131 | 'checkbox' => 0, |
132 | 132 | 'default' => 0, |
133 | - 'range' => array( |
|
133 | + 'range' => array ( |
|
134 | 134 | 'lower' => mktime(0, 0, 0, date('m'), date('d'), date('Y')), |
135 | 135 | ), |
136 | 136 | ), |
137 | 137 | ), |
138 | 138 | |
139 | - 'name' => array( |
|
139 | + 'name' => array ( |
|
140 | 140 | 'exclude' => 1, |
141 | 141 | 'l10n_mode' => 'exclude', |
142 | 142 | 'label' => 'LLL:EXT:dpf/Resources/Private/Language/locallang_db.xlf:tx_dpf_domain_model_metadataobject.name', |
143 | - 'config' => array( |
|
143 | + 'config' => array ( |
|
144 | 144 | 'type' => 'input', |
145 | 145 | 'size' => 30, |
146 | 146 | 'eval' => 'trim', |
147 | 147 | ), |
148 | 148 | ), |
149 | - 'display_name' => array( |
|
149 | + 'display_name' => array ( |
|
150 | 150 | 'exclude' => 1, |
151 | 151 | 'label' => 'LLL:EXT:dpf/Resources/Private/Language/locallang_db.xlf:tx_dpf_domain_model_metadataobject.display_name', |
152 | - 'config' => array( |
|
152 | + 'config' => array ( |
|
153 | 153 | 'type' => 'input', |
154 | 154 | 'size' => 30, |
155 | 155 | 'eval' => 'trim', |
156 | 156 | ), |
157 | 157 | ), |
158 | - 'max_iteration' => array( |
|
158 | + 'max_iteration' => array ( |
|
159 | 159 | 'exclude' => 1, |
160 | 160 | 'l10n_mode' => 'exclude', |
161 | 161 | 'label' => 'LLL:EXT:dpf/Resources/Private/Language/locallang_db.xlf:tx_dpf_domain_model_metadataobject.max_iteration', |
162 | - 'config' => array( |
|
162 | + 'config' => array ( |
|
163 | 163 | 'type' => 'input', |
164 | 164 | 'size' => 4, |
165 | 165 | 'eval' => 'int', |
166 | 166 | ), |
167 | 167 | ), |
168 | - 'mandatory' => array( |
|
168 | + 'mandatory' => 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_metadataobject.mandatory', |
172 | - 'config' => array( |
|
172 | + 'config' => array ( |
|
173 | 173 | 'type' => 'select', |
174 | 174 | 'renderType' => 'selectSingle', |
175 | 175 | 'size' => 1, |
176 | 176 | 'maxitems' => 1, |
177 | - 'items' => array( |
|
178 | - array('',''), |
|
179 | - array('LLL:EXT:dpf/Resources/Private/Language/locallang_db.xlf:tx_dpf_domain_model_metadataobject.mandatory_yes', \EWW\Dpf\Domain\Model\MetadataMandatoryInterface::MANDATORY), |
|
180 | - array('LLL:EXT:dpf/Resources/Private/Language/locallang_db.xlf:tx_dpf_domain_model_metadataobject.mandatory_file_only', \EWW\Dpf\Domain\Model\MetadataMandatoryInterface::MANDATORY_FILE_ONLY), |
|
177 | + 'items' => array ( |
|
178 | + array ('', ''), |
|
179 | + array ('LLL:EXT:dpf/Resources/Private/Language/locallang_db.xlf:tx_dpf_domain_model_metadataobject.mandatory_yes', \EWW\Dpf\Domain\Model\MetadataMandatoryInterface::MANDATORY), |
|
180 | + array ('LLL:EXT:dpf/Resources/Private/Language/locallang_db.xlf:tx_dpf_domain_model_metadataobject.mandatory_file_only', \EWW\Dpf\Domain\Model\MetadataMandatoryInterface::MANDATORY_FILE_ONLY), |
|
181 | 181 | ), |
182 | 182 | ), |
183 | 183 | ), |
184 | - 'mapping' => array( |
|
184 | + 'mapping' => array ( |
|
185 | 185 | 'exclude' => 1, |
186 | 186 | 'l10n_mode' => 'exclude', |
187 | 187 | 'label' => 'LLL:EXT:dpf/Resources/Private/Language/locallang_db.xlf:tx_dpf_domain_model_metadataobject.mapping', |
188 | - 'config' => array( |
|
188 | + 'config' => array ( |
|
189 | 189 | 'type' => 'input', |
190 | 190 | 'size' => 30, |
191 | 191 | 'eval' => 'trim', |
192 | 192 | ), |
193 | 193 | ), |
194 | - 'json_mapping' => array( |
|
194 | + 'json_mapping' => array ( |
|
195 | 195 | 'exclude' => 1, |
196 | 196 | 'l10n_mode' => 'exclude', |
197 | 197 | 'label' => 'LLL:EXT:dpf/Resources/Private/Language/locallang_db.xlf:tx_dpf_domain_model_metadataobject.json_mapping', |
198 | - 'config' => array( |
|
198 | + 'config' => array ( |
|
199 | 199 | 'type' => 'input', |
200 | 200 | 'size' => 30, |
201 | 201 | 'eval' => 'trim', |
202 | 202 | ), |
203 | 203 | ), |
204 | - 'data_type' => array( |
|
204 | + 'data_type' => array ( |
|
205 | 205 | 'exclude' => 1, |
206 | 206 | 'l10n_mode' => 'exclude', |
207 | 207 | 'label' => 'LLL:EXT:dpf/Resources/Private/Language/locallang_db.xlf:tx_dpf_domain_model_metadataobject.data_type', |
208 | - 'config' => array( |
|
208 | + 'config' => array ( |
|
209 | 209 | 'type' => 'select', |
210 | 210 | 'renderType' => 'selectSingle', |
211 | - 'items' => array( |
|
212 | - array('', ''), |
|
213 | - 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), |
|
214 | - 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), |
|
211 | + 'items' => array ( |
|
212 | + array ('', ''), |
|
213 | + 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), |
|
214 | + 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), |
|
215 | 215 | ), |
216 | 216 | 'size' => 1, |
217 | 217 | 'maxitems' => 1, |
218 | 218 | 'eval' => '', |
219 | 219 | ), |
220 | 220 | ), |
221 | - 'validation' => array( |
|
221 | + 'validation' => array ( |
|
222 | 222 | 'exclude' => 1, |
223 | 223 | 'l10n_mode' => 'exclude', |
224 | 224 | 'label' => 'LLL:EXT:dpf/Resources/Private/Language/locallang_db.xlf:tx_dpf_domain_model_metadataobject.validation', |
225 | - 'config' => array( |
|
225 | + 'config' => array ( |
|
226 | 226 | 'type' => 'input', |
227 | 227 | 'size' => 30, |
228 | 228 | 'eval' => 'trim', |
229 | 229 | ), |
230 | 230 | ), |
231 | - 'mods_extension' => array( |
|
231 | + 'mods_extension' => array ( |
|
232 | 232 | 'exclude' => 1, |
233 | 233 | 'l10n_mode' => 'exclude', |
234 | 234 | 'label' => 'LLL:EXT:dpf/Resources/Private/Language/locallang_db.xlf:tx_dpf_domain_model_metadataobject.mods_extension', |
235 | - 'config' => array( |
|
235 | + 'config' => array ( |
|
236 | 236 | 'type' => 'check', |
237 | 237 | 'default' => 0, |
238 | 238 | ), |
239 | 239 | ), |
240 | - 'access_restriction_roles' => array( |
|
240 | + 'access_restriction_roles' => array ( |
|
241 | 241 | 'label' => 'LLL:EXT:dpf/Resources/Private/Language/locallang_db.xlf:tx_dpf_domain_model_metadataobject.access_restriction_roles', |
242 | - 'config' => array( |
|
242 | + 'config' => array ( |
|
243 | 243 | 'type' => 'select', |
244 | 244 | 'renderType' => 'selectMultipleSideBySide', |
245 | 245 | 'size' => 2, |
246 | 246 | 'maxitems' => 2, |
247 | - 'items' => array( |
|
248 | - array('LLL:EXT:dpf/Resources/Private/Language/locallang_db.xlf:tx_dpf_domain_model_feusergroup.kitodo_role_researcher', EWW\Dpf\Security\Security::ROLE_RESEARCHER), |
|
249 | - array('LLL:EXT:dpf/Resources/Private/Language/locallang_db.xlf:tx_dpf_domain_model_feusergroup.kitodo_role_librarian', EWW\Dpf\Security\Security::ROLE_LIBRARIAN), |
|
247 | + 'items' => array ( |
|
248 | + array ('LLL:EXT:dpf/Resources/Private/Language/locallang_db.xlf:tx_dpf_domain_model_feusergroup.kitodo_role_researcher', EWW\Dpf\Security\Security::ROLE_RESEARCHER), |
|
249 | + array ('LLL:EXT:dpf/Resources/Private/Language/locallang_db.xlf:tx_dpf_domain_model_feusergroup.kitodo_role_librarian', EWW\Dpf\Security\Security::ROLE_LIBRARIAN), |
|
250 | 250 | ), |
251 | 251 | ), |
252 | 252 | ), |
253 | - 'consent' => array( |
|
253 | + 'consent' => array ( |
|
254 | 254 | 'exclude' => 1, |
255 | 255 | 'l10n_mode' => 'exclude', |
256 | 256 | 'label' => 'LLL:EXT:dpf/Resources/Private/Language/locallang_db.xlf:tx_dpf_domain_model_metadataobject.consent', |
257 | - 'config' => array( |
|
257 | + 'config' => array ( |
|
258 | 258 | 'type' => 'check', |
259 | 259 | 'default' => 0, |
260 | 260 | ), |
261 | 261 | ), |
262 | - 'input_field' => array( |
|
262 | + 'input_field' => array ( |
|
263 | 263 | 'onChange' => 'reload', |
264 | 264 | 'exclude' => 1, |
265 | 265 | 'l10n_mode' => 'exclude', |
266 | 266 | 'label' => 'LLL:EXT:dpf/Resources/Private/Language/locallang_db.xlf:tx_dpf_domain_model_metadataobject.input_field', |
267 | - 'config' => array( |
|
267 | + 'config' => array ( |
|
268 | 268 | 'type' => 'select', |
269 | 269 | 'renderType' => 'selectSingle', |
270 | - 'items' => array( |
|
271 | - array('LLL:EXT:dpf/Resources/Private/Language/locallang_db.xlf:tx_dpf_domain_model_metadataobject.input_type.input', \EWW\Dpf\Domain\Model\MetadataObject::input), |
|
272 | - array('LLL:EXT:dpf/Resources/Private/Language/locallang_db.xlf:tx_dpf_domain_model_metadataobject.input_type.textarea', \EWW\Dpf\Domain\Model\MetadataObject::textarea), |
|
273 | - array('LLL:EXT:dpf/Resources/Private/Language/locallang_db.xlf:tx_dpf_domain_model_metadataobject.input_type.select', \EWW\Dpf\Domain\Model\MetadataObject::select), |
|
274 | - array('LLL:EXT:dpf/Resources/Private/Language/locallang_db.xlf:tx_dpf_domain_model_metadataobject.input_type.checkbox', \EWW\Dpf\Domain\Model\MetadataObject::checkbox), |
|
275 | - array('LLL:EXT:dpf/Resources/Private/Language/locallang_db.xlf:tx_dpf_domain_model_metadataobject.input_type.hidden', \EWW\Dpf\Domain\Model\MetadataObject::hidden), |
|
276 | - array('LLL:EXT:dpf/Resources/Private/Language/locallang_db.xlf:tx_dpf_domain_model_metadataobject.input_type.inputDropdown', \EWW\Dpf\Domain\Model\MetadataObject::INPUTDROPDOWN), |
|
277 | - array('LLL:EXT:dpf/Resources/Private/Language/locallang_db.xlf:tx_dpf_domain_model_metadataobject.input_type.markdownTextarea', \EWW\Dpf\Domain\Model\MetadataObject::textareaMarkdown), |
|
270 | + 'items' => array ( |
|
271 | + array ('LLL:EXT:dpf/Resources/Private/Language/locallang_db.xlf:tx_dpf_domain_model_metadataobject.input_type.input', \EWW\Dpf\Domain\Model\MetadataObject::input), |
|
272 | + array ('LLL:EXT:dpf/Resources/Private/Language/locallang_db.xlf:tx_dpf_domain_model_metadataobject.input_type.textarea', \EWW\Dpf\Domain\Model\MetadataObject::textarea), |
|
273 | + array ('LLL:EXT:dpf/Resources/Private/Language/locallang_db.xlf:tx_dpf_domain_model_metadataobject.input_type.select', \EWW\Dpf\Domain\Model\MetadataObject::select), |
|
274 | + array ('LLL:EXT:dpf/Resources/Private/Language/locallang_db.xlf:tx_dpf_domain_model_metadataobject.input_type.checkbox', \EWW\Dpf\Domain\Model\MetadataObject::checkbox), |
|
275 | + array ('LLL:EXT:dpf/Resources/Private/Language/locallang_db.xlf:tx_dpf_domain_model_metadataobject.input_type.hidden', \EWW\Dpf\Domain\Model\MetadataObject::hidden), |
|
276 | + array ('LLL:EXT:dpf/Resources/Private/Language/locallang_db.xlf:tx_dpf_domain_model_metadataobject.input_type.inputDropdown', \EWW\Dpf\Domain\Model\MetadataObject::INPUTDROPDOWN), |
|
277 | + array ('LLL:EXT:dpf/Resources/Private/Language/locallang_db.xlf:tx_dpf_domain_model_metadataobject.input_type.markdownTextarea', \EWW\Dpf\Domain\Model\MetadataObject::textareaMarkdown), |
|
278 | 278 | ), |
279 | 279 | 'size' => 1, |
280 | 280 | 'maxitems' => 1, |
281 | 281 | 'eval' => '', |
282 | 282 | ), |
283 | 283 | ), |
284 | - 'deposit_license' => array( |
|
285 | - 'displayCond' => array( |
|
286 | - 'OR' => array( |
|
284 | + 'deposit_license' => array ( |
|
285 | + 'displayCond' => array ( |
|
286 | + 'OR' => array ( |
|
287 | 287 | 'FIELD:input_field:REQ:false', |
288 | - 'FIELD:input_field:=:'.\EWW\Dpf\Domain\Model\MetadataObject::checkbox, |
|
288 | + 'FIELD:input_field:=:' . \EWW\Dpf\Domain\Model\MetadataObject::checkbox, |
|
289 | 289 | ), |
290 | 290 | ), |
291 | 291 | 'exclude' => 1, |
292 | 292 | 'l10n_mode' => 'exclude', |
293 | 293 | 'label' => 'Checkbox Value', |
294 | - 'config' => array( |
|
294 | + 'config' => array ( |
|
295 | 295 | 'type' => 'select', |
296 | 296 | 'renderType' => 'selectSingle', |
297 | 297 | 'foreign_table' => 'tx_dpf_domain_model_depositlicense', |
298 | - 'items' => array( |
|
299 | - array('', 0), |
|
298 | + 'items' => array ( |
|
299 | + array ('', 0), |
|
300 | 300 | ), |
301 | 301 | 'size' => 1, |
302 | 302 | 'maxitems' => 1, |
@@ -304,32 +304,32 @@ discard block |
||
304 | 304 | 'default' => 0, |
305 | 305 | ), |
306 | 306 | ), |
307 | - 'max_input_length' => array( |
|
308 | - 'displayCond' => array( |
|
309 | - 'OR' => array( |
|
307 | + 'max_input_length' => array ( |
|
308 | + 'displayCond' => array ( |
|
309 | + 'OR' => array ( |
|
310 | 310 | 'FIELD:input_field:REQ:false', |
311 | - 'FIELD:input_field:=:'.\EWW\Dpf\Domain\Model\MetadataObject::input, |
|
312 | - 'FIELD:input_field:=:'.\EWW\Dpf\Domain\Model\MetadataObject::textarea, |
|
311 | + 'FIELD:input_field:=:' . \EWW\Dpf\Domain\Model\MetadataObject::input, |
|
312 | + 'FIELD:input_field:=:' . \EWW\Dpf\Domain\Model\MetadataObject::textarea, |
|
313 | 313 | ), |
314 | 314 | ), |
315 | 315 | 'exclude' => 1, |
316 | 316 | 'l10n_mode' => 'exclude', |
317 | 317 | 'label' => 'LLL:EXT:dpf/Resources/Private/Language/locallang_db.xlf:tx_dpf_domain_model_metadataobject.max_input_length', |
318 | - 'config' => array( |
|
318 | + 'config' => array ( |
|
319 | 319 | 'type' => 'input', |
320 | 320 | 'size' => 4, |
321 | 321 | 'eval' => 'trim,number', |
322 | 322 | 'default' => 0, |
323 | 323 | ), |
324 | 324 | ), |
325 | - 'input_option_list' => array( |
|
325 | + 'input_option_list' => array ( |
|
326 | 326 | 'exclude' => 1, |
327 | 327 | 'label' => 'LLL:EXT:dpf/Resources/Private/Language/locallang_db.xlf:tx_dpf_domain_model_metadataobject.input_option_list', |
328 | - 'config' => array( |
|
328 | + 'config' => array ( |
|
329 | 329 | 'type' => 'select', |
330 | 330 | 'renderType' => 'selectSingle', |
331 | - 'items' => array( |
|
332 | - array('', 0), |
|
331 | + 'items' => array ( |
|
332 | + array ('', 0), |
|
333 | 333 | ), |
334 | 334 | 'foreign_table' => 'tx_dpf_domain_model_inputoptionlist', |
335 | 335 | 'foreign_table_where' => ' AND (tx_dpf_domain_model_inputoptionlist.pid=###CURRENT_PID###) AND (tx_dpf_domain_model_inputoptionlist.sys_language_uid = 0)', |
@@ -338,27 +338,27 @@ discard block |
||
338 | 338 | 'default' => 0, |
339 | 339 | ), |
340 | 340 | ), |
341 | - 'default_value' => array( |
|
341 | + 'default_value' => array ( |
|
342 | 342 | 'exclude' => 1, |
343 | 343 | 'label' => 'LLL:EXT:dpf/Resources/Private/Language/locallang_db.xlf:tx_dpf_domain_model_metadataobject.default_value', |
344 | - 'config' => array( |
|
344 | + 'config' => array ( |
|
345 | 345 | 'type' => 'text', |
346 | 346 | 'cols' => 20, |
347 | 347 | 'rows' => 3, |
348 | 348 | 'eval' => 'trim', |
349 | 349 | ), |
350 | 350 | ), |
351 | - 'fill_out_service' => array( |
|
351 | + 'fill_out_service' => array ( |
|
352 | 352 | 'exclude' => 1, |
353 | 353 | 'l10n_mode' => 'exclude', |
354 | 354 | 'label' => 'LLL:EXT:dpf/Resources/Private/Language/locallang_db.xlf:tx_dpf_domain_model_metadataobject.fill_out_service', |
355 | - 'config' => array( |
|
355 | + 'config' => array ( |
|
356 | 356 | 'type' => 'select', |
357 | 357 | 'renderType' => 'selectSingle', |
358 | - 'items' => array( |
|
359 | - array('', 0), |
|
360 | - 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), |
|
361 | - 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), |
|
358 | + 'items' => array ( |
|
359 | + array ('', 0), |
|
360 | + 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), |
|
361 | + 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), |
|
362 | 362 | ), |
363 | 363 | 'size' => 1, |
364 | 364 | 'maxitems' => 1, |
@@ -366,26 +366,26 @@ discard block |
||
366 | 366 | ), |
367 | 367 | 'onChange' => 'reload', |
368 | 368 | ), |
369 | - 'gnd_field_uid' => array( |
|
370 | - 'displayCond' => 'FIELD:fill_out_service:=:'.\EWW\Dpf\Domain\Model\MetadataObject::FILL_OUT_SERVICE_GND, |
|
369 | + 'gnd_field_uid' => array ( |
|
370 | + 'displayCond' => 'FIELD:fill_out_service:=:' . \EWW\Dpf\Domain\Model\MetadataObject::FILL_OUT_SERVICE_GND, |
|
371 | 371 | 'exclude' => 0, |
372 | 372 | 'label' => 'LLL:EXT:dpf/Resources/Private/Language/locallang_db.xlf:tx_dpf_domain_model_metadataobject.gnd_field_uid', |
373 | - 'config' => array( |
|
373 | + 'config' => array ( |
|
374 | 374 | 'type' => 'input', |
375 | 375 | 'size' => 30, |
376 | 376 | 'eval' => 'trim', |
377 | 377 | ), |
378 | 378 | ), |
379 | - 'metadatagroup' => array( |
|
380 | - 'config' => array( |
|
379 | + 'metadatagroup' => array ( |
|
380 | + 'config' => array ( |
|
381 | 381 | 'type' => 'passthrough', |
382 | 382 | ), |
383 | 383 | ), |
384 | - 'embargo' => array( |
|
384 | + 'embargo' => array ( |
|
385 | 385 | 'exclude' => 1, |
386 | 386 | 'l10n_mode' => 'exclude', |
387 | 387 | 'label' => 'LLL:EXT:dpf/Resources/Private/Language/locallang_db.xlf:tx_dpf_domain_model_metadataobject.embargo', |
388 | - 'config' => array( |
|
388 | + 'config' => array ( |
|
389 | 389 | 'type' => 'check', |
390 | 390 | 'default' => 0, |
391 | 391 | ), |
@@ -467,10 +467,10 @@ discard block |
||
467 | 467 | ], |
468 | 468 | ], |
469 | 469 | ], |
470 | - 'help_text' => array( |
|
470 | + 'help_text' => array ( |
|
471 | 471 | 'exclude' => 1, |
472 | 472 | 'label' => 'LLL:EXT:dpf/Resources/Private/Language/locallang_db.xlf:tx_dpf_domain_model_metadataobject.help_text', |
473 | - 'config' => array( |
|
473 | + 'config' => array ( |
|
474 | 474 | 'type' => 'text', |
475 | 475 | 'cols' => 40, |
476 | 476 | 'rows' => 15, |
@@ -23,7 +23,7 @@ discard block |
||
23 | 23 | 'tstamp' => 'tstamp', |
24 | 24 | 'crdate' => 'crdate', |
25 | 25 | 'cruser_id' => 'cruser_id', |
26 | - 'versioningWS' => true, |
|
26 | + 'versioningWS' => TRUE, |
|
27 | 27 | 'languageField' => 'sys_language_uid', |
28 | 28 | 'transOrigPointerField' => 'l10n_parent', |
29 | 29 | 'transOrigDiffSourceField' => 'l10n_diffsource', |
@@ -104,7 +104,7 @@ discard block |
||
104 | 104 | 'label' => 'LLL:EXT:lang/locallang_general.xlf:LGL.starttime', |
105 | 105 | 'config' => array( |
106 | 106 | 'behaviour' => array( |
107 | - 'allowLanguageSynchronization' => true |
|
107 | + 'allowLanguageSynchronization' => TRUE |
|
108 | 108 | ), |
109 | 109 | 'type' => 'input', |
110 | 110 | 'renderType' => 'inputDateTime', |
@@ -122,7 +122,7 @@ discard block |
||
122 | 122 | 'label' => 'LLL:EXT:lang/locallang_general.xlf:LGL.endtime', |
123 | 123 | 'config' => array( |
124 | 124 | 'behaviour' => array( |
125 | - 'allowLanguageSynchronization' => true |
|
125 | + 'allowLanguageSynchronization' => TRUE |
|
126 | 126 | ), |
127 | 127 | 'type' => 'input', |
128 | 128 | 'renderType' => 'inputDateTime', |
@@ -475,7 +475,7 @@ discard block |
||
475 | 475 | 'cols' => 40, |
476 | 476 | 'rows' => 15, |
477 | 477 | 'eval' => 'trim', |
478 | - 'enableRichtext' => true, |
|
478 | + 'enableRichtext' => TRUE, |
|
479 | 479 | ), |
480 | 480 | ), |
481 | 481 | ), |
@@ -132,7 +132,7 @@ discard block |
||
132 | 132 | public function setInputOptions(\EWW\Dpf\Domain\Model\InputOptionList $inputOptionList = null) |
133 | 133 | { |
134 | 134 | |
135 | - $this->inputOptions = array(); |
|
135 | + $this->inputOptions = array (); |
|
136 | 136 | |
137 | 137 | if ($inputOptionList) { |
138 | 138 | $this->inputOptions[''] = ''; |
@@ -314,12 +314,12 @@ discard block |
||
314 | 314 | { |
315 | 315 | if ($this->helpText) { |
316 | 316 | $domDocument = new \DOMDocument(); |
317 | - $domDocument->loadXML("<html>".$this->helpText."</html>"); |
|
317 | + $domDocument->loadXML("<html>" . $this->helpText . "</html>"); |
|
318 | 318 | $xpath = \EWW\Dpf\Helper\XPath::create($domDocument); |
319 | 319 | $nodes = $xpath->query("//p"); |
320 | 320 | if ($nodes->length > 1) { |
321 | 321 | $domDocument->firstChild->removeChild($nodes->item(0)); |
322 | - return str_replace(['<html>','</html>'], '', $domDocument->saveHTML()); |
|
322 | + return str_replace(['<html>', '</html>'], '', $domDocument->saveHTML()); |
|
323 | 323 | } |
324 | 324 | } |
325 | 325 | } |
@@ -328,7 +328,7 @@ discard block |
||
328 | 328 | { |
329 | 329 | if ($this->helpText) { |
330 | 330 | $domDocument = new \DOMDocument(); |
331 | - $domDocument->loadXML("<html>".$this->helpText."</html>"); |
|
331 | + $domDocument->loadXML("<html>" . $this->helpText . "</html>"); |
|
332 | 332 | $xpath = \EWW\Dpf\Helper\XPath::create($domDocument); |
333 | 333 | $nodes = $xpath->query("//p"); |
334 | 334 | if ($nodes->length > 0) { |
@@ -14,8 +14,7 @@ discard block |
||
14 | 14 | * The TYPO3 project - inspiring people to share! |
15 | 15 | */ |
16 | 16 | |
17 | -class DocumentFormField extends AbstractFormElement |
|
18 | -{ |
|
17 | +class DocumentFormField extends AbstractFormElement { |
|
19 | 18 | |
20 | 19 | protected $value; |
21 | 20 | |
@@ -69,13 +68,11 @@ discard block |
||
69 | 68 | */ |
70 | 69 | protected $objectType = ''; |
71 | 70 | |
72 | - public function getValue() |
|
73 | - { |
|
71 | + public function getValue() { |
|
74 | 72 | return $this->value; |
75 | 73 | } |
76 | 74 | |
77 | - public function setValue($value, $defaultValue = '') |
|
78 | - { |
|
75 | + public function setValue($value, $defaultValue = '') { |
|
79 | 76 | |
80 | 77 | $this->hasDefaultValue = !empty($defaultValue); |
81 | 78 | |
@@ -106,13 +103,11 @@ discard block |
||
106 | 103 | } |
107 | 104 | } |
108 | 105 | |
109 | - public function getInputField() |
|
110 | - { |
|
106 | + public function getInputField() { |
|
111 | 107 | return $this->inputField; |
112 | 108 | } |
113 | 109 | |
114 | - public function setInputField($inputField) |
|
115 | - { |
|
110 | + public function setInputField($inputField) { |
|
116 | 111 | $this->inputField = $inputField; |
117 | 112 | } |
118 | 113 | |
@@ -120,8 +115,7 @@ discard block |
||
120 | 115 | * |
121 | 116 | * @return array |
122 | 117 | */ |
123 | - public function getInputOptions() |
|
124 | - { |
|
118 | + public function getInputOptions() { |
|
125 | 119 | return $this->inputOptions; |
126 | 120 | } |
127 | 121 | |
@@ -129,8 +123,7 @@ discard block |
||
129 | 123 | * |
130 | 124 | * @param \EWW\Dpf\Domain\Model\InputOptionList $inputOptionList |
131 | 125 | */ |
132 | - public function setInputOptions(\EWW\Dpf\Domain\Model\InputOptionList $inputOptionList = null) |
|
133 | - { |
|
126 | + public function setInputOptions(\EWW\Dpf\Domain\Model\InputOptionList $inputOptionList = null) { |
|
134 | 127 | |
135 | 128 | $this->inputOptions = array(); |
136 | 129 | |
@@ -150,8 +143,7 @@ discard block |
||
150 | 143 | * |
151 | 144 | * @return string $fillOutService |
152 | 145 | */ |
153 | - public function getFillOutService() |
|
154 | - { |
|
146 | + public function getFillOutService() { |
|
155 | 147 | return $this->fillOutService; |
156 | 148 | } |
157 | 149 | |
@@ -161,8 +153,7 @@ discard block |
||
161 | 153 | * @param string $fillOutService |
162 | 154 | * @return void |
163 | 155 | */ |
164 | - public function setFillOutService($fillOutService) |
|
165 | - { |
|
156 | + public function setFillOutService($fillOutService) { |
|
166 | 157 | $this->fillOutService = $fillOutService; |
167 | 158 | } |
168 | 159 | |
@@ -171,8 +162,7 @@ discard block |
||
171 | 162 | * |
172 | 163 | * @return boolean $consent |
173 | 164 | */ |
174 | - public function getConsent() |
|
175 | - { |
|
165 | + public function getConsent() { |
|
176 | 166 | return $this->consent; |
177 | 167 | } |
178 | 168 | |
@@ -182,23 +172,19 @@ discard block |
||
182 | 172 | * @param boolean $consent |
183 | 173 | * @return void |
184 | 174 | */ |
185 | - public function setConsent($consent) |
|
186 | - { |
|
175 | + public function setConsent($consent) { |
|
187 | 176 | $this->consent = boolval($consent); |
188 | 177 | } |
189 | 178 | |
190 | - public function getHasDefaultValue() |
|
191 | - { |
|
179 | + public function getHasDefaultValue() { |
|
192 | 180 | return $this->hasDefaultValue; |
193 | 181 | } |
194 | 182 | |
195 | - public function getValidation() |
|
196 | - { |
|
183 | + public function getValidation() { |
|
197 | 184 | return $this->validation; |
198 | 185 | } |
199 | 186 | |
200 | - public function setValidation($validation) |
|
201 | - { |
|
187 | + public function setValidation($validation) { |
|
202 | 188 | $this->validation = $validation; |
203 | 189 | } |
204 | 190 | |
@@ -207,8 +193,7 @@ discard block |
||
207 | 193 | * |
208 | 194 | * @return string |
209 | 195 | */ |
210 | - public function getDataType() |
|
211 | - { |
|
196 | + public function getDataType() { |
|
212 | 197 | return $this->dataType; |
213 | 198 | } |
214 | 199 | |
@@ -218,8 +203,7 @@ discard block |
||
218 | 203 | * @param string $dataType |
219 | 204 | * @return void |
220 | 205 | */ |
221 | - public function setDataType($dataType) |
|
222 | - { |
|
206 | + public function setDataType($dataType) { |
|
223 | 207 | $this->dataType = $dataType; |
224 | 208 | } |
225 | 209 | |
@@ -281,8 +265,7 @@ discard block |
||
281 | 265 | /** |
282 | 266 | * @return mixed |
283 | 267 | */ |
284 | - public function getDepositLicense() |
|
285 | - { |
|
268 | + public function getDepositLicense() { |
|
286 | 269 | return $this->depositLicense; |
287 | 270 | } |
288 | 271 | |
@@ -310,8 +293,7 @@ discard block |
||
310 | 293 | $this->helpText = $helpText; |
311 | 294 | } |
312 | 295 | |
313 | - public function getHelpTextLong() |
|
314 | - { |
|
296 | + public function getHelpTextLong() { |
|
315 | 297 | if ($this->helpText) { |
316 | 298 | $domDocument = new \DOMDocument(); |
317 | 299 | $domDocument->loadXML("<html>".$this->helpText."</html>"); |
@@ -324,8 +306,7 @@ discard block |
||
324 | 306 | } |
325 | 307 | } |
326 | 308 | |
327 | - public function getHelpTextShort() |
|
328 | - { |
|
309 | + public function getHelpTextShort() { |
|
329 | 310 | if ($this->helpText) { |
330 | 311 | $domDocument = new \DOMDocument(); |
331 | 312 | $domDocument->loadXML("<html>".$this->helpText."</html>"); |