@@ -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, |
@@ -112,8 +112,8 @@ discard block |
||
| 112 | 112 | 'href' => $href, |
| 113 | 113 | 'title' => $item->getAttributeNS($mextNS, "LABEL"), |
| 114 | 114 | 'archive' => ($item->getAttribute("USE") == 'ARCHIVE'), |
| 115 | - 'download' => false, |
|
| 116 | - 'deleted' => false, |
|
| 115 | + 'download' => FALSE, |
|
| 116 | + 'deleted' => FALSE, |
|
| 117 | 117 | ); |
| 118 | 118 | } |
| 119 | 119 | |
@@ -133,8 +133,8 @@ discard block |
||
| 133 | 133 | 'href' => $href, |
| 134 | 134 | 'title' => $item->getAttributeNS($mextNS, "LABEL"), |
| 135 | 135 | 'archive' => ($item->getAttribute("USE") == 'ARCHIVE'), |
| 136 | - 'download' => true, |
|
| 137 | - 'deleted' => false, |
|
| 136 | + 'download' => TRUE, |
|
| 137 | + 'deleted' => FALSE, |
|
| 138 | 138 | ); |
| 139 | 139 | } |
| 140 | 140 | |
@@ -154,8 +154,8 @@ discard block |
||
| 154 | 154 | 'href' => $href, |
| 155 | 155 | 'title' => $item->getAttributeNS($mextNS, "LABEL"), |
| 156 | 156 | 'archive' => ($item->getAttribute("USE") == 'ARCHIVE'), |
| 157 | - 'download' => false, |
|
| 158 | - 'deleted' => true, |
|
| 157 | + 'download' => FALSE, |
|
| 158 | + 'deleted' => TRUE, |
|
| 159 | 159 | ); |
| 160 | 160 | } |
| 161 | 161 | |
@@ -127,11 +127,11 @@ discard block |
||
| 127 | 127 | $this->documentRepository->update($document); |
| 128 | 128 | $this->documentRepository->remove($document); |
| 129 | 129 | |
| 130 | - return true; |
|
| 130 | + return TRUE; |
|
| 131 | 131 | } else { |
| 132 | 132 | $document->setTransferStatus(Document::TRANSFER_ERROR); |
| 133 | 133 | $this->documentRepository->update($document); |
| 134 | - return false; |
|
| 134 | + return FALSE; |
|
| 135 | 135 | } |
| 136 | 136 | |
| 137 | 137 | } |
@@ -174,11 +174,11 @@ discard block |
||
| 174 | 174 | $this->documentRepository->update($document); |
| 175 | 175 | $this->documentRepository->remove($document); |
| 176 | 176 | |
| 177 | - return true; |
|
| 177 | + return TRUE; |
|
| 178 | 178 | } else { |
| 179 | 179 | $document->setTransferStatus(Document::TRANSFER_ERROR); |
| 180 | 180 | $this->documentRepository->update($document); |
| 181 | - return false; |
|
| 181 | + return FALSE; |
|
| 182 | 182 | } |
| 183 | 183 | |
| 184 | 184 | } |
@@ -210,7 +210,7 @@ discard block |
||
| 210 | 210 | $documentType = $this->documentTypeRepository->findOneByName($documentTypeName); |
| 211 | 211 | |
| 212 | 212 | if (empty($title) || empty($documentType)) { |
| 213 | - return false; |
|
| 213 | + return FALSE; |
|
| 214 | 214 | } |
| 215 | 215 | |
| 216 | 216 | $state = $mets->getState(); |
@@ -261,7 +261,7 @@ discard block |
||
| 261 | 261 | $file->setFileGroupDeleted($attachment['deleted']); |
| 262 | 262 | |
| 263 | 263 | if ($attachment['id'] == \EWW\Dpf\Domain\Model\File::PRIMARY_DATASTREAM_IDENTIFIER) { |
| 264 | - $file->setPrimaryFile(true); |
|
| 264 | + $file->setPrimaryFile(TRUE); |
|
| 265 | 265 | } |
| 266 | 266 | |
| 267 | 267 | $file->setDocument($document); |
@@ -269,13 +269,13 @@ discard block |
||
| 269 | 269 | $this->fileRepository->add($file); |
| 270 | 270 | } |
| 271 | 271 | |
| 272 | - return true; |
|
| 272 | + return TRUE; |
|
| 273 | 273 | |
| 274 | 274 | } else { |
| 275 | - return false; |
|
| 275 | + return FALSE; |
|
| 276 | 276 | } |
| 277 | 277 | |
| 278 | - return false; |
|
| 278 | + return FALSE; |
|
| 279 | 279 | } |
| 280 | 280 | |
| 281 | 281 | /** |
@@ -297,7 +297,7 @@ discard block |
||
| 297 | 297 | $document->setTransferStatus(Document::TRANSFER_SENT); |
| 298 | 298 | $document->setState(Document::OBJECT_STATE_ACTIVE); |
| 299 | 299 | $this->documentRepository->update($document); |
| 300 | - return true; |
|
| 300 | + return TRUE; |
|
| 301 | 301 | } |
| 302 | 302 | break; |
| 303 | 303 | case "inactivate": |
@@ -305,7 +305,7 @@ discard block |
||
| 305 | 305 | $document->setTransferStatus(Document::TRANSFER_SENT); |
| 306 | 306 | $document->setState(Document::OBJECT_STATE_INACTIVE); |
| 307 | 307 | $this->documentRepository->update($document); |
| 308 | - return true; |
|
| 308 | + return TRUE; |
|
| 309 | 309 | } |
| 310 | 310 | break; |
| 311 | 311 | default: |
@@ -318,14 +318,14 @@ discard block |
||
| 318 | 318 | $document->setState(Document::OBJECT_STATE_DELETED); |
| 319 | 319 | $this->documentRepository->update($document); |
| 320 | 320 | $this->documentRepository->remove($document); |
| 321 | - return true; |
|
| 321 | + return TRUE; |
|
| 322 | 322 | } |
| 323 | 323 | break; |
| 324 | 324 | } |
| 325 | 325 | |
| 326 | 326 | $document->setTransferStatus(Document::TRANSFER_ERROR); |
| 327 | 327 | $this->documentRepository->update($document); |
| 328 | - return false; |
|
| 328 | + return FALSE; |
|
| 329 | 329 | } |
| 330 | 330 | |
| 331 | 331 | public function getNextDocumentId() |
@@ -53,7 +53,7 @@ discard block |
||
| 53 | 53 | * |
| 54 | 54 | * @var \EWW\Dpf\Domain\Model\DocumentType |
| 55 | 55 | */ |
| 56 | - protected $documentType = null; |
|
| 56 | + protected $documentType = NULL; |
|
| 57 | 57 | |
| 58 | 58 | /** |
| 59 | 59 | * objectIdentifier |
@@ -95,14 +95,14 @@ discard block |
||
| 95 | 95 | * |
| 96 | 96 | * @var boolean |
| 97 | 97 | */ |
| 98 | - protected $changed = false; |
|
| 98 | + protected $changed = FALSE; |
|
| 99 | 99 | |
| 100 | 100 | /** |
| 101 | 101 | * valid |
| 102 | 102 | * |
| 103 | 103 | * @var boolean |
| 104 | 104 | */ |
| 105 | - protected $valid = false; |
|
| 105 | + protected $valid = FALSE; |
|
| 106 | 106 | |
| 107 | 107 | /** |
| 108 | 108 | * |
@@ -122,7 +122,7 @@ discard block |
||
| 122 | 122 | * @var \TYPO3\CMS\Extbase\Persistence\ObjectStorage<\EWW\Dpf\Domain\Model\File> |
| 123 | 123 | * @cascade remove |
| 124 | 124 | */ |
| 125 | - protected $file = null; |
|
| 125 | + protected $file = NULL; |
|
| 126 | 126 | |
| 127 | 127 | const TRANSFER_ERROR = "ERROR"; |
| 128 | 128 | const TRANSFER_QUEUED = "QUEUED"; |
@@ -492,7 +492,7 @@ discard block |
||
| 492 | 492 | 'type' => $file->getContentType(), |
| 493 | 493 | 'title' => (($file->getLabel()) ? $file->getLabel() : $file->getTitle()), |
| 494 | 494 | 'use' => '', |
| 495 | - 'id' => null, |
|
| 495 | + 'id' => NULL, |
|
| 496 | 496 | 'hasFLocat' => ($file->getStatus() == \EWW\Dpf\Domain\Model\File::STATUS_ADDED || |
| 497 | 497 | $file->getStatus() == \EWW\Dpf\Domain\Model\File::STATUS_CHANGED), |
| 498 | 498 | ); |
@@ -539,7 +539,7 @@ discard block |
||
| 539 | 539 | 'type' => $file->getContentType(), |
| 540 | 540 | 'title' => (($file->getLabel()) ? $file->getLabel() : $file->getTitle()), |
| 541 | 541 | 'use' => '', |
| 542 | - 'id' => null, |
|
| 542 | + 'id' => NULL, |
|
| 543 | 543 | 'hasFLocat' => ($file->getStatus() == \EWW\Dpf\Domain\Model\File::STATUS_ADDED || |
| 544 | 544 | $file->getStatus() == \EWW\Dpf\Domain\Model\File::STATUS_CHANGED), |
| 545 | 545 | ); |
@@ -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()), |
@@ -17,8 +17,7 @@ discard block |
||
| 17 | 17 | /** |
| 18 | 18 | * File |
| 19 | 19 | */ |
| 20 | -class File extends \TYPO3\CMS\Extbase\DomainObject\AbstractEntity |
|
| 21 | -{ |
|
| 20 | +class File extends \TYPO3\CMS\Extbase\DomainObject\AbstractEntity { |
|
| 22 | 21 | |
| 23 | 22 | /** |
| 24 | 23 | * title |
@@ -110,8 +109,7 @@ discard block |
||
| 110 | 109 | * |
| 111 | 110 | * @return string $title |
| 112 | 111 | */ |
| 113 | - public function getTitle() |
|
| 114 | - { |
|
| 112 | + public function getTitle() { |
|
| 115 | 113 | return $this->title; |
| 116 | 114 | } |
| 117 | 115 | |
@@ -121,8 +119,7 @@ discard block |
||
| 121 | 119 | * @param string $title |
| 122 | 120 | * @return void |
| 123 | 121 | */ |
| 124 | - public function setTitle($title) |
|
| 125 | - { |
|
| 122 | + public function setTitle($title) { |
|
| 126 | 123 | $this->title = $title; |
| 127 | 124 | } |
| 128 | 125 | |
@@ -131,8 +128,7 @@ discard block |
||
| 131 | 128 | * |
| 132 | 129 | * @return string $label |
| 133 | 130 | */ |
| 134 | - public function getLabel() |
|
| 135 | - { |
|
| 131 | + public function getLabel() { |
|
| 136 | 132 | return $this->label; |
| 137 | 133 | } |
| 138 | 134 | |
@@ -142,8 +138,7 @@ discard block |
||
| 142 | 138 | * @param string $label |
| 143 | 139 | * @return void |
| 144 | 140 | */ |
| 145 | - public function setLabel($label) |
|
| 146 | - { |
|
| 141 | + public function setLabel($label) { |
|
| 147 | 142 | $this->label = $label; |
| 148 | 143 | } |
| 149 | 144 | |
@@ -152,8 +147,7 @@ discard block |
||
| 152 | 147 | * |
| 153 | 148 | * @return boolean $download |
| 154 | 149 | */ |
| 155 | - public function getDownload() |
|
| 156 | - { |
|
| 150 | + public function getDownload() { |
|
| 157 | 151 | return $this->download; |
| 158 | 152 | } |
| 159 | 153 | |
@@ -163,8 +157,7 @@ discard block |
||
| 163 | 157 | * @param string $download |
| 164 | 158 | * @return void |
| 165 | 159 | */ |
| 166 | - public function setDownload($download) |
|
| 167 | - { |
|
| 160 | + public function setDownload($download) { |
|
| 168 | 161 | $this->download = $download; |
| 169 | 162 | } |
| 170 | 163 | |
@@ -173,8 +166,7 @@ discard block |
||
| 173 | 166 | * |
| 174 | 167 | * @return boolean $archive |
| 175 | 168 | */ |
| 176 | - public function getArchive() |
|
| 177 | - { |
|
| 169 | + public function getArchive() { |
|
| 178 | 170 | return $this->archive; |
| 179 | 171 | } |
| 180 | 172 | |
@@ -184,8 +176,7 @@ discard block |
||
| 184 | 176 | * @param boolean $archive |
| 185 | 177 | * @return void |
| 186 | 178 | */ |
| 187 | - public function setArchive($archive) |
|
| 188 | - { |
|
| 179 | + public function setArchive($archive) { |
|
| 189 | 180 | $this->archive = $archive; |
| 190 | 181 | } |
| 191 | 182 | |
@@ -194,8 +185,7 @@ discard block |
||
| 194 | 185 | * |
| 195 | 186 | * @return boolean $fileGroupDeleted |
| 196 | 187 | */ |
| 197 | - public function isFileGroupDeleted() |
|
| 198 | - { |
|
| 188 | + public function isFileGroupDeleted() { |
|
| 199 | 189 | return $this->fileGroupDeleted; |
| 200 | 190 | } |
| 201 | 191 | |
@@ -204,8 +194,7 @@ discard block |
||
| 204 | 194 | * |
| 205 | 195 | * @return boolean $fileGroupDeleted |
| 206 | 196 | */ |
| 207 | - public function setFileGroupDeleted($fileGroupDeleted) |
|
| 208 | - { |
|
| 197 | + public function setFileGroupDeleted($fileGroupDeleted) { |
|
| 209 | 198 | $this->fileGroupDeleted = $fileGroupDeleted; |
| 210 | 199 | } |
| 211 | 200 | |
@@ -214,8 +203,7 @@ discard block |
||
| 214 | 203 | * |
| 215 | 204 | * @return string $contentType |
| 216 | 205 | */ |
| 217 | - public function getContentType() |
|
| 218 | - { |
|
| 206 | + public function getContentType() { |
|
| 219 | 207 | return $this->contentType; |
| 220 | 208 | } |
| 221 | 209 | |
@@ -225,8 +213,7 @@ discard block |
||
| 225 | 213 | * @param string $contentType |
| 226 | 214 | * @return void |
| 227 | 215 | */ |
| 228 | - public function setContentType($contentType) |
|
| 229 | - { |
|
| 216 | + public function setContentType($contentType) { |
|
| 230 | 217 | $this->contentType = $contentType; |
| 231 | 218 | } |
| 232 | 219 | |
@@ -235,8 +222,7 @@ discard block |
||
| 235 | 222 | * |
| 236 | 223 | * @return string $link |
| 237 | 224 | */ |
| 238 | - public function getLink() |
|
| 239 | - { |
|
| 225 | + public function getLink() { |
|
| 240 | 226 | return $this->link; |
| 241 | 227 | } |
| 242 | 228 | |
@@ -246,8 +232,7 @@ discard block |
||
| 246 | 232 | * @param string $link |
| 247 | 233 | * @return void |
| 248 | 234 | */ |
| 249 | - public function setLink($link) |
|
| 250 | - { |
|
| 235 | + public function setLink($link) { |
|
| 251 | 236 | $this->link = $link; |
| 252 | 237 | } |
| 253 | 238 | |
@@ -256,8 +241,7 @@ discard block |
||
| 256 | 241 | * |
| 257 | 242 | * @return string $status |
| 258 | 243 | */ |
| 259 | - public function getStatus() |
|
| 260 | - { |
|
| 244 | + public function getStatus() { |
|
| 261 | 245 | return $this->status; |
| 262 | 246 | } |
| 263 | 247 | |
@@ -267,8 +251,7 @@ discard block |
||
| 267 | 251 | * @param string $status |
| 268 | 252 | * @return void |
| 269 | 253 | */ |
| 270 | - public function setStatus($status) |
|
| 271 | - { |
|
| 254 | + public function setStatus($status) { |
|
| 272 | 255 | $this->status = $status; |
| 273 | 256 | } |
| 274 | 257 | |
@@ -277,8 +260,7 @@ discard block |
||
| 277 | 260 | * |
| 278 | 261 | * @return \EWW\Dpf\Domain\Model\Document $document |
| 279 | 262 | */ |
| 280 | - public function getDocument() |
|
| 281 | - { |
|
| 263 | + public function getDocument() { |
|
| 282 | 264 | return $this->document; |
| 283 | 265 | } |
| 284 | 266 | |
@@ -288,8 +270,7 @@ discard block |
||
| 288 | 270 | * @param \EWW\Dpf\Domain\Model\Document $document |
| 289 | 271 | * @return void |
| 290 | 272 | */ |
| 291 | - public function setDocument(\EWW\Dpf\Domain\Model\Document $document) |
|
| 292 | - { |
|
| 273 | + public function setDocument(\EWW\Dpf\Domain\Model\Document $document) { |
|
| 293 | 274 | $this->document = $document; |
| 294 | 275 | } |
| 295 | 276 | |
@@ -298,8 +279,7 @@ discard block |
||
| 298 | 279 | * |
| 299 | 280 | * @return boolean $primaryFile |
| 300 | 281 | */ |
| 301 | - public function getPrimaryFile() |
|
| 302 | - { |
|
| 282 | + public function getPrimaryFile() { |
|
| 303 | 283 | return $this->primaryFile; |
| 304 | 284 | } |
| 305 | 285 | |
@@ -309,8 +289,7 @@ discard block |
||
| 309 | 289 | * @param boolean $primaryFile |
| 310 | 290 | * @return void |
| 311 | 291 | */ |
| 312 | - public function setPrimaryFile($primaryFile) |
|
| 313 | - { |
|
| 292 | + public function setPrimaryFile($primaryFile) { |
|
| 314 | 293 | $this->primaryFile = $primaryFile; |
| 315 | 294 | } |
| 316 | 295 | |
@@ -319,8 +298,7 @@ discard block |
||
| 319 | 298 | * |
| 320 | 299 | * @return boolean |
| 321 | 300 | */ |
| 322 | - public function isPrimaryFile() |
|
| 323 | - { |
|
| 301 | + public function isPrimaryFile() { |
|
| 324 | 302 | return $this->primaryFile; |
| 325 | 303 | } |
| 326 | 304 | |
@@ -329,8 +307,7 @@ discard block |
||
| 329 | 307 | * |
| 330 | 308 | * @return string $datastreamIdentifier |
| 331 | 309 | */ |
| 332 | - public function getDatastreamIdentifier() |
|
| 333 | - { |
|
| 310 | + public function getDatastreamIdentifier() { |
|
| 334 | 311 | return $this->datastreamIdentifier; |
| 335 | 312 | } |
| 336 | 313 | |
@@ -340,8 +317,7 @@ discard block |
||
| 340 | 317 | * @param string $datastreamIdentifier |
| 341 | 318 | * @return void |
| 342 | 319 | */ |
| 343 | - public function setDatastreamIdentifier($datastreamIdentifier) |
|
| 344 | - { |
|
| 320 | + public function setDatastreamIdentifier($datastreamIdentifier) { |
|
| 345 | 321 | $this->datastreamIdentifier = $datastreamIdentifier; |
| 346 | 322 | } |
| 347 | 323 | |