@@ -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_document', |
| 22 | 22 | 'label' => 'title', |
| 23 | 23 | 'tstamp' => 'tstamp', |
@@ -32,7 +32,7 @@ discard block |
||
| 32 | 32 | 'transOrigPointerField' => 'l10n_parent', |
| 33 | 33 | 'transOrigDiffSourceField' => 'l10n_diffsource', |
| 34 | 34 | 'delete' => 'deleted', |
| 35 | - 'enablecolumns' => array( |
|
| 35 | + 'enablecolumns' => array ( |
|
| 36 | 36 | 'disabled' => 'hidden', |
| 37 | 37 | 'starttime' => 'starttime', |
| 38 | 38 | 'endtime' => 'endtime', |
@@ -40,144 +40,144 @@ discard block |
||
| 40 | 40 | 'searchFields' => 'xml_data,document_type,', |
| 41 | 41 | 'iconfile' => \TYPO3\CMS\Core\Utility\ExtensionManagementUtility::extRelPath('dpf') . 'Resources/Public/Icons/tx_dpf_domain_model_document.gif', |
| 42 | 42 | ), |
| 43 | - 'interface' => array( |
|
| 43 | + 'interface' => array ( |
|
| 44 | 44 | 'showRecordFieldList' => 'sys_language_uid, l10n_parent, l10n_diffsource, hidden, title, authors, xml_data, slub_info_data, document_type, date_issued, process_number, file', |
| 45 | 45 | ), |
| 46 | - 'types' => array( |
|
| 47 | - '1' => array('showitem' => 'sys_language_uid;;;;1-1-1, l10n_parent, l10n_diffsource, hidden;;1, title, authors, xml_data, slub_info_data, document_type, date_issued, process_number, file, --div--;LLL:EXT:cms/locallang_ttc.xlf:tabs.access, starttime, endtime'), |
|
| 46 | + 'types' => array ( |
|
| 47 | + '1' => array ('showitem' => 'sys_language_uid;;;;1-1-1, l10n_parent, l10n_diffsource, hidden;;1, title, authors, xml_data, slub_info_data, document_type, date_issued, process_number, file, --div--;LLL:EXT:cms/locallang_ttc.xlf:tabs.access, starttime, endtime'), |
|
| 48 | 48 | ), |
| 49 | - 'palettes' => array( |
|
| 50 | - '1' => array('showitem' => ''), |
|
| 49 | + 'palettes' => array ( |
|
| 50 | + '1' => array ('showitem' => ''), |
|
| 51 | 51 | ), |
| 52 | - 'columns' => array( |
|
| 52 | + 'columns' => array ( |
|
| 53 | 53 | |
| 54 | - 'sys_language_uid' => array( |
|
| 54 | + 'sys_language_uid' => array ( |
|
| 55 | 55 | 'exclude' => 1, |
| 56 | 56 | 'label' => 'LLL:EXT:lang/locallang_general.xlf:LGL.language', |
| 57 | - 'config' => array( |
|
| 57 | + 'config' => array ( |
|
| 58 | 58 | 'type' => 'select', |
| 59 | 59 | 'renderType' => 'selectSingle', |
| 60 | 60 | 'foreign_table' => 'sys_language', |
| 61 | 61 | 'foreign_table_where' => 'ORDER BY sys_language.title', |
| 62 | - 'items' => array( |
|
| 63 | - array('LLL:EXT:lang/locallang_general.xlf:LGL.allLanguages', -1), |
|
| 64 | - array('LLL:EXT:lang/locallang_general.xlf:LGL.default_value', 0), |
|
| 62 | + 'items' => array ( |
|
| 63 | + array ('LLL:EXT:lang/locallang_general.xlf:LGL.allLanguages', -1), |
|
| 64 | + array ('LLL:EXT:lang/locallang_general.xlf:LGL.default_value', 0), |
|
| 65 | 65 | ), |
| 66 | 66 | ), |
| 67 | 67 | ), |
| 68 | - 'l10n_parent' => array( |
|
| 68 | + 'l10n_parent' => array ( |
|
| 69 | 69 | 'displayCond' => 'FIELD:sys_language_uid:>:0', |
| 70 | 70 | 'exclude' => 1, |
| 71 | 71 | 'label' => 'LLL:EXT:lang/locallang_general.xlf:LGL.l18n_parent', |
| 72 | - 'config' => array( |
|
| 72 | + 'config' => array ( |
|
| 73 | 73 | 'type' => 'select', |
| 74 | 74 | 'renderType' => 'selectSingle', |
| 75 | - 'items' => array( |
|
| 76 | - array('', 0), |
|
| 75 | + 'items' => array ( |
|
| 76 | + array ('', 0), |
|
| 77 | 77 | ), |
| 78 | 78 | 'foreign_table' => 'tx_dpf_domain_model_document', |
| 79 | 79 | 'foreign_table_where' => 'AND tx_dpf_domain_model_document.pid=###CURRENT_PID### AND tx_dpf_domain_model_document.sys_language_uid IN (-1,0)', |
| 80 | 80 | ), |
| 81 | 81 | ), |
| 82 | - 'l10n_diffsource' => array( |
|
| 83 | - 'config' => array( |
|
| 82 | + 'l10n_diffsource' => array ( |
|
| 83 | + 'config' => array ( |
|
| 84 | 84 | 'type' => 'passthrough', |
| 85 | 85 | ), |
| 86 | 86 | ), |
| 87 | 87 | |
| 88 | - 't3ver_label' => array( |
|
| 88 | + 't3ver_label' => array ( |
|
| 89 | 89 | 'label' => 'LLL:EXT:lang/locallang_general.xlf:LGL.versionLabel', |
| 90 | - 'config' => array( |
|
| 90 | + 'config' => array ( |
|
| 91 | 91 | 'type' => 'input', |
| 92 | 92 | 'size' => 30, |
| 93 | 93 | 'max' => 255, |
| 94 | 94 | ), |
| 95 | 95 | ), |
| 96 | 96 | |
| 97 | - 'hidden' => array( |
|
| 97 | + 'hidden' => array ( |
|
| 98 | 98 | 'exclude' => 1, |
| 99 | 99 | 'label' => 'LLL:EXT:lang/locallang_general.xlf:LGL.hidden', |
| 100 | - 'config' => array( |
|
| 100 | + 'config' => array ( |
|
| 101 | 101 | 'type' => 'check', |
| 102 | 102 | ), |
| 103 | 103 | ), |
| 104 | - 'starttime' => array( |
|
| 104 | + 'starttime' => array ( |
|
| 105 | 105 | 'exclude' => 1, |
| 106 | 106 | 'l10n_mode' => 'mergeIfNotBlank', |
| 107 | 107 | 'label' => 'LLL:EXT:lang/locallang_general.xlf:LGL.starttime', |
| 108 | - 'config' => array( |
|
| 108 | + 'config' => array ( |
|
| 109 | 109 | 'type' => 'input', |
| 110 | 110 | 'size' => 13, |
| 111 | 111 | 'max' => 20, |
| 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 | 'l10n_mode' => 'mergeIfNotBlank', |
| 123 | 123 | 'label' => 'LLL:EXT:lang/locallang_general.xlf:LGL.endtime', |
| 124 | - 'config' => array( |
|
| 124 | + 'config' => array ( |
|
| 125 | 125 | 'type' => 'input', |
| 126 | 126 | 'size' => 13, |
| 127 | 127 | 'max' => 20, |
| 128 | 128 | 'eval' => 'datetime', |
| 129 | 129 | 'checkbox' => 0, |
| 130 | 130 | 'default' => 0, |
| 131 | - 'range' => array( |
|
| 131 | + 'range' => array ( |
|
| 132 | 132 | 'lower' => mktime(0, 0, 0, date('m'), date('d'), date('Y')), |
| 133 | 133 | ), |
| 134 | 134 | ), |
| 135 | 135 | ), |
| 136 | 136 | |
| 137 | - 'title' => array( |
|
| 137 | + 'title' => array ( |
|
| 138 | 138 | 'exclude' => 1, |
| 139 | 139 | 'label' => 'LLL:EXT:dpf/Resources/Private/Language/locallang_db.xlf:tx_dpf_domain_model_document.title', |
| 140 | - 'config' => array( |
|
| 140 | + 'config' => array ( |
|
| 141 | 141 | 'type' => 'input', |
| 142 | 142 | 'size' => 30, |
| 143 | 143 | 'eval' => 'trim', |
| 144 | 144 | ), |
| 145 | 145 | ), |
| 146 | 146 | |
| 147 | - 'authors' => array( |
|
| 147 | + 'authors' => array ( |
|
| 148 | 148 | 'exclude' => 1, |
| 149 | 149 | 'label' => 'LLL:EXT:dpf/Resources/Private/Language/locallang_db.xlf:tx_dpf_domain_model_document.authors', |
| 150 | - 'config' => array( |
|
| 150 | + 'config' => array ( |
|
| 151 | 151 | 'type' => 'input', |
| 152 | 152 | 'size' => 30, |
| 153 | 153 | 'eval' => 'trim', |
| 154 | 154 | ), |
| 155 | 155 | ), |
| 156 | 156 | |
| 157 | - 'xml_data' => array( |
|
| 157 | + 'xml_data' => array ( |
|
| 158 | 158 | 'exclude' => 1, |
| 159 | 159 | 'label' => 'LLL:EXT:dpf/Resources/Private/Language/locallang_db.xlf:tx_dpf_domain_model_document.xml_data', |
| 160 | - 'config' => array( |
|
| 160 | + 'config' => array ( |
|
| 161 | 161 | 'type' => 'text', |
| 162 | 162 | 'cols' => 40, |
| 163 | 163 | 'rows' => 15, |
| 164 | 164 | 'eval' => 'trim', |
| 165 | 165 | ), |
| 166 | 166 | ), |
| 167 | - 'slub_info_data' => array( |
|
| 167 | + 'slub_info_data' => array ( |
|
| 168 | 168 | 'exclude' => 1, |
| 169 | 169 | 'label' => 'LLL:EXT:dpf/Resources/Private/Language/locallang_db.xlf:tx_dpf_domain_model_document.slub_info_data', |
| 170 | - 'config' => array( |
|
| 170 | + 'config' => array ( |
|
| 171 | 171 | 'type' => 'text', |
| 172 | 172 | 'cols' => 40, |
| 173 | 173 | 'rows' => 15, |
| 174 | 174 | 'eval' => 'trim', |
| 175 | 175 | ), |
| 176 | 176 | ), |
| 177 | - 'document_type' => array( |
|
| 177 | + 'document_type' => array ( |
|
| 178 | 178 | 'exclude' => 1, |
| 179 | 179 | 'label' => 'LLL:EXT:dpf/Resources/Private/Language/locallang_db.xlf:tx_dpf_domain_model_document.document_type', |
| 180 | - 'config' => array( |
|
| 180 | + 'config' => array ( |
|
| 181 | 181 | 'type' => 'select', |
| 182 | 182 | 'renderType' => 'selectSingle', |
| 183 | 183 | 'foreign_table' => 'tx_dpf_domain_model_documenttype', |
@@ -187,119 +187,119 @@ discard block |
||
| 187 | 187 | ), |
| 188 | 188 | ), |
| 189 | 189 | |
| 190 | - 'crdate' => array( |
|
| 190 | + 'crdate' => array ( |
|
| 191 | 191 | 'exclude' => 0, |
| 192 | 192 | 'label' => 'Creation date', |
| 193 | - 'config' => array( |
|
| 193 | + 'config' => array ( |
|
| 194 | 194 | 'type' => 'none', |
| 195 | 195 | 'format' => 'datetime', |
| 196 | 196 | 'eval' => 'datetime', |
| 197 | 197 | ), |
| 198 | 198 | ), |
| 199 | 199 | |
| 200 | - 'tstamp' => array( |
|
| 200 | + 'tstamp' => array ( |
|
| 201 | 201 | 'exclude' => 0, |
| 202 | 202 | 'label' => 'Timestamp', |
| 203 | - 'config' => array( |
|
| 203 | + 'config' => array ( |
|
| 204 | 204 | 'type' => 'input', |
| 205 | 205 | 'format' => 'datetime', |
| 206 | 206 | 'eval' => 'datetime', |
| 207 | 207 | ), |
| 208 | 208 | ), |
| 209 | 209 | |
| 210 | - 'transfer_status' => array( |
|
| 210 | + 'transfer_status' => array ( |
|
| 211 | 211 | 'exclude' => 0, |
| 212 | 212 | 'label' => 'Transfer Status', |
| 213 | - 'config' => array( |
|
| 213 | + 'config' => array ( |
|
| 214 | 214 | 'type' => 'input', |
| 215 | 215 | 'size' => '30', |
| 216 | 216 | 'eval' => 'trim', |
| 217 | 217 | ), |
| 218 | 218 | ), |
| 219 | 219 | |
| 220 | - 'object_identifier' => array( |
|
| 220 | + 'object_identifier' => array ( |
|
| 221 | 221 | 'exclude' => 0, |
| 222 | 222 | 'label' => 'Object Identifier', |
| 223 | - 'config' => array( |
|
| 223 | + 'config' => array ( |
|
| 224 | 224 | 'type' => 'input', |
| 225 | 225 | 'size' => '30', |
| 226 | 226 | 'eval' => 'trim', |
| 227 | 227 | ), |
| 228 | 228 | ), |
| 229 | 229 | |
| 230 | - 'reserved_object_identifier' => array( |
|
| 230 | + 'reserved_object_identifier' => array ( |
|
| 231 | 231 | 'exclude' => 0, |
| 232 | 232 | 'label' => 'Reserved Object Identifier', |
| 233 | - 'config' => array( |
|
| 233 | + 'config' => array ( |
|
| 234 | 234 | 'type' => 'input', |
| 235 | 235 | 'size' => '30', |
| 236 | 236 | 'eval' => 'trim', |
| 237 | 237 | ), |
| 238 | 238 | ), |
| 239 | 239 | |
| 240 | - 'process_number' => array( |
|
| 240 | + 'process_number' => array ( |
|
| 241 | 241 | 'exclude' => 0, |
| 242 | 242 | 'label' => 'Process Number', |
| 243 | - 'config' => array( |
|
| 243 | + 'config' => array ( |
|
| 244 | 244 | 'type' => 'input', |
| 245 | 245 | 'size' => '30', |
| 246 | 246 | 'eval' => 'trim', |
| 247 | 247 | ), |
| 248 | 248 | ), |
| 249 | 249 | |
| 250 | - 'state' => array( |
|
| 250 | + 'state' => array ( |
|
| 251 | 251 | 'exclude' => 0, |
| 252 | 252 | 'label' => 'Local State', |
| 253 | - 'config' => array( |
|
| 253 | + 'config' => array ( |
|
| 254 | 254 | 'type' => 'input', |
| 255 | 255 | 'size' => '30', |
| 256 | 256 | 'eval' => 'trim', |
| 257 | 257 | ), |
| 258 | 258 | ), |
| 259 | 259 | |
| 260 | - 'changed' => array( |
|
| 260 | + 'changed' => array ( |
|
| 261 | 261 | 'exclude' => 1, |
| 262 | 262 | 'l10n_mode' => 'exclude', |
| 263 | 263 | 'label' => 'LLL:EXT:dpf/Resources/Private/Language/locallang_db.xlf:tx_dpf_domain_model_document.changed', |
| 264 | - 'config' => array( |
|
| 264 | + 'config' => array ( |
|
| 265 | 265 | 'type' => 'check', |
| 266 | 266 | 'default' => 0, |
| 267 | 267 | ), |
| 268 | 268 | ), |
| 269 | 269 | |
| 270 | - 'valid' => array( |
|
| 270 | + 'valid' => array ( |
|
| 271 | 271 | 'exclude' => 1, |
| 272 | 272 | 'l10n_mode' => 'exclude', |
| 273 | 273 | 'label' => 'LLL:EXT:dpf/Resources/Private/Language/locallang_db.xlf:tx_dpf_domain_model_document.valid', |
| 274 | - 'config' => array( |
|
| 274 | + 'config' => array ( |
|
| 275 | 275 | 'type' => 'check', |
| 276 | 276 | 'default' => 0, |
| 277 | 277 | ), |
| 278 | 278 | ), |
| 279 | 279 | |
| 280 | - 'date_issued' => array( |
|
| 280 | + 'date_issued' => array ( |
|
| 281 | 281 | 'exclude' => 1, |
| 282 | 282 | 'label' => 'LLL:EXT:dpf/Resources/Private/Language/locallang_db.xlf:tx_dpf_domain_model_document.date_issued', |
| 283 | - 'config' => array( |
|
| 283 | + 'config' => array ( |
|
| 284 | 284 | 'type' => 'input', |
| 285 | 285 | 'size' => 30, |
| 286 | 286 | 'eval' => 'trim', |
| 287 | 287 | ), |
| 288 | 288 | ), |
| 289 | 289 | |
| 290 | - 'file' => array( |
|
| 290 | + 'file' => array ( |
|
| 291 | 291 | 'exclude' => 1, |
| 292 | 292 | 'label' => 'LLL:EXT:dpf/Resources/Private/Language/locallang_db.xlf:tx_dpf_domain_model_document.file', |
| 293 | - 'config' => array( |
|
| 293 | + 'config' => array ( |
|
| 294 | 294 | 'type' => 'inline', |
| 295 | 295 | 'foreign_table' => 'tx_dpf_domain_model_file', |
| 296 | 296 | 'foreign_field' => 'document', |
| 297 | - 'behaviour' => array( |
|
| 297 | + 'behaviour' => array ( |
|
| 298 | 298 | 'disableMovingChildrenWithParent' => 1, |
| 299 | 299 | //'disableCopyingChildrenWithParent' => 1 |
| 300 | 300 | ), |
| 301 | 301 | 'maxitems' => 9999, |
| 302 | - 'appearance' => array( |
|
| 302 | + 'appearance' => array ( |
|
| 303 | 303 | 'collapseAll' => 0, |
| 304 | 304 | 'levelLinksPosition' => 'top', |
| 305 | 305 | 'showSynchronizationLink' => 1, |