@@ -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_file', |
| 22 | 22 | 'label' => 'title', |
| 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,195 +36,195 @@ discard block |
||
| 36 | 36 | 'searchFields' => 'title, label, download, archive, file_group_deleted, content_type, link, status, datastream_identifier, primary_file, document', |
| 37 | 37 | 'iconfile' => 'EXT:dpf/Resources/Public/Icons/tx_dpf_domain_model_file.gif', |
| 38 | 38 | ), |
| 39 | - 'interface' => array( |
|
| 39 | + 'interface' => array ( |
|
| 40 | 40 | 'showRecordFieldList' => 'sys_language_uid, l10n_parent, l10n_diffsource, hidden, title, label, download, archive, file_group_deleted, content_type, link, status, datastream_identifier, primary_file, document', |
| 41 | 41 | ), |
| 42 | - 'types' => array( |
|
| 43 | - '1' => array('showitem' => 'sys_language_uid, l10n_parent, l10n_diffsource, hidden, --palette--;;1, title, label, download, archive, file_group_deleted, content_type, link, status, datastream_identifier, primary_file, document, --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, title, label, download, archive, file_group_deleted, content_type, link, status, datastream_identifier, primary_file, document, --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_file', |
| 75 | 75 | 'foreign_table_where' => 'AND tx_dpf_domain_model_file.pid=###CURRENT_PID### AND tx_dpf_domain_model_file.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 | 'label' => 'LLL:EXT:lang/locallang_general.xlf:LGL.hidden', |
| 96 | - 'config' => array( |
|
| 96 | + 'config' => array ( |
|
| 97 | 97 | 'type' => 'check', |
| 98 | 98 | ), |
| 99 | 99 | ), |
| 100 | - 'starttime' => array( |
|
| 100 | + 'starttime' => array ( |
|
| 101 | 101 | 'exclude' => 1, |
| 102 | 102 | 'l10n_mode' => 'mergeIfNotBlank', |
| 103 | 103 | 'label' => 'LLL:EXT:lang/locallang_general.xlf:LGL.starttime', |
| 104 | - 'config' => array( |
|
| 104 | + 'config' => array ( |
|
| 105 | 105 | 'type' => 'input', |
| 106 | 106 | 'renderType' => 'inputDateTime', |
| 107 | 107 | 'size' => 13, |
| 108 | 108 | 'eval' => 'datetime', |
| 109 | 109 | 'checkbox' => 0, |
| 110 | 110 | 'default' => 0, |
| 111 | - 'range' => array( |
|
| 111 | + 'range' => array ( |
|
| 112 | 112 | 'lower' => mktime(0, 0, 0, date('m'), date('d'), date('Y')), |
| 113 | 113 | ), |
| 114 | 114 | ), |
| 115 | 115 | ), |
| 116 | - 'endtime' => array( |
|
| 116 | + 'endtime' => array ( |
|
| 117 | 117 | 'exclude' => 1, |
| 118 | 118 | 'l10n_mode' => 'mergeIfNotBlank', |
| 119 | 119 | 'label' => 'LLL:EXT:lang/locallang_general.xlf:LGL.endtime', |
| 120 | - 'config' => array( |
|
| 120 | + 'config' => array ( |
|
| 121 | 121 | 'type' => 'input', |
| 122 | 122 | 'renderType' => 'inputDateTime', |
| 123 | 123 | 'size' => 13, |
| 124 | 124 | 'eval' => 'datetime', |
| 125 | 125 | 'checkbox' => 0, |
| 126 | 126 | 'default' => 0, |
| 127 | - 'range' => array( |
|
| 127 | + 'range' => array ( |
|
| 128 | 128 | 'lower' => mktime(0, 0, 0, date('m'), date('d'), date('Y')), |
| 129 | 129 | ), |
| 130 | 130 | ), |
| 131 | 131 | ), |
| 132 | 132 | |
| 133 | - 'title' => array( |
|
| 133 | + 'title' => array ( |
|
| 134 | 134 | 'exclude' => 1, |
| 135 | 135 | 'label' => 'LLL:EXT:dpf/Resources/Private/Language/locallang_db.xlf:tx_dpf_domain_model_file.title', |
| 136 | - 'config' => array( |
|
| 136 | + 'config' => array ( |
|
| 137 | 137 | 'type' => 'input', |
| 138 | 138 | 'size' => 30, |
| 139 | 139 | 'eval' => 'trim', |
| 140 | 140 | ), |
| 141 | 141 | ), |
| 142 | 142 | |
| 143 | - 'label' => array( |
|
| 143 | + 'label' => array ( |
|
| 144 | 144 | 'exclude' => 1, |
| 145 | 145 | 'label' => 'LLL:EXT:dpf/Resources/Private/Language/locallang_db.xlf:tx_dpf_domain_model_file.label', |
| 146 | - 'config' => array( |
|
| 146 | + 'config' => array ( |
|
| 147 | 147 | 'type' => 'input', |
| 148 | 148 | 'size' => 30, |
| 149 | 149 | 'eval' => 'trim', |
| 150 | 150 | ), |
| 151 | 151 | ), |
| 152 | - 'download' => array( |
|
| 152 | + 'download' => array ( |
|
| 153 | 153 | 'exclude' => 1, |
| 154 | 154 | 'l10n_mode' => 'exclude', |
| 155 | 155 | 'label' => 'LLL:EXT:dpf/Resources/Private/Language/locallang_db.xlf:tx_dpf_domain_model_file.download', |
| 156 | - 'config' => array( |
|
| 156 | + 'config' => array ( |
|
| 157 | 157 | 'type' => 'check', |
| 158 | 158 | 'default' => 0, |
| 159 | 159 | ), |
| 160 | 160 | ), |
| 161 | - 'archive' => array( |
|
| 161 | + 'archive' => array ( |
|
| 162 | 162 | 'exclude' => 1, |
| 163 | 163 | 'l10n_mode' => 'exclude', |
| 164 | 164 | 'label' => 'LLL:EXT:dpf/Resources/Private/Language/locallang_db.xlf:tx_dpf_domain_model_file.archive', |
| 165 | - 'config' => array( |
|
| 165 | + 'config' => array ( |
|
| 166 | 166 | 'type' => 'check', |
| 167 | 167 | 'default' => 0, |
| 168 | 168 | ), |
| 169 | 169 | ), |
| 170 | - 'file_group_deleted' => array( |
|
| 170 | + 'file_group_deleted' => array ( |
|
| 171 | 171 | 'exclude' => 1, |
| 172 | 172 | 'l10n_mode' => 'exclude', |
| 173 | 173 | 'label' => 'LLL:EXT:dpf/Resources/Private/Language/locallang_db.xlf:tx_dpf_domain_model_file.file_group_deleted', |
| 174 | - 'config' => array( |
|
| 174 | + 'config' => array ( |
|
| 175 | 175 | 'type' => 'check', |
| 176 | 176 | 'default' => 0, |
| 177 | 177 | ), |
| 178 | 178 | ), |
| 179 | - 'content_type' => array( |
|
| 179 | + 'content_type' => array ( |
|
| 180 | 180 | 'exclude' => 1, |
| 181 | 181 | 'label' => 'LLL:EXT:dpf/Resources/Private/Language/locallang_db.xlf:tx_dpf_domain_model_file.content_type', |
| 182 | - 'config' => array( |
|
| 182 | + 'config' => array ( |
|
| 183 | 183 | 'type' => 'input', |
| 184 | 184 | 'size' => 30, |
| 185 | 185 | 'eval' => 'trim', |
| 186 | 186 | ), |
| 187 | 187 | ), |
| 188 | - 'link' => array( |
|
| 188 | + 'link' => array ( |
|
| 189 | 189 | 'exclude' => 1, |
| 190 | 190 | 'label' => 'LLL:EXT:dpf/Resources/Private/Language/locallang_db.xlf:tx_dpf_domain_model_file.link', |
| 191 | - 'config' => array( |
|
| 191 | + 'config' => array ( |
|
| 192 | 192 | 'type' => 'input', |
| 193 | 193 | 'size' => 30, |
| 194 | 194 | 'eval' => 'trim', |
| 195 | 195 | ), |
| 196 | 196 | ), |
| 197 | - 'status' => array( |
|
| 197 | + 'status' => array ( |
|
| 198 | 198 | 'exclude' => 1, |
| 199 | 199 | 'label' => 'LLL:EXT:dpf/Resources/Private/Language/locallang_db.xlf:tx_dpf_domain_model_file.status', |
| 200 | - 'config' => array( |
|
| 200 | + 'config' => array ( |
|
| 201 | 201 | 'type' => 'input', |
| 202 | 202 | 'size' => 30, |
| 203 | 203 | 'eval' => 'trim', |
| 204 | 204 | ), |
| 205 | 205 | ), |
| 206 | - 'datastream_identifier' => array( |
|
| 206 | + 'datastream_identifier' => array ( |
|
| 207 | 207 | 'exclude' => 1, |
| 208 | 208 | 'label' => 'LLL:EXT:dpf/Resources/Private/Language/locallang_db.xlf:tx_dpf_domain_model_file.datastream_identifier', |
| 209 | - 'config' => array( |
|
| 209 | + 'config' => array ( |
|
| 210 | 210 | 'type' => 'input', |
| 211 | 211 | 'size' => 30, |
| 212 | 212 | 'eval' => 'trim', |
| 213 | 213 | ), |
| 214 | 214 | ), |
| 215 | - 'primary_file' => array( |
|
| 215 | + 'primary_file' => array ( |
|
| 216 | 216 | 'exclude' => 1, |
| 217 | 217 | 'label' => 'LLL:EXT:dpf/Resources/Private/Language/locallang_db.xlf:tx_dpf_domain_model_file.primary_file', |
| 218 | - 'config' => array( |
|
| 218 | + 'config' => array ( |
|
| 219 | 219 | 'type' => 'check', |
| 220 | 220 | 'default' => 0, |
| 221 | 221 | ), |
| 222 | 222 | ), |
| 223 | 223 | |
| 224 | - 'document' => array( |
|
| 224 | + 'document' => array ( |
|
| 225 | 225 | 'exclude' => 1, |
| 226 | 226 | 'label' => 'LLL:EXT:dpf2/Resources/Private/Language/locallang_db.xlf:tx_dpf_domain_model_file.document', |
| 227 | - 'config' => array( |
|
| 227 | + 'config' => array ( |
|
| 228 | 228 | 'type' => 'select', |
| 229 | 229 | 'renderType' => 'selectSingle', |
| 230 | 230 | 'foreign_table' => 'tx_dpf_domain_model_document', |
@@ -94,7 +94,7 @@ discard block |
||
| 94 | 94 | $fileNodesDownload = $xpath->query('/mets:mets/mets:fileSec/mets:fileGrp[@USE="DOWNLOAD"]/mets:file'); |
| 95 | 95 | $fileNodesDeleted = $xpath->query('/mets:mets/mets:fileSec/mets:fileGrp[@USE="DELETED"]/mets:file'); |
| 96 | 96 | |
| 97 | - $files = array(); |
|
| 97 | + $files = array (); |
|
| 98 | 98 | |
| 99 | 99 | foreach ($fileNodesOriginal as $item) { |
| 100 | 100 | |
@@ -106,7 +106,7 @@ discard block |
||
| 106 | 106 | $href = $flocat->item(0)->getAttributeNS($xlinkNS, "href"); |
| 107 | 107 | } |
| 108 | 108 | |
| 109 | - $files[] = array( |
|
| 109 | + $files[] = array ( |
|
| 110 | 110 | 'id' => $item->getAttribute("ID"), |
| 111 | 111 | 'mimetype' => $item->getAttribute("MIMETYPE"), |
| 112 | 112 | 'href' => $href, |
@@ -127,7 +127,7 @@ discard block |
||
| 127 | 127 | $href = $flocat->item(0)->getAttributeNS($xlinkNS, "href"); |
| 128 | 128 | } |
| 129 | 129 | |
| 130 | - $files[] = array( |
|
| 130 | + $files[] = array ( |
|
| 131 | 131 | 'id' => $item->getAttribute("ID"), |
| 132 | 132 | 'mimetype' => $item->getAttribute("MIMETYPE"), |
| 133 | 133 | 'href' => $href, |
@@ -148,7 +148,7 @@ discard block |
||
| 148 | 148 | $href = $flocat->item(0)->getAttributeNS($xlinkNS, "href"); |
| 149 | 149 | } |
| 150 | 150 | |
| 151 | - $files[] = array( |
|
| 151 | + $files[] = array ( |
|
| 152 | 152 | 'id' => $item->getAttribute("ID"), |
| 153 | 153 | 'mimetype' => $item->getAttribute("MIMETYPE"), |
| 154 | 154 | 'href' => $href, |
@@ -480,14 +480,14 @@ discard block |
||
| 480 | 480 | |
| 481 | 481 | $fileId = new \EWW\Dpf\Services\Transfer\FileId($this); |
| 482 | 482 | |
| 483 | - $files = array(); |
|
| 483 | + $files = array (); |
|
| 484 | 484 | |
| 485 | 485 | if (is_a($this->getFile(), '\TYPO3\CMS\Extbase\Persistence\ObjectStorage')) { |
| 486 | 486 | foreach ($this->getFile() as $file) { |
| 487 | 487 | |
| 488 | 488 | if (!$file->isFileGroupDeleted()) { |
| 489 | 489 | |
| 490 | - $tmpFile = array( |
|
| 490 | + $tmpFile = array ( |
|
| 491 | 491 | 'path' => $file->getLink(), |
| 492 | 492 | 'type' => $file->getContentType(), |
| 493 | 493 | 'title' => (($file->getLabel()) ? $file->getLabel() : $file->getTitle()), |
@@ -529,12 +529,12 @@ discard block |
||
| 529 | 529 | |
| 530 | 530 | $fileId = new \EWW\Dpf\Services\Transfer\FileId($this); |
| 531 | 531 | |
| 532 | - $files = array(); |
|
| 532 | + $files = array (); |
|
| 533 | 533 | |
| 534 | 534 | if (is_a($this->getFile(), '\TYPO3\CMS\Extbase\Persistence\ObjectStorage')) { |
| 535 | 535 | foreach ($this->getFile() as $file) { |
| 536 | 536 | |
| 537 | - $tmpFile = array( |
|
| 537 | + $tmpFile = array ( |
|
| 538 | 538 | 'path' => $file->getLink(), |
| 539 | 539 | 'type' => $file->getContentType(), |
| 540 | 540 | 'title' => (($file->getLabel()) ? $file->getLabel() : $file->getTitle()), |