@@ -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_metadatapage', |
| 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,144 +36,144 @@ discard block |
||
| 36 | 36 | 'searchFields' => 'name, display_name, page_number, backend_only, 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, backend_only, 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, backend_only, 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, backend_only, 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( |
|
| 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_metadatapage', |
| 75 | 75 | 'foreign_table_where' => 'AND tx_dpf_domain_model_metadatapage.pid=###CURRENT_PID### AND tx_dpf_domain_model_metadatapage.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_metadatapage.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_metadatapage.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 | - 'page_number' => array( |
|
| 153 | + 'page_number' => 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_metadatapage.page_number', |
| 157 | - 'config' => array( |
|
| 157 | + 'config' => array ( |
|
| 158 | 158 | 'type' => 'input', |
| 159 | 159 | 'size' => 4, |
| 160 | 160 | 'eval' => 'int', |
| 161 | 161 | ), |
| 162 | 162 | ), |
| 163 | - 'backend_only' => array( |
|
| 163 | + 'backend_only' => 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_metadatapage.backend_only', |
| 167 | - 'config' => array( |
|
| 167 | + 'config' => array ( |
|
| 168 | 168 | 'type' => 'check', |
| 169 | 169 | 'default' => 0, |
| 170 | 170 | ), |
| 171 | 171 | ), |
| 172 | - 'metadata_group' => array( |
|
| 172 | + 'metadata_group' => 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_metadatapage.metadata_group', |
| 176 | - 'config' => array( |
|
| 176 | + 'config' => array ( |
|
| 177 | 177 | 'type' => 'select', |
| 178 | 178 | 'renderType' => 'selectMultipleSideBySide', |
| 179 | 179 | 'foreign_table' => 'tx_dpf_domain_model_metadatagroup', |
@@ -183,28 +183,28 @@ discard block |
||
| 183 | 183 | 'autoSizeMax' => 30, |
| 184 | 184 | 'maxitems' => 9999, |
| 185 | 185 | 'multiple' => 0, |
| 186 | - 'wizards' => array( |
|
| 186 | + 'wizards' => array ( |
|
| 187 | 187 | '_VERTICAL' => 1, |
| 188 | - 'edit' => array( |
|
| 188 | + 'edit' => array ( |
|
| 189 | 189 | 'type' => 'popup', |
| 190 | 190 | 'title' => 'Edit', |
| 191 | - 'module' => array( |
|
| 191 | + 'module' => array ( |
|
| 192 | 192 | 'name' => 'wizard_edit', |
| 193 | 193 | ), |
| 194 | 194 | 'icon' => 'edit2.gif', |
| 195 | 195 | 'popup_onlyOpenIfSelected' => 1, |
| 196 | 196 | 'JSopenParams' => 'height=350,width=580,status=0,menubar=0,scrollbars=1', |
| 197 | 197 | ), |
| 198 | - 'add' => array( |
|
| 198 | + 'add' => array ( |
|
| 199 | 199 | 'type' => 'script', |
| 200 | 200 | 'title' => 'Create new', |
| 201 | 201 | 'icon' => 'add.gif', |
| 202 | - 'params' => array( |
|
| 202 | + 'params' => array ( |
|
| 203 | 203 | 'table' => 'tx_dpf_domain_model_metadatagroup', |
| 204 | 204 | 'pid' => '###CURRENT_PID###', |
| 205 | 205 | 'setValue' => 'prepend', |
| 206 | 206 | ), |
| 207 | - 'module' => array( |
|
| 207 | + 'module' => array ( |
|
| 208 | 208 | 'name' => 'wizard_add', |
| 209 | 209 | ), |
| 210 | 210 | ), |
@@ -212,8 +212,8 @@ discard block |
||
| 212 | 212 | ), |
| 213 | 213 | ), |
| 214 | 214 | |
| 215 | - 'documenttype' => array( |
|
| 216 | - 'config' => array( |
|
| 215 | + 'documenttype' => array ( |
|
| 216 | + 'config' => array ( |
|
| 217 | 217 | 'type' => 'passthrough', |
| 218 | 218 | ), |
| 219 | 219 | ), |
@@ -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', |
@@ -37,231 +37,231 @@ discard block |
||
| 37 | 37 | 'iconfile' => 'EXT:dpf/Resources/Public/Icons/tx_dpf_domain_model_metadataobject.gif', |
| 38 | 38 | 'requestUpdate' => 'fill_out_service', |
| 39 | 39 | ), |
| 40 | - 'interface' => array( |
|
| 40 | + 'interface' => array ( |
|
| 41 | 41 | 'showRecordFieldList' => 'sys_language_uid, l10n_parent, l10n_diffsource, hidden, name, display_name, max_iteration, mandatory, data_type, validation, mapping, mods_extension, input_field, input_option_list, fill_out_service, gnd_field_uid, default_value, backend_only, consent', |
| 42 | 42 | ), |
| 43 | - 'types' => array( |
|
| 44 | - '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, input_option_list, fill_out_service, gnd_field_uid, default_value, backend_only, consent, --div--;LLL:EXT:frontend/Resources/Private/Language/locallang_ttc.xlf:tabs.access, starttime, endtime'), |
|
| 43 | + 'types' => array ( |
|
| 44 | + '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, input_option_list, fill_out_service, gnd_field_uid, default_value, backend_only, consent, --div--;LLL:EXT:frontend/Resources/Private/Language/locallang_ttc.xlf:tabs.access, starttime, endtime'), |
|
| 45 | 45 | ), |
| 46 | - 'palettes' => array( |
|
| 47 | - '1' => array('showitem' => ''), |
|
| 46 | + 'palettes' => array ( |
|
| 47 | + '1' => array ('showitem' => ''), |
|
| 48 | 48 | ), |
| 49 | - 'columns' => array( |
|
| 49 | + 'columns' => array ( |
|
| 50 | 50 | |
| 51 | - 'sys_language_uid' => array( |
|
| 51 | + 'sys_language_uid' => array ( |
|
| 52 | 52 | 'exclude' => 1, |
| 53 | 53 | 'label' => 'LLL:EXT:lang/locallang_general.xlf:LGL.language', |
| 54 | - 'config' => array( |
|
| 54 | + 'config' => array ( |
|
| 55 | 55 | 'type' => 'select', |
| 56 | 56 | 'renderType' => 'selectSingle', |
| 57 | 57 | 'foreign_table' => 'sys_language', |
| 58 | 58 | 'foreign_table_where' => 'ORDER BY sys_language.title', |
| 59 | - 'items' => array( |
|
| 60 | - array('LLL:EXT:lang/locallang_general.xlf:LGL.allLanguages', -1), |
|
| 61 | - array('LLL:EXT:lang/locallang_general.xlf:LGL.default_value', 0), |
|
| 59 | + 'items' => array ( |
|
| 60 | + array ('LLL:EXT:lang/locallang_general.xlf:LGL.allLanguages', -1), |
|
| 61 | + array ('LLL:EXT:lang/locallang_general.xlf:LGL.default_value', 0), |
|
| 62 | 62 | ), |
| 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 | 'l10n_mode' => 'mergeIfNotBlank', |
| 105 | 105 | 'label' => 'LLL:EXT:lang/locallang_general.xlf:LGL.starttime', |
| 106 | - 'config' => array( |
|
| 106 | + 'config' => array ( |
|
| 107 | 107 | 'type' => 'input', |
| 108 | 108 | 'renderType' => 'inputDateTime', |
| 109 | 109 | 'size' => 13, |
| 110 | 110 | 'eval' => 'datetime', |
| 111 | 111 | 'checkbox' => 0, |
| 112 | 112 | 'default' => 0, |
| 113 | - 'range' => array( |
|
| 113 | + 'range' => array ( |
|
| 114 | 114 | 'lower' => mktime(0, 0, 0, date('m'), date('d'), date('Y')), |
| 115 | 115 | ), |
| 116 | 116 | ), |
| 117 | 117 | ), |
| 118 | - 'endtime' => array( |
|
| 118 | + 'endtime' => array ( |
|
| 119 | 119 | 'exclude' => 1, |
| 120 | 120 | 'l10n_mode' => 'mergeIfNotBlank', |
| 121 | 121 | 'label' => 'LLL:EXT:lang/locallang_general.xlf:LGL.endtime', |
| 122 | - 'config' => array( |
|
| 122 | + 'config' => array ( |
|
| 123 | 123 | 'type' => 'input', |
| 124 | 124 | 'renderType' => 'inputDateTime', |
| 125 | 125 | 'size' => 13, |
| 126 | 126 | 'eval' => 'datetime', |
| 127 | 127 | 'checkbox' => 0, |
| 128 | 128 | 'default' => 0, |
| 129 | - 'range' => array( |
|
| 129 | + 'range' => array ( |
|
| 130 | 130 | 'lower' => mktime(0, 0, 0, date('m'), date('d'), date('Y')), |
| 131 | 131 | ), |
| 132 | 132 | ), |
| 133 | 133 | ), |
| 134 | 134 | |
| 135 | - 'name' => array( |
|
| 135 | + 'name' => array ( |
|
| 136 | 136 | 'exclude' => 1, |
| 137 | 137 | 'l10n_mode' => 'exclude', |
| 138 | 138 | 'label' => 'LLL:EXT:dpf/Resources/Private/Language/locallang_db.xlf:tx_dpf_domain_model_metadataobject.name', |
| 139 | - 'config' => array( |
|
| 139 | + 'config' => array ( |
|
| 140 | 140 | 'type' => 'input', |
| 141 | 141 | 'size' => 30, |
| 142 | 142 | 'eval' => 'trim', |
| 143 | 143 | ), |
| 144 | 144 | ), |
| 145 | - 'display_name' => array( |
|
| 145 | + 'display_name' => array ( |
|
| 146 | 146 | 'exclude' => 1, |
| 147 | 147 | 'label' => 'LLL:EXT:dpf/Resources/Private/Language/locallang_db.xlf:tx_dpf_domain_model_metadataobject.display_name', |
| 148 | - 'config' => array( |
|
| 148 | + 'config' => array ( |
|
| 149 | 149 | 'type' => 'input', |
| 150 | 150 | 'size' => 30, |
| 151 | 151 | 'eval' => 'trim', |
| 152 | 152 | ), |
| 153 | 153 | ), |
| 154 | - 'max_iteration' => array( |
|
| 154 | + 'max_iteration' => array ( |
|
| 155 | 155 | 'exclude' => 1, |
| 156 | 156 | 'l10n_mode' => 'exclude', |
| 157 | 157 | 'label' => 'LLL:EXT:dpf/Resources/Private/Language/locallang_db.xlf:tx_dpf_domain_model_metadataobject.max_iteration', |
| 158 | - 'config' => array( |
|
| 158 | + 'config' => array ( |
|
| 159 | 159 | 'type' => 'input', |
| 160 | 160 | 'size' => 4, |
| 161 | 161 | 'eval' => 'int', |
| 162 | 162 | ), |
| 163 | 163 | ), |
| 164 | - 'mandatory' => array( |
|
| 164 | + 'mandatory' => array ( |
|
| 165 | 165 | 'exclude' => 1, |
| 166 | 166 | 'l10n_mode' => 'exclude', |
| 167 | 167 | 'label' => 'LLL:EXT:dpf/Resources/Private/Language/locallang_db.xlf:tx_dpf_domain_model_metadataobject.mandatory', |
| 168 | - 'config' => array( |
|
| 168 | + 'config' => array ( |
|
| 169 | 169 | 'type' => 'check', |
| 170 | 170 | 'default' => 0, |
| 171 | 171 | ), |
| 172 | 172 | ), |
| 173 | - 'mapping' => array( |
|
| 173 | + 'mapping' => array ( |
|
| 174 | 174 | 'exclude' => 1, |
| 175 | 175 | 'l10n_mode' => 'exclude', |
| 176 | 176 | 'label' => 'LLL:EXT:dpf/Resources/Private/Language/locallang_db.xlf:tx_dpf_domain_model_metadataobject.mapping', |
| 177 | - 'config' => array( |
|
| 177 | + 'config' => array ( |
|
| 178 | 178 | 'type' => 'input', |
| 179 | 179 | 'size' => 30, |
| 180 | 180 | 'eval' => 'trim', |
| 181 | 181 | ), |
| 182 | 182 | ), |
| 183 | - 'data_type' => array( |
|
| 183 | + 'data_type' => array ( |
|
| 184 | 184 | 'exclude' => 1, |
| 185 | 185 | 'l10n_mode' => 'exclude', |
| 186 | 186 | 'label' => 'LLL:EXT:dpf/Resources/Private/Language/locallang_db.xlf:tx_dpf_domain_model_metadataobject.data_type', |
| 187 | - 'config' => array( |
|
| 187 | + 'config' => array ( |
|
| 188 | 188 | 'type' => 'select', |
| 189 | 189 | 'renderType' => 'selectSingle', |
| 190 | - 'items' => array( |
|
| 191 | - array('', ''), |
|
| 192 | - 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), |
|
| 193 | - 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), |
|
| 190 | + 'items' => array ( |
|
| 191 | + array ('', ''), |
|
| 192 | + 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), |
|
| 193 | + 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), |
|
| 194 | 194 | ), |
| 195 | 195 | 'size' => 1, |
| 196 | 196 | 'maxitems' => 1, |
| 197 | 197 | 'eval' => '', |
| 198 | 198 | ), |
| 199 | 199 | ), |
| 200 | - 'validation' => array( |
|
| 200 | + 'validation' => array ( |
|
| 201 | 201 | 'exclude' => 1, |
| 202 | 202 | 'l10n_mode' => 'exclude', |
| 203 | 203 | 'label' => 'LLL:EXT:dpf/Resources/Private/Language/locallang_db.xlf:tx_dpf_domain_model_metadataobject.validation', |
| 204 | - 'config' => array( |
|
| 204 | + 'config' => array ( |
|
| 205 | 205 | 'type' => 'input', |
| 206 | 206 | 'size' => 30, |
| 207 | 207 | 'eval' => 'trim', |
| 208 | 208 | ), |
| 209 | 209 | ), |
| 210 | - 'mods_extension' => array( |
|
| 210 | + 'mods_extension' => array ( |
|
| 211 | 211 | 'exclude' => 1, |
| 212 | 212 | 'l10n_mode' => 'exclude', |
| 213 | 213 | 'label' => 'LLL:EXT:dpf/Resources/Private/Language/locallang_db.xlf:tx_dpf_domain_model_metadataobject.mods_extension', |
| 214 | - 'config' => array( |
|
| 214 | + 'config' => array ( |
|
| 215 | 215 | 'type' => 'check', |
| 216 | 216 | 'default' => 0, |
| 217 | 217 | ), |
| 218 | 218 | ), |
| 219 | - 'backend_only' => array( |
|
| 219 | + 'backend_only' => array ( |
|
| 220 | 220 | 'exclude' => 1, |
| 221 | 221 | 'l10n_mode' => 'exclude', |
| 222 | 222 | 'label' => 'LLL:EXT:dpf/Resources/Private/Language/locallang_db.xlf:tx_dpf_domain_model_metadataobject.backend_only', |
| 223 | - 'config' => array( |
|
| 223 | + 'config' => array ( |
|
| 224 | 224 | 'type' => 'check', |
| 225 | 225 | 'default' => 0, |
| 226 | 226 | ), |
| 227 | 227 | ), |
| 228 | - 'consent' => array( |
|
| 228 | + 'consent' => array ( |
|
| 229 | 229 | 'exclude' => 1, |
| 230 | 230 | 'l10n_mode' => 'exclude', |
| 231 | 231 | 'label' => 'LLL:EXT:dpf/Resources/Private/Language/locallang_db.xlf:tx_dpf_domain_model_metadataobject.consent', |
| 232 | - 'config' => array( |
|
| 232 | + 'config' => array ( |
|
| 233 | 233 | 'type' => 'check', |
| 234 | 234 | 'default' => 0, |
| 235 | 235 | ), |
| 236 | 236 | ), |
| 237 | - 'input_field' => array( |
|
| 237 | + 'input_field' => array ( |
|
| 238 | 238 | 'exclude' => 1, |
| 239 | 239 | 'l10n_mode' => 'exclude', |
| 240 | 240 | 'label' => 'LLL:EXT:dpf/Resources/Private/Language/locallang_db.xlf:tx_dpf_domain_model_metadataobject.input_field', |
| 241 | - 'config' => array( |
|
| 241 | + 'config' => array ( |
|
| 242 | 242 | 'type' => 'select', |
| 243 | 243 | 'renderType' => 'selectSingle', |
| 244 | - 'items' => array( |
|
| 245 | - array('LLL:EXT:dpf/Resources/Private/Language/locallang_db.xlf:tx_dpf_domain_model_metadataobject.input_type.input', \EWW\Dpf\Domain\Model\MetadataObject::input), |
|
| 246 | - array('LLL:EXT:dpf/Resources/Private/Language/locallang_db.xlf:tx_dpf_domain_model_metadataobject.input_type.textarea', \EWW\Dpf\Domain\Model\MetadataObject::textarea), |
|
| 247 | - array('LLL:EXT:dpf/Resources/Private/Language/locallang_db.xlf:tx_dpf_domain_model_metadataobject.input_type.select', \EWW\Dpf\Domain\Model\MetadataObject::select), |
|
| 248 | - array('LLL:EXT:dpf/Resources/Private/Language/locallang_db.xlf:tx_dpf_domain_model_metadataobject.input_type.checkbox', \EWW\Dpf\Domain\Model\MetadataObject::checkbox), |
|
| 249 | - array('LLL:EXT:dpf/Resources/Private/Language/locallang_db.xlf:tx_dpf_domain_model_metadataobject.input_type.hidden', \EWW\Dpf\Domain\Model\MetadataObject::hidden), |
|
| 250 | - array('LLL:EXT:dpf/Resources/Private/Language/locallang_db.xlf:tx_dpf_domain_model_metadataobject.input_type.inputDropdown', \EWW\Dpf\Domain\Model\MetadataObject::INPUTDROPDOWN), |
|
| 244 | + 'items' => array ( |
|
| 245 | + array ('LLL:EXT:dpf/Resources/Private/Language/locallang_db.xlf:tx_dpf_domain_model_metadataobject.input_type.input', \EWW\Dpf\Domain\Model\MetadataObject::input), |
|
| 246 | + array ('LLL:EXT:dpf/Resources/Private/Language/locallang_db.xlf:tx_dpf_domain_model_metadataobject.input_type.textarea', \EWW\Dpf\Domain\Model\MetadataObject::textarea), |
|
| 247 | + array ('LLL:EXT:dpf/Resources/Private/Language/locallang_db.xlf:tx_dpf_domain_model_metadataobject.input_type.select', \EWW\Dpf\Domain\Model\MetadataObject::select), |
|
| 248 | + array ('LLL:EXT:dpf/Resources/Private/Language/locallang_db.xlf:tx_dpf_domain_model_metadataobject.input_type.checkbox', \EWW\Dpf\Domain\Model\MetadataObject::checkbox), |
|
| 249 | + array ('LLL:EXT:dpf/Resources/Private/Language/locallang_db.xlf:tx_dpf_domain_model_metadataobject.input_type.hidden', \EWW\Dpf\Domain\Model\MetadataObject::hidden), |
|
| 250 | + array ('LLL:EXT:dpf/Resources/Private/Language/locallang_db.xlf:tx_dpf_domain_model_metadataobject.input_type.inputDropdown', \EWW\Dpf\Domain\Model\MetadataObject::INPUTDROPDOWN), |
|
| 251 | 251 | ), |
| 252 | 252 | 'size' => 1, |
| 253 | 253 | 'maxitems' => 1, |
| 254 | 254 | 'eval' => '', |
| 255 | 255 | ), |
| 256 | 256 | ), |
| 257 | - 'input_option_list' => array( |
|
| 257 | + 'input_option_list' => array ( |
|
| 258 | 258 | 'exclude' => 1, |
| 259 | 259 | 'label' => 'LLL:EXT:dpf/Resources/Private/Language/locallang_db.xlf:tx_dpf_domain_model_metadataobject.input_option_list', |
| 260 | - 'config' => array( |
|
| 260 | + 'config' => array ( |
|
| 261 | 261 | 'type' => 'select', |
| 262 | 262 | 'renderType' => 'selectSingle', |
| 263 | - 'items' => array( |
|
| 264 | - array('', 0), |
|
| 263 | + 'items' => array ( |
|
| 264 | + array ('', 0), |
|
| 265 | 265 | ), |
| 266 | 266 | 'foreign_table' => 'tx_dpf_domain_model_inputoptionlist', |
| 267 | 267 | 'foreign_table_where' => ' AND (tx_dpf_domain_model_inputoptionlist.pid=###CURRENT_PID###) AND (tx_dpf_domain_model_inputoptionlist.sys_language_uid = 0)', |
@@ -269,45 +269,45 @@ discard block |
||
| 269 | 269 | 'maxitems' => 1, |
| 270 | 270 | ), |
| 271 | 271 | ), |
| 272 | - 'default_value' => array( |
|
| 272 | + 'default_value' => array ( |
|
| 273 | 273 | 'exclude' => 1, |
| 274 | 274 | 'label' => 'LLL:EXT:dpf/Resources/Private/Language/locallang_db.xlf:tx_dpf_domain_model_metadataobject.default_value', |
| 275 | - 'config' => array( |
|
| 275 | + 'config' => array ( |
|
| 276 | 276 | 'type' => 'text', |
| 277 | 277 | 'cols' => 20, |
| 278 | 278 | 'rows' => 3, |
| 279 | 279 | 'eval' => 'trim', |
| 280 | 280 | ), |
| 281 | 281 | ), |
| 282 | - 'fill_out_service' => array( |
|
| 282 | + 'fill_out_service' => array ( |
|
| 283 | 283 | 'exclude' => 1, |
| 284 | 284 | 'l10n_mode' => 'exclude', |
| 285 | 285 | 'label' => 'LLL:EXT:dpf/Resources/Private/Language/locallang_db.xlf:tx_dpf_domain_model_metadataobject.fill_out_service', |
| 286 | - 'config' => array( |
|
| 286 | + 'config' => array ( |
|
| 287 | 287 | 'type' => 'select', |
| 288 | 288 | 'renderType' => 'selectSingle', |
| 289 | - 'items' => array( |
|
| 290 | - array('', 0), |
|
| 291 | - 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), |
|
| 292 | - 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), |
|
| 289 | + 'items' => array ( |
|
| 290 | + array ('', 0), |
|
| 291 | + 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), |
|
| 292 | + 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), |
|
| 293 | 293 | ), |
| 294 | 294 | 'size' => 1, |
| 295 | 295 | 'maxitems' => 1, |
| 296 | 296 | 'eval' => '', |
| 297 | 297 | ), |
| 298 | 298 | ), |
| 299 | - 'gnd_field_uid' => array( |
|
| 300 | - 'displayCond' => 'FIELD:fill_out_service:=:'.\EWW\Dpf\Domain\Model\MetadataObject::FILL_OUT_SERVICE_GND, |
|
| 299 | + 'gnd_field_uid' => array ( |
|
| 300 | + 'displayCond' => 'FIELD:fill_out_service:=:' . \EWW\Dpf\Domain\Model\MetadataObject::FILL_OUT_SERVICE_GND, |
|
| 301 | 301 | 'exclude' => 0, |
| 302 | 302 | 'label' => 'GND Nr Feld', |
| 303 | - 'config' => array( |
|
| 303 | + 'config' => array ( |
|
| 304 | 304 | 'type' => 'input', |
| 305 | 305 | 'size' => 30, |
| 306 | 306 | 'eval' => 'trim', |
| 307 | 307 | ), |
| 308 | 308 | ), |
| 309 | - 'metadatagroup' => array( |
|
| 310 | - 'config' => array( |
|
| 309 | + 'metadatagroup' => array ( |
|
| 310 | + 'config' => array ( |
|
| 311 | 311 | 'type' => 'passthrough', |
| 312 | 312 | ), |
| 313 | 313 | ), |
@@ -21,7 +21,7 @@ discard block |
||
| 21 | 21 | $modulName = 'qucosaMain'; |
| 22 | 22 | //Legt die Position des Moduls fest, hier nach Modul "web" |
| 23 | 23 | if (!isset($TBE_MODULES[$modulName])) { |
| 24 | - $temp_TBE_MODULES = array(); |
|
| 24 | + $temp_TBE_MODULES = array (); |
|
| 25 | 25 | foreach ($TBE_MODULES as $key => $val) { |
| 26 | 26 | if ($key == 'file') { |
| 27 | 27 | $temp_TBE_MODULES[$key] = $val; |
@@ -38,8 +38,8 @@ discard block |
||
| 38 | 38 | 'qucosaMain', |
| 39 | 39 | '', |
| 40 | 40 | '', |
| 41 | - array(), |
|
| 42 | - array( |
|
| 41 | + array (), |
|
| 42 | + array ( |
|
| 43 | 43 | 'access' => 'user,group', |
| 44 | 44 | 'labels' => 'LLL:EXT:' . $_EXTKEY . '/Resources/Private/Language/locallang_qucosa_mod_main.xlf', |
| 45 | 45 | ) |
@@ -50,7 +50,7 @@ discard block |
||
| 50 | 50 | 'qucosaMain', |
| 51 | 51 | 'qucosamanager', |
| 52 | 52 | '', |
| 53 | - array( |
|
| 53 | + array ( |
|
| 54 | 54 | 'Document' => 'list, delete, discard, release, duplicate, ' |
| 55 | 55 | . 'deleteConfirm, releaseConfirm, activateConfirm, inactivateConfirm, deleteConfirm, discardConfirm, restoreConfirm, ' |
| 56 | 56 | . 'listNew, listEdit, activate, inactivate, restore', |
@@ -60,7 +60,7 @@ discard block |
||
| 60 | 60 | 'Search' => 'list, search, import, doubletCheck, nextResults, extendedSearch, latest', |
| 61 | 61 | 'Gnd' => 'search', |
| 62 | 62 | ), |
| 63 | - array( |
|
| 63 | + array ( |
|
| 64 | 64 | 'access' => 'user,group', |
| 65 | 65 | 'icon' => 'EXT:' . $_EXTKEY . '/ext_icon.gif', |
| 66 | 66 | 'labels' => 'LLL:EXT:' . $_EXTKEY . '/Resources/Private/Language/locallang_qucosa_mod_manager.xlf', |
@@ -26,8 +26,7 @@ discard block |
||
| 26 | 26 | /** |
| 27 | 27 | * DocumentController |
| 28 | 28 | */ |
| 29 | -class DocumentController extends \EWW\Dpf\Controller\AbstractController |
|
| 30 | -{ |
|
| 29 | +class DocumentController extends \EWW\Dpf\Controller\AbstractController { |
|
| 31 | 30 | |
| 32 | 31 | /** |
| 33 | 32 | * documentRepository |
@@ -50,8 +49,7 @@ discard block |
||
| 50 | 49 | * |
| 51 | 50 | * @return void |
| 52 | 51 | */ |
| 53 | - public function listAction() |
|
| 54 | - { |
|
| 52 | + public function listAction() { |
|
| 55 | 53 | $documents = $this->documentRepository->findAll(); |
| 56 | 54 | |
| 57 | 55 | if ($this->request->hasArgument('message')) { |
@@ -65,14 +63,12 @@ discard block |
||
| 65 | 63 | $this->view->assign('documents', $documents); |
| 66 | 64 | } |
| 67 | 65 | |
| 68 | - public function listNewAction() |
|
| 69 | - { |
|
| 66 | + public function listNewAction() { |
|
| 70 | 67 | $documents = $this->documentRepository->getNewDocuments(); |
| 71 | 68 | $this->view->assign('documents', $documents); |
| 72 | 69 | } |
| 73 | 70 | |
| 74 | - public function listEditAction() |
|
| 75 | - { |
|
| 71 | + public function listEditAction() { |
|
| 76 | 72 | $documents = $this->documentRepository->getInProgressDocuments(); |
| 77 | 73 | $this->view->assign('documents', $documents); |
| 78 | 74 | } |
@@ -83,8 +79,7 @@ discard block |
||
| 83 | 79 | * @param \EWW\Dpf\Domain\Model\Document $document |
| 84 | 80 | * @return void |
| 85 | 81 | */ |
| 86 | - public function discardConfirmAction(\EWW\Dpf\Domain\Model\Document $document) |
|
| 87 | - { |
|
| 82 | + public function discardConfirmAction(\EWW\Dpf\Domain\Model\Document $document) { |
|
| 88 | 83 | $this->view->assign('document', $document); |
| 89 | 84 | } |
| 90 | 85 | |
@@ -94,8 +89,7 @@ discard block |
||
| 94 | 89 | * @param \EWW\Dpf\Domain\Model\Document $document |
| 95 | 90 | * @return void |
| 96 | 91 | */ |
| 97 | - public function discardAction(\EWW\Dpf\Domain\Model\Document $document) |
|
| 98 | - { |
|
| 92 | + public function discardAction(\EWW\Dpf\Domain\Model\Document $document) { |
|
| 99 | 93 | // remove document from local index |
| 100 | 94 | $elasticsearchRepository = $this->objectManager->get(ElasticsearchRepository::class); |
| 101 | 95 | // send document to index |
@@ -121,8 +115,7 @@ discard block |
||
| 121 | 115 | * @param \EWW\Dpf\Domain\Model\Document $document |
| 122 | 116 | * @return void |
| 123 | 117 | */ |
| 124 | - public function duplicateAction(\EWW\Dpf\Domain\Model\Document $document) |
|
| 125 | - { |
|
| 118 | + public function duplicateAction(\EWW\Dpf\Domain\Model\Document $document) { |
|
| 126 | 119 | |
| 127 | 120 | $args = array(); |
| 128 | 121 | |
@@ -172,8 +165,7 @@ discard block |
||
| 172 | 165 | * @param string $releaseType |
| 173 | 166 | * @return void |
| 174 | 167 | */ |
| 175 | - public function releaseConfirmAction(\EWW\Dpf\Domain\Model\Document $document, $releaseType) |
|
| 176 | - { |
|
| 168 | + public function releaseConfirmAction(\EWW\Dpf\Domain\Model\Document $document, $releaseType) { |
|
| 177 | 169 | $this->view->assign('releaseType', $releaseType); |
| 178 | 170 | $this->view->assign('document', $document); |
| 179 | 171 | } |
@@ -184,8 +176,7 @@ discard block |
||
| 184 | 176 | * @param \EWW\Dpf\Domain\Model\Document $document |
| 185 | 177 | * @return void |
| 186 | 178 | */ |
| 187 | - public function releaseAction(\EWW\Dpf\Domain\Model\Document $document) |
|
| 188 | - { |
|
| 179 | + public function releaseAction(\EWW\Dpf\Domain\Model\Document $document) { |
|
| 189 | 180 | |
| 190 | 181 | // generate URN if needed |
| 191 | 182 | $qucosaId = $document->getObjectIdentifier(); |
@@ -253,8 +244,7 @@ discard block |
||
| 253 | 244 | * @param \EWW\Dpf\Domain\Model\Document $document |
| 254 | 245 | * @return void |
| 255 | 246 | */ |
| 256 | - public function restoreConfirmAction(\EWW\Dpf\Domain\Model\Document $document) |
|
| 257 | - { |
|
| 247 | + public function restoreConfirmAction(\EWW\Dpf\Domain\Model\Document $document) { |
|
| 258 | 248 | $this->view->assign('document', $document); |
| 259 | 249 | } |
| 260 | 250 | |
@@ -264,8 +254,7 @@ discard block |
||
| 264 | 254 | * @param \EWW\Dpf\Domain\Model\Document $document |
| 265 | 255 | * @return void |
| 266 | 256 | */ |
| 267 | - public function restoreAction(\EWW\Dpf\Domain\Model\Document $document) |
|
| 268 | - { |
|
| 257 | + public function restoreAction(\EWW\Dpf\Domain\Model\Document $document) { |
|
| 269 | 258 | |
| 270 | 259 | $documentTransferManager = $this->objectManager->get(DocumentTransferManager::class); |
| 271 | 260 | $remoteRepository = $this->objectManager->get(FedoraRepository::class); |
@@ -290,8 +279,7 @@ discard block |
||
| 290 | 279 | * @param \EWW\Dpf\Domain\Model\Document $document |
| 291 | 280 | * @return void |
| 292 | 281 | */ |
| 293 | - public function deleteConfirmAction(\EWW\Dpf\Domain\Model\Document $document) |
|
| 294 | - { |
|
| 282 | + public function deleteConfirmAction(\EWW\Dpf\Domain\Model\Document $document) { |
|
| 295 | 283 | $this->view->assign('document', $document); |
| 296 | 284 | } |
| 297 | 285 | |
@@ -301,8 +289,7 @@ discard block |
||
| 301 | 289 | * @param \EWW\Dpf\Domain\Model\Document $document |
| 302 | 290 | * @return void |
| 303 | 291 | */ |
| 304 | - public function deleteAction(\EWW\Dpf\Domain\Model\Document $document) |
|
| 305 | - { |
|
| 292 | + public function deleteAction(\EWW\Dpf\Domain\Model\Document $document) { |
|
| 306 | 293 | |
| 307 | 294 | $documentTransferManager = $this->objectManager->get(DocumentTransferManager::class); |
| 308 | 295 | $remoteRepository = $this->objectManager->get(FedoraRepository::class); |
@@ -327,8 +314,7 @@ discard block |
||
| 327 | 314 | * @param \EWW\Dpf\Domain\Model\Document $document |
| 328 | 315 | * @return void |
| 329 | 316 | */ |
| 330 | - public function activateConfirmAction(\EWW\Dpf\Domain\Model\Document $document) |
|
| 331 | - { |
|
| 317 | + public function activateConfirmAction(\EWW\Dpf\Domain\Model\Document $document) { |
|
| 332 | 318 | $this->view->assign('document', $document); |
| 333 | 319 | } |
| 334 | 320 | |
@@ -338,8 +324,7 @@ discard block |
||
| 338 | 324 | * @param \EWW\Dpf\Domain\Model\Document $document |
| 339 | 325 | * @return void |
| 340 | 326 | */ |
| 341 | - public function activateAction(\EWW\Dpf\Domain\Model\Document $document) |
|
| 342 | - { |
|
| 327 | + public function activateAction(\EWW\Dpf\Domain\Model\Document $document) { |
|
| 343 | 328 | |
| 344 | 329 | $documentTransferManager = $this->objectManager->get(DocumentTransferManager::class); |
| 345 | 330 | $remoteRepository = $this->objectManager->get(FedoraRepository::class); |
@@ -364,8 +349,7 @@ discard block |
||
| 364 | 349 | * @param \EWW\Dpf\Domain\Model\Document $document |
| 365 | 350 | * @return void |
| 366 | 351 | */ |
| 367 | - public function inactivateConfirmAction(\EWW\Dpf\Domain\Model\Document $document) |
|
| 368 | - { |
|
| 352 | + public function inactivateConfirmAction(\EWW\Dpf\Domain\Model\Document $document) { |
|
| 369 | 353 | $this->view->assign('document', $document); |
| 370 | 354 | } |
| 371 | 355 | |
@@ -375,8 +359,7 @@ discard block |
||
| 375 | 359 | * @param \EWW\Dpf\Domain\Model\Document $document |
| 376 | 360 | * @return void |
| 377 | 361 | */ |
| 378 | - public function inactivateAction(\EWW\Dpf\Domain\Model\Document $document) |
|
| 379 | - { |
|
| 362 | + public function inactivateAction(\EWW\Dpf\Domain\Model\Document $document) { |
|
| 380 | 363 | |
| 381 | 364 | $documentTransferManager = $this->objectManager->get(DocumentTransferManager::class); |
| 382 | 365 | $remoteRepository = $this->objectManager->get(FedoraRepository::class); |
@@ -395,8 +378,7 @@ discard block |
||
| 395 | 378 | $this->redirect('list'); |
| 396 | 379 | } |
| 397 | 380 | |
| 398 | - protected function getStoragePID() |
|
| 399 | - { |
|
| 381 | + protected function getStoragePID() { |
|
| 400 | 382 | return $this->settings['persistence']['classes']['EWW\Dpf\Domain\Model\Document']['newRecordStoragePid']; |
| 401 | 383 | } |
| 402 | 384 | |
@@ -406,8 +388,7 @@ discard block |
||
| 406 | 388 | * @param string $key |
| 407 | 389 | * @param string $severity |
| 408 | 390 | */ |
| 409 | - protected function flashMessage(\EWW\Dpf\Domain\Model\Document $document, $key, $severity) |
|
| 410 | - { |
|
| 391 | + protected function flashMessage(\EWW\Dpf\Domain\Model\Document $document, $key, $severity) { |
|
| 411 | 392 | |
| 412 | 393 | // Show success or failure of the action in a flash message |
| 413 | 394 | $args[] = $document->getTitle(); |
@@ -35,7 +35,7 @@ discard block |
||
| 35 | 35 | * @var \EWW\Dpf\Domain\Repository\DocumentRepository |
| 36 | 36 | * @inject |
| 37 | 37 | */ |
| 38 | - protected $documentRepository = null; |
|
| 38 | + protected $documentRepository = NULL; |
|
| 39 | 39 | |
| 40 | 40 | /** |
| 41 | 41 | * persistence manager |
@@ -420,7 +420,7 @@ discard block |
||
| 420 | 420 | $message, |
| 421 | 421 | '', |
| 422 | 422 | $severity, |
| 423 | - true |
|
| 423 | + TRUE |
|
| 424 | 424 | ); |
| 425 | 425 | |
| 426 | 426 | } |
@@ -17,8 +17,7 @@ discard block |
||
| 17 | 17 | /** |
| 18 | 18 | * Document |
| 19 | 19 | */ |
| 20 | -class Document extends \TYPO3\CMS\Extbase\DomainObject\AbstractEntity |
|
| 21 | -{ |
|
| 20 | +class Document extends \TYPO3\CMS\Extbase\DomainObject\AbstractEntity { |
|
| 22 | 21 | |
| 23 | 22 | /** |
| 24 | 23 | * title |
@@ -137,8 +136,7 @@ discard block |
||
| 137 | 136 | /** |
| 138 | 137 | * __construct |
| 139 | 138 | */ |
| 140 | - public function __construct() |
|
| 141 | - { |
|
| 139 | + public function __construct() { |
|
| 142 | 140 | //Do not remove the next line: It would break the functionality |
| 143 | 141 | $this->initStorageObjects(); |
| 144 | 142 | } |
@@ -148,8 +146,7 @@ discard block |
||
| 148 | 146 | * |
| 149 | 147 | * @return void |
| 150 | 148 | */ |
| 151 | - protected function initStorageObjects() |
|
| 152 | - { |
|
| 149 | + protected function initStorageObjects() { |
|
| 153 | 150 | $this->file = new \TYPO3\CMS\Extbase\Persistence\ObjectStorage(); |
| 154 | 151 | } |
| 155 | 152 | |
@@ -158,8 +155,7 @@ discard block |
||
| 158 | 155 | * |
| 159 | 156 | * @return string $title |
| 160 | 157 | */ |
| 161 | - public function getTitle() |
|
| 162 | - { |
|
| 158 | + public function getTitle() { |
|
| 163 | 159 | return $this->title; |
| 164 | 160 | } |
| 165 | 161 | |
@@ -169,8 +165,7 @@ discard block |
||
| 169 | 165 | * @param string $title |
| 170 | 166 | * @return void |
| 171 | 167 | */ |
| 172 | - public function setTitle($title) |
|
| 173 | - { |
|
| 168 | + public function setTitle($title) { |
|
| 174 | 169 | $this->title = $title; |
| 175 | 170 | //htmlspecialchars_decode($title,ENT_QUOTES); |
| 176 | 171 | } |
@@ -180,8 +175,7 @@ discard block |
||
| 180 | 175 | * |
| 181 | 176 | * @return array $authors |
| 182 | 177 | */ |
| 183 | - public function getAuthors() |
|
| 184 | - { |
|
| 178 | + public function getAuthors() { |
|
| 185 | 179 | return array_map('trim', explode(";", $this->authors)); |
| 186 | 180 | } |
| 187 | 181 | |
@@ -191,8 +185,7 @@ discard block |
||
| 191 | 185 | * @param array $authors |
| 192 | 186 | * @return void |
| 193 | 187 | */ |
| 194 | - public function setAuthors($authors) |
|
| 195 | - { |
|
| 188 | + public function setAuthors($authors) { |
|
| 196 | 189 | $authors = implode("; ", $authors); |
| 197 | 190 | $this->authors = $authors; |
| 198 | 191 | } |
@@ -202,8 +195,7 @@ discard block |
||
| 202 | 195 | * |
| 203 | 196 | * @return string $xmlData |
| 204 | 197 | */ |
| 205 | - public function getXmlData() |
|
| 206 | - { |
|
| 198 | + public function getXmlData() { |
|
| 207 | 199 | return $this->xmlData; |
| 208 | 200 | } |
| 209 | 201 | |
@@ -213,8 +205,7 @@ discard block |
||
| 213 | 205 | * @param string $xmlData |
| 214 | 206 | * @return void |
| 215 | 207 | */ |
| 216 | - public function setXmlData($xmlData) |
|
| 217 | - { |
|
| 208 | + public function setXmlData($xmlData) { |
|
| 218 | 209 | $this->xmlData = $xmlData; |
| 219 | 210 | } |
| 220 | 211 | |
@@ -223,8 +214,7 @@ discard block |
||
| 223 | 214 | * |
| 224 | 215 | * @return string $slubInfoData |
| 225 | 216 | */ |
| 226 | - public function getSlubInfoData() |
|
| 227 | - { |
|
| 217 | + public function getSlubInfoData() { |
|
| 228 | 218 | return $this->slubInfoData; |
| 229 | 219 | } |
| 230 | 220 | |
@@ -233,8 +223,7 @@ discard block |
||
| 233 | 223 | * |
| 234 | 224 | * @return string $slubInfoData |
| 235 | 225 | */ |
| 236 | - public function setSlubInfoData($slubInfoData) |
|
| 237 | - { |
|
| 226 | + public function setSlubInfoData($slubInfoData) { |
|
| 238 | 227 | $this->slubInfoData = $slubInfoData; |
| 239 | 228 | } |
| 240 | 229 | |
@@ -243,8 +232,7 @@ discard block |
||
| 243 | 232 | * |
| 244 | 233 | * @return \EWW\Dpf\Domain\Model\DocumentType $documentType |
| 245 | 234 | */ |
| 246 | - public function getDocumentType() |
|
| 247 | - { |
|
| 235 | + public function getDocumentType() { |
|
| 248 | 236 | return $this->documentType; |
| 249 | 237 | } |
| 250 | 238 | |
@@ -254,8 +242,7 @@ discard block |
||
| 254 | 242 | * @param \EWW\Dpf\Domain\Model\DocumentType $documentType |
| 255 | 243 | * @return void |
| 256 | 244 | */ |
| 257 | - public function setDocumentType(\EWW\Dpf\Domain\Model\DocumentType $documentType) |
|
| 258 | - { |
|
| 245 | + public function setDocumentType(\EWW\Dpf\Domain\Model\DocumentType $documentType) { |
|
| 259 | 246 | $this->documentType = $documentType; |
| 260 | 247 | } |
| 261 | 248 | |
@@ -264,8 +251,7 @@ discard block |
||
| 264 | 251 | * |
| 265 | 252 | * @return string |
| 266 | 253 | */ |
| 267 | - public function getObjectIdentifier() |
|
| 268 | - { |
|
| 254 | + public function getObjectIdentifier() { |
|
| 269 | 255 | return $this->objectIdentifier; |
| 270 | 256 | } |
| 271 | 257 | |
@@ -275,8 +261,7 @@ discard block |
||
| 275 | 261 | * @param string $objectIdentifier |
| 276 | 262 | * @return void |
| 277 | 263 | */ |
| 278 | - public function setObjectIdentifier($objectIdentifier) |
|
| 279 | - { |
|
| 264 | + public function setObjectIdentifier($objectIdentifier) { |
|
| 280 | 265 | $this->objectIdentifier = $objectIdentifier; |
| 281 | 266 | } |
| 282 | 267 | |
@@ -285,8 +270,7 @@ discard block |
||
| 285 | 270 | * |
| 286 | 271 | * @return string |
| 287 | 272 | */ |
| 288 | - public function getReservedObjectIdentifier() |
|
| 289 | - { |
|
| 273 | + public function getReservedObjectIdentifier() { |
|
| 290 | 274 | return $this->reservedObjectIdentifier; |
| 291 | 275 | } |
| 292 | 276 | |
@@ -296,8 +280,7 @@ discard block |
||
| 296 | 280 | * @param string $reservedObjectIdentifier |
| 297 | 281 | * @return void |
| 298 | 282 | */ |
| 299 | - public function setReservedObjectIdentifier($reservedObjectIdentifier) |
|
| 300 | - { |
|
| 283 | + public function setReservedObjectIdentifier($reservedObjectIdentifier) { |
|
| 301 | 284 | $this->reservedObjectIdentifier = $reservedObjectIdentifier; |
| 302 | 285 | } |
| 303 | 286 | |
@@ -306,8 +289,7 @@ discard block |
||
| 306 | 289 | * |
| 307 | 290 | * @return string |
| 308 | 291 | */ |
| 309 | - public function getState() |
|
| 310 | - { |
|
| 292 | + public function getState() { |
|
| 311 | 293 | return $this->state; |
| 312 | 294 | } |
| 313 | 295 | |
@@ -317,8 +299,7 @@ discard block |
||
| 317 | 299 | * @param string $state |
| 318 | 300 | * @return void |
| 319 | 301 | */ |
| 320 | - public function setState($state) |
|
| 321 | - { |
|
| 302 | + public function setState($state) { |
|
| 322 | 303 | $this->state = $state; |
| 323 | 304 | } |
| 324 | 305 | |
@@ -327,8 +308,7 @@ discard block |
||
| 327 | 308 | * |
| 328 | 309 | * @return string |
| 329 | 310 | */ |
| 330 | - public function getTransferStatus() |
|
| 331 | - { |
|
| 311 | + public function getTransferStatus() { |
|
| 332 | 312 | return $this->transferStatus; |
| 333 | 313 | } |
| 334 | 314 | |
@@ -338,8 +318,7 @@ discard block |
||
| 338 | 318 | * @param string |
| 339 | 319 | * @return void |
| 340 | 320 | */ |
| 341 | - public function setTransferStatus($transferStatus) |
|
| 342 | - { |
|
| 321 | + public function setTransferStatus($transferStatus) { |
|
| 343 | 322 | $this->transferStatus = $transferStatus; |
| 344 | 323 | } |
| 345 | 324 | |
@@ -348,8 +327,7 @@ discard block |
||
| 348 | 327 | * |
| 349 | 328 | * @return integer |
| 350 | 329 | */ |
| 351 | - public function getTransferDate() |
|
| 352 | - { |
|
| 330 | + public function getTransferDate() { |
|
| 353 | 331 | return $this->transferDate; |
| 354 | 332 | } |
| 355 | 333 | |
@@ -359,8 +337,7 @@ discard block |
||
| 359 | 337 | * @param integer $transferDate |
| 360 | 338 | * @return void |
| 361 | 339 | */ |
| 362 | - public function setTransferDate($transferDate) |
|
| 363 | - { |
|
| 340 | + public function setTransferDate($transferDate) { |
|
| 364 | 341 | $this->transferDate = $transferDate; |
| 365 | 342 | } |
| 366 | 343 | |
@@ -369,8 +346,7 @@ discard block |
||
| 369 | 346 | * |
| 370 | 347 | * @var integer |
| 371 | 348 | */ |
| 372 | - public function getTransferErrorCode() |
|
| 373 | - { |
|
| 349 | + public function getTransferErrorCode() { |
|
| 374 | 350 | return $this->transferErrorCode; |
| 375 | 351 | } |
| 376 | 352 | |
@@ -380,8 +356,7 @@ discard block |
||
| 380 | 356 | * @param integer $transferErrorCode |
| 381 | 357 | * @return void |
| 382 | 358 | */ |
| 383 | - public function setTransferErrorCode($transferErrorCode) |
|
| 384 | - { |
|
| 359 | + public function setTransferErrorCode($transferErrorCode) { |
|
| 385 | 360 | $this->transferErrorCode = $transferErrorCode; |
| 386 | 361 | } |
| 387 | 362 | |
@@ -390,8 +365,7 @@ discard block |
||
| 390 | 365 | * |
| 391 | 366 | * @var string |
| 392 | 367 | */ |
| 393 | - public function getTransferResponse() |
|
| 394 | - { |
|
| 368 | + public function getTransferResponse() { |
|
| 395 | 369 | return $this->transferResponse; |
| 396 | 370 | } |
| 397 | 371 | |
@@ -401,8 +375,7 @@ discard block |
||
| 401 | 375 | * @param string $transferResponse |
| 402 | 376 | * @return void |
| 403 | 377 | */ |
| 404 | - public function setTransferResponse($transferResponse) |
|
| 405 | - { |
|
| 378 | + public function setTransferResponse($transferResponse) { |
|
| 406 | 379 | $this->transferResponse = $transferResponse; |
| 407 | 380 | } |
| 408 | 381 | |
@@ -411,8 +384,7 @@ discard block |
||
| 411 | 384 | * |
| 412 | 385 | * @var integer |
| 413 | 386 | */ |
| 414 | - public function getTransferHttpStatus() |
|
| 415 | - { |
|
| 387 | + public function getTransferHttpStatus() { |
|
| 416 | 388 | return $this->transferHttpStatus; |
| 417 | 389 | } |
| 418 | 390 | |
@@ -422,8 +394,7 @@ discard block |
||
| 422 | 394 | * @param integer $transferHttpStatus |
| 423 | 395 | * @return void |
| 424 | 396 | */ |
| 425 | - public function setTransferHttpStatus($transferHttpStatus) |
|
| 426 | - { |
|
| 397 | + public function setTransferHttpStatus($transferHttpStatus) { |
|
| 427 | 398 | $this->transferHttpStatus = $transferHttpStatus; |
| 428 | 399 | } |
| 429 | 400 | |
@@ -433,8 +404,7 @@ discard block |
||
| 433 | 404 | * @param \EWW\Dpf\Domain\Model\File $file |
| 434 | 405 | * @return void |
| 435 | 406 | */ |
| 436 | - public function addFile(\EWW\Dpf\Domain\Model\File $file) |
|
| 437 | - { |
|
| 407 | + public function addFile(\EWW\Dpf\Domain\Model\File $file) { |
|
| 438 | 408 | $this->file->attach($file); |
| 439 | 409 | } |
| 440 | 410 | |
@@ -444,8 +414,7 @@ discard block |
||
| 444 | 414 | * @param \EWW\Dpf\Domain\Model\File $fileToRemove The File to be removed |
| 445 | 415 | * @return void |
| 446 | 416 | */ |
| 447 | - public function removeFile(\EWW\Dpf\Domain\Model\File $fileToRemove) |
|
| 448 | - { |
|
| 417 | + public function removeFile(\EWW\Dpf\Domain\Model\File $fileToRemove) { |
|
| 449 | 418 | $this->file->detach($fileToRemove); |
| 450 | 419 | } |
| 451 | 420 | |
@@ -454,8 +423,7 @@ discard block |
||
| 454 | 423 | * |
| 455 | 424 | * @return \TYPO3\CMS\Extbase\Persistence\ObjectStorage<\EWW\Dpf\Domain\Model\File> $file |
| 456 | 425 | */ |
| 457 | - public function getFile() |
|
| 458 | - { |
|
| 426 | + public function getFile() { |
|
| 459 | 427 | return $this->file; |
| 460 | 428 | } |
| 461 | 429 | |
@@ -465,8 +433,7 @@ discard block |
||
| 465 | 433 | * @param \TYPO3\CMS\Extbase\Persistence\ObjectStorage<\EWW\Dpf\Domain\Model\File> $file |
| 466 | 434 | * @return void |
| 467 | 435 | */ |
| 468 | - public function setFile(\TYPO3\CMS\Extbase\Persistence\ObjectStorage $file) |
|
| 469 | - { |
|
| 436 | + public function setFile(\TYPO3\CMS\Extbase\Persistence\ObjectStorage $file) { |
|
| 470 | 437 | $this->file = $file; |
| 471 | 438 | } |
| 472 | 439 | |
@@ -475,8 +442,7 @@ discard block |
||
| 475 | 442 | * |
| 476 | 443 | * @return array |
| 477 | 444 | */ |
| 478 | - public function getFileData() |
|
| 479 | - { |
|
| 445 | + public function getFileData() { |
|
| 480 | 446 | |
| 481 | 447 | $fileId = new \EWW\Dpf\Services\Transfer\FileId($this); |
| 482 | 448 | |
@@ -524,8 +490,7 @@ discard block |
||
| 524 | 490 | * |
| 525 | 491 | * @return array |
| 526 | 492 | */ |
| 527 | - public function getCurrentFileData() |
|
| 528 | - { |
|
| 493 | + public function getCurrentFileData() { |
|
| 529 | 494 | |
| 530 | 495 | $fileId = new \EWW\Dpf\Services\Transfer\FileId($this); |
| 531 | 496 | |
@@ -573,8 +538,7 @@ discard block |
||
| 573 | 538 | * |
| 574 | 539 | * @return boolean $changed |
| 575 | 540 | */ |
| 576 | - public function getChanged() |
|
| 577 | - { |
|
| 541 | + public function getChanged() { |
|
| 578 | 542 | return $this->changed; |
| 579 | 543 | } |
| 580 | 544 | |
@@ -584,8 +548,7 @@ discard block |
||
| 584 | 548 | * @param boolean $changed |
| 585 | 549 | * @return void |
| 586 | 550 | */ |
| 587 | - public function setChanged($changed) |
|
| 588 | - { |
|
| 551 | + public function setChanged($changed) { |
|
| 589 | 552 | $this->changed = $changed; |
| 590 | 553 | } |
| 591 | 554 | |
@@ -594,8 +557,7 @@ discard block |
||
| 594 | 557 | * |
| 595 | 558 | * @return boolean $valid |
| 596 | 559 | */ |
| 597 | - public function getValid() |
|
| 598 | - { |
|
| 560 | + public function getValid() { |
|
| 599 | 561 | return $this->valid; |
| 600 | 562 | } |
| 601 | 563 | |
@@ -605,8 +567,7 @@ discard block |
||
| 605 | 567 | * @param boolean $valid |
| 606 | 568 | * @return void |
| 607 | 569 | */ |
| 608 | - public function setValid($valid) |
|
| 609 | - { |
|
| 570 | + public function setValid($valid) { |
|
| 610 | 571 | $this->valid = $valid; |
| 611 | 572 | } |
| 612 | 573 | |
@@ -615,8 +576,7 @@ discard block |
||
| 615 | 576 | * |
| 616 | 577 | * @return string |
| 617 | 578 | */ |
| 618 | - public function getDateIssued() |
|
| 619 | - { |
|
| 579 | + public function getDateIssued() { |
|
| 620 | 580 | return empty($this->dateIssued) ? '' : $this->dateIssued; |
| 621 | 581 | } |
| 622 | 582 | |
@@ -626,8 +586,7 @@ discard block |
||
| 626 | 586 | * @param string $dateIssued |
| 627 | 587 | * @return void |
| 628 | 588 | */ |
| 629 | - public function setDateIssued($dateIssued) |
|
| 630 | - { |
|
| 589 | + public function setDateIssued($dateIssued) { |
|
| 631 | 590 | $this->dateIssued = empty($dateIssued) ? '' : $dateIssued; |
| 632 | 591 | } |
| 633 | 592 | |
@@ -636,8 +595,7 @@ discard block |
||
| 636 | 595 | * |
| 637 | 596 | * @return boolean |
| 638 | 597 | */ |
| 639 | - public function isDeleteAllowed() |
|
| 640 | - { |
|
| 598 | + public function isDeleteAllowed() { |
|
| 641 | 599 | return ($this->state == self::OBJECT_STATE_INACTIVE || |
| 642 | 600 | $this->state == self::OBJECT_STATE_ACTIVE) && |
| 643 | 601 | !empty($this->objectIdentifier); |
@@ -648,8 +606,7 @@ discard block |
||
| 648 | 606 | * |
| 649 | 607 | * @return boolean |
| 650 | 608 | */ |
| 651 | - public function isActive() |
|
| 652 | - { |
|
| 609 | + public function isActive() { |
|
| 653 | 610 | return $this->state == self::OBJECT_STATE_ACTIVE || |
| 654 | 611 | $this->state == self::OBJECT_STATE_NEW || |
| 655 | 612 | ($this->state != self::OBJECT_STATE_INACTIVE && |
@@ -662,8 +619,7 @@ discard block |
||
| 662 | 619 | * |
| 663 | 620 | * @return boolean |
| 664 | 621 | */ |
| 665 | - public function isActivationChangeAllowed() |
|
| 666 | - { |
|
| 622 | + public function isActivationChangeAllowed() { |
|
| 667 | 623 | return $this->state == self::OBJECT_STATE_INACTIVE || |
| 668 | 624 | $this->state == self::OBJECT_STATE_ACTIVE; |
| 669 | 625 | } |
@@ -673,8 +629,7 @@ discard block |
||
| 673 | 629 | * |
| 674 | 630 | * @return boolean |
| 675 | 631 | */ |
| 676 | - public function isDeleteRemote() |
|
| 677 | - { |
|
| 632 | + public function isDeleteRemote() { |
|
| 678 | 633 | return $this->state == self::OBJECT_STATE_LOCALLY_DELETED; |
| 679 | 634 | } |
| 680 | 635 | |
@@ -683,8 +638,7 @@ discard block |
||
| 683 | 638 | * |
| 684 | 639 | * @return boolean |
| 685 | 640 | */ |
| 686 | - public function isRestoreRemote() |
|
| 687 | - { |
|
| 641 | + public function isRestoreRemote() { |
|
| 688 | 642 | return $this->state == self::OBJECT_STATE_DELETED; |
| 689 | 643 | } |
| 690 | 644 | |
@@ -693,8 +647,7 @@ discard block |
||
| 693 | 647 | * |
| 694 | 648 | * @return boolean |
| 695 | 649 | */ |
| 696 | - public function isActivateRemote() |
|
| 697 | - { |
|
| 650 | + public function isActivateRemote() { |
|
| 698 | 651 | return $this->state == self::OBJECT_STATE_INACTIVE; |
| 699 | 652 | } |
| 700 | 653 | |
@@ -703,8 +656,7 @@ discard block |
||
| 703 | 656 | * |
| 704 | 657 | * @return boolean |
| 705 | 658 | */ |
| 706 | - public function isInactivateRemote() |
|
| 707 | - { |
|
| 659 | + public function isInactivateRemote() { |
|
| 708 | 660 | return $this->state == self::OBJECT_STATE_ACTIVE; |
| 709 | 661 | } |
| 710 | 662 | |
@@ -713,8 +665,7 @@ discard block |
||
| 713 | 665 | * |
| 714 | 666 | * @return boolean |
| 715 | 667 | */ |
| 716 | - public function isIngestRemote() |
|
| 717 | - { |
|
| 668 | + public function isIngestRemote() { |
|
| 718 | 669 | return ($this->state == self::OBJECT_STATE_NEW || $this->state == self::OBJECT_STATE_ACTIVE) && empty($this->objectIdentifier); |
| 719 | 670 | } |
| 720 | 671 | |
@@ -723,8 +674,7 @@ discard block |
||
| 723 | 674 | * |
| 724 | 675 | * @return boolean |
| 725 | 676 | */ |
| 726 | - public function isUpdateRemote() |
|
| 727 | - { |
|
| 677 | + public function isUpdateRemote() { |
|
| 728 | 678 | return ($this->state == self::OBJECT_STATE_ACTIVE || $this->state == self::OBJECT_STATE_INACTIVE) && !empty($this->objectIdentifier); |
| 729 | 679 | } |
| 730 | 680 | |
@@ -733,8 +683,7 @@ discard block |
||
| 733 | 683 | * |
| 734 | 684 | * @return boolean |
| 735 | 685 | */ |
| 736 | - public function getIsNew() |
|
| 737 | - { |
|
| 686 | + public function getIsNew() { |
|
| 738 | 687 | return (!$this->changed) && (empty($this->objectIdentifier)); |
| 739 | 688 | } |
| 740 | 689 | |
@@ -744,8 +693,7 @@ discard block |
||
| 744 | 693 | * |
| 745 | 694 | * @return string |
| 746 | 695 | */ |
| 747 | - public function getProcessNumber() |
|
| 748 | - { |
|
| 696 | + public function getProcessNumber() { |
|
| 749 | 697 | return $this->processNumber; |
| 750 | 698 | } |
| 751 | 699 | |
@@ -755,8 +703,7 @@ discard block |
||
| 755 | 703 | * @param string $processNumber |
| 756 | 704 | * @return void |
| 757 | 705 | */ |
| 758 | - public function setProcessNumber($processNumber) |
|
| 759 | - { |
|
| 706 | + public function setProcessNumber($processNumber) { |
|
| 760 | 707 | $this->processNumber = trim($processNumber); |
| 761 | 708 | } |
| 762 | 709 | } |
@@ -17,8 +17,7 @@ discard block |
||
| 17 | 17 | /** |
| 18 | 18 | * MetadataGroup |
| 19 | 19 | */ |
| 20 | -class MetadataGroup extends \TYPO3\CMS\Extbase\DomainObject\AbstractEntity |
|
| 21 | -{ |
|
| 20 | +class MetadataGroup extends \TYPO3\CMS\Extbase\DomainObject\AbstractEntity { |
|
| 22 | 21 | |
| 23 | 22 | /** |
| 24 | 23 | * name |
@@ -101,8 +100,7 @@ discard block |
||
| 101 | 100 | /** |
| 102 | 101 | * __construct |
| 103 | 102 | */ |
| 104 | - public function __construct() |
|
| 105 | - { |
|
| 103 | + public function __construct() { |
|
| 106 | 104 | //Do not remove the next line: It would break the functionality |
| 107 | 105 | $this->initStorageObjects(); |
| 108 | 106 | } |
@@ -112,8 +110,7 @@ discard block |
||
| 112 | 110 | * |
| 113 | 111 | * @return void |
| 114 | 112 | */ |
| 115 | - protected function initStorageObjects() |
|
| 116 | - { |
|
| 113 | + protected function initStorageObjects() { |
|
| 117 | 114 | $this->metadataObject = new \TYPO3\CMS\Extbase\Persistence\ObjectStorage(); |
| 118 | 115 | } |
| 119 | 116 | |
@@ -122,8 +119,7 @@ discard block |
||
| 122 | 119 | * |
| 123 | 120 | * @return string $name |
| 124 | 121 | */ |
| 125 | - public function getName() |
|
| 126 | - { |
|
| 122 | + public function getName() { |
|
| 127 | 123 | return $this->name; |
| 128 | 124 | } |
| 129 | 125 | |
@@ -133,8 +129,7 @@ discard block |
||
| 133 | 129 | * @param string $name |
| 134 | 130 | * @return void |
| 135 | 131 | */ |
| 136 | - public function setName($name) |
|
| 137 | - { |
|
| 132 | + public function setName($name) { |
|
| 138 | 133 | $this->name = $name; |
| 139 | 134 | } |
| 140 | 135 | |
@@ -143,8 +138,7 @@ discard block |
||
| 143 | 138 | * |
| 144 | 139 | * @return string $displayName |
| 145 | 140 | */ |
| 146 | - public function getDisplayName() |
|
| 147 | - { |
|
| 141 | + public function getDisplayName() { |
|
| 148 | 142 | return $this->displayName; |
| 149 | 143 | } |
| 150 | 144 | |
@@ -154,8 +148,7 @@ discard block |
||
| 154 | 148 | * @param string $displayName |
| 155 | 149 | * @return void |
| 156 | 150 | */ |
| 157 | - public function setDisplayName($displayName) |
|
| 158 | - { |
|
| 151 | + public function setDisplayName($displayName) { |
|
| 159 | 152 | $this->displayName = $displayName; |
| 160 | 153 | } |
| 161 | 154 | |
@@ -164,8 +157,7 @@ discard block |
||
| 164 | 157 | * |
| 165 | 158 | * @return boolean $mandatory |
| 166 | 159 | */ |
| 167 | - public function getMandatory() |
|
| 168 | - { |
|
| 160 | + public function getMandatory() { |
|
| 169 | 161 | return $this->mandatory; |
| 170 | 162 | } |
| 171 | 163 | |
@@ -175,8 +167,7 @@ discard block |
||
| 175 | 167 | * @param boolean $mandatory |
| 176 | 168 | * @return void |
| 177 | 169 | */ |
| 178 | - public function setMandatory($mandatory) |
|
| 179 | - { |
|
| 170 | + public function setMandatory($mandatory) { |
|
| 180 | 171 | $this->mandatory = $mandatory; |
| 181 | 172 | } |
| 182 | 173 | |
@@ -185,8 +176,7 @@ discard block |
||
| 185 | 176 | * |
| 186 | 177 | * @return boolean |
| 187 | 178 | */ |
| 188 | - public function isMandatory() |
|
| 189 | - { |
|
| 179 | + public function isMandatory() { |
|
| 190 | 180 | return $this->mandatory; |
| 191 | 181 | } |
| 192 | 182 | |
@@ -195,8 +185,7 @@ discard block |
||
| 195 | 185 | * |
| 196 | 186 | * @return string $mapping |
| 197 | 187 | */ |
| 198 | - public function getMapping() |
|
| 199 | - { |
|
| 188 | + public function getMapping() { |
|
| 200 | 189 | return $this->mapping; |
| 201 | 190 | } |
| 202 | 191 | |
@@ -206,8 +195,7 @@ discard block |
||
| 206 | 195 | * @param string $mapping |
| 207 | 196 | * @return void |
| 208 | 197 | */ |
| 209 | - public function setMapping($mapping) |
|
| 210 | - { |
|
| 198 | + public function setMapping($mapping) { |
|
| 211 | 199 | $this->mapping = $mapping; |
| 212 | 200 | } |
| 213 | 201 | |
@@ -216,8 +204,7 @@ discard block |
||
| 216 | 204 | * |
| 217 | 205 | * @return string $mappingForReading |
| 218 | 206 | */ |
| 219 | - public function getMappingForReading() |
|
| 220 | - { |
|
| 207 | + public function getMappingForReading() { |
|
| 221 | 208 | return $this->mappingForReading; |
| 222 | 209 | } |
| 223 | 210 | |
@@ -227,8 +214,7 @@ discard block |
||
| 227 | 214 | * @param string $mappingForReading |
| 228 | 215 | * @return void |
| 229 | 216 | */ |
| 230 | - public function setMappingForReading($mappingForReading) |
|
| 231 | - { |
|
| 217 | + public function setMappingForReading($mappingForReading) { |
|
| 232 | 218 | $this->mappingForReading = $mappingForReading; |
| 233 | 219 | } |
| 234 | 220 | |
@@ -237,8 +223,7 @@ discard block |
||
| 237 | 223 | * |
| 238 | 224 | * @return bool |
| 239 | 225 | */ |
| 240 | - public function hasMappingForReading() |
|
| 241 | - { |
|
| 226 | + public function hasMappingForReading() { |
|
| 242 | 227 | $mapping = trim($this->mappingForReading); |
| 243 | 228 | return !empty($mapping); |
| 244 | 229 | } |
@@ -249,8 +234,7 @@ discard block |
||
| 249 | 234 | * @string $mapping |
| 250 | 235 | * @return string $relativeMapping |
| 251 | 236 | */ |
| 252 | - protected function relativeMapping($mapping) |
|
| 253 | - { |
|
| 237 | + protected function relativeMapping($mapping) { |
|
| 254 | 238 | $modsRegExp = "/^\/?(mods:mods|slub:info)/"; |
| 255 | 239 | $mapping = preg_replace($modsRegExp, "", $mapping); |
| 256 | 240 | return trim($mapping, " /"); |
@@ -261,8 +245,7 @@ discard block |
||
| 261 | 245 | * |
| 262 | 246 | * @return string $relativeMappingForWriting |
| 263 | 247 | */ |
| 264 | - public function getRelativeMapping() |
|
| 265 | - { |
|
| 248 | + public function getRelativeMapping() { |
|
| 266 | 249 | return $this->relativeMapping($this->mapping); |
| 267 | 250 | } |
| 268 | 251 | |
@@ -271,8 +254,7 @@ discard block |
||
| 271 | 254 | * |
| 272 | 255 | * @return string $relativeMappingForReading |
| 273 | 256 | */ |
| 274 | - public function getRelativeMappingForReading() |
|
| 275 | - { |
|
| 257 | + public function getRelativeMappingForReading() { |
|
| 276 | 258 | return $this->relativeMapping($this->mappingForReading); |
| 277 | 259 | } |
| 278 | 260 | |
@@ -281,8 +263,7 @@ discard block |
||
| 281 | 263 | * |
| 282 | 264 | * @return string $absoluteMappingForWriting |
| 283 | 265 | */ |
| 284 | - public function getAbsoluteMapping() |
|
| 285 | - { |
|
| 266 | + public function getAbsoluteMapping() { |
|
| 286 | 267 | if ($this->isSlubInfo($this->getMapping())) { |
| 287 | 268 | return "/slub:info/" . $this->getRelativeMapping(); |
| 288 | 269 | } else { |
@@ -295,8 +276,7 @@ discard block |
||
| 295 | 276 | * |
| 296 | 277 | * @return string $absoluteMappingForReading |
| 297 | 278 | */ |
| 298 | - public function getAbsoluteMappingForReading() |
|
| 299 | - { |
|
| 279 | + public function getAbsoluteMappingForReading() { |
|
| 300 | 280 | if ($this->isSlubInfo($this->getMappingForReading())) { |
| 301 | 281 | return "/slub:info/" . $this->getRelativeMappingForReading(); |
| 302 | 282 | } else { |
@@ -310,8 +290,7 @@ discard block |
||
| 310 | 290 | * @param string $mapping |
| 311 | 291 | * @return bool |
| 312 | 292 | */ |
| 313 | - public function isSlubInfo($mapping) |
|
| 314 | - { |
|
| 293 | + public function isSlubInfo($mapping) { |
|
| 315 | 294 | $modsRegExp = "/^\/?slub:info/"; |
| 316 | 295 | $match = $mapping; |
| 317 | 296 | if (preg_match($modsRegExp, $match)) { |
@@ -325,8 +304,7 @@ discard block |
||
| 325 | 304 | * |
| 326 | 305 | * @return string $modsExtensionMapping |
| 327 | 306 | */ |
| 328 | - public function getModsExtensionMapping() |
|
| 329 | - { |
|
| 307 | + public function getModsExtensionMapping() { |
|
| 330 | 308 | return $this->modsExtensionMapping; |
| 331 | 309 | } |
| 332 | 310 | |
@@ -336,8 +314,7 @@ discard block |
||
| 336 | 314 | * @param string $modsExtensionMapping |
| 337 | 315 | * @return void |
| 338 | 316 | */ |
| 339 | - public function setModsExtensionMapping($modsExtensionMapping) |
|
| 340 | - { |
|
| 317 | + public function setModsExtensionMapping($modsExtensionMapping) { |
|
| 341 | 318 | $this->modsExtensionMapping = $modsExtensionMapping; |
| 342 | 319 | } |
| 343 | 320 | |
@@ -346,8 +323,7 @@ discard block |
||
| 346 | 323 | * |
| 347 | 324 | * @return string $relativeModsExtensionMapping |
| 348 | 325 | */ |
| 349 | - public function getRelativeModsExtensionMapping() |
|
| 350 | - { |
|
| 326 | + public function getRelativeModsExtensionMapping() { |
|
| 351 | 327 | $modsRegExp = "/^.*?mods:mods/i"; |
| 352 | 328 | $mapping = preg_replace($modsRegExp, "", $this->modsExtensionMapping); |
| 353 | 329 | return trim($mapping, " /"); |
@@ -358,8 +334,7 @@ discard block |
||
| 358 | 334 | * |
| 359 | 335 | * @return string $absoluteModsExtensionMapping |
| 360 | 336 | */ |
| 361 | - public function getAbsoluteModsExtensionMapping() |
|
| 362 | - { |
|
| 337 | + public function getAbsoluteModsExtensionMapping() { |
|
| 363 | 338 | return "/mods:mods/" . $this->getRelativeModsExtensionMapping(); |
| 364 | 339 | } |
| 365 | 340 | |
@@ -369,8 +344,7 @@ discard block |
||
| 369 | 344 | * @param string $modsExtensionReference |
| 370 | 345 | * @return void |
| 371 | 346 | */ |
| 372 | - public function setModsExtensionReference($modsExtensionReference) |
|
| 373 | - { |
|
| 347 | + public function setModsExtensionReference($modsExtensionReference) { |
|
| 374 | 348 | $this->modsExtensionReference = $modsExtensionReference; |
| 375 | 349 | } |
| 376 | 350 | |
@@ -379,8 +353,7 @@ discard block |
||
| 379 | 353 | * |
| 380 | 354 | * @return string $modsExtensionReference |
| 381 | 355 | */ |
| 382 | - public function getModsExtensionReference() |
|
| 383 | - { |
|
| 356 | + public function getModsExtensionReference() { |
|
| 384 | 357 | return $this->modsExtensionReference; |
| 385 | 358 | } |
| 386 | 359 | |
@@ -389,8 +362,7 @@ discard block |
||
| 389 | 362 | * |
| 390 | 363 | * @return integer $maxIteration |
| 391 | 364 | */ |
| 392 | - public function getMaxIteration() |
|
| 393 | - { |
|
| 365 | + public function getMaxIteration() { |
|
| 394 | 366 | return $this->maxIteration; |
| 395 | 367 | } |
| 396 | 368 | |
@@ -400,8 +372,7 @@ discard block |
||
| 400 | 372 | * @param integer $maxIteration |
| 401 | 373 | * @return void |
| 402 | 374 | */ |
| 403 | - public function setMaxIteration($maxIteration) |
|
| 404 | - { |
|
| 375 | + public function setMaxIteration($maxIteration) { |
|
| 405 | 376 | $this->maxIteration = $maxIteration; |
| 406 | 377 | } |
| 407 | 378 | |
@@ -411,8 +382,7 @@ discard block |
||
| 411 | 382 | * @param \EWW\Dpf\Domain\Model\MetadataObject $metadataObject |
| 412 | 383 | * @return void |
| 413 | 384 | */ |
| 414 | - public function addMetadataObject(\EWW\Dpf\Domain\Model\MetadataObject $metadataObject) |
|
| 415 | - { |
|
| 385 | + public function addMetadataObject(\EWW\Dpf\Domain\Model\MetadataObject $metadataObject) { |
|
| 416 | 386 | $this->metadataObject->attach($metadataObject); |
| 417 | 387 | } |
| 418 | 388 | |
@@ -422,8 +392,7 @@ discard block |
||
| 422 | 392 | * @param \EWW\Dpf\Domain\Model\MetadataObject $metadataObjectToRemove The MetadataObject to be removed |
| 423 | 393 | * @return void |
| 424 | 394 | */ |
| 425 | - public function removeMetadataObject(\EWW\Dpf\Domain\Model\MetadataObject $metadataObjectToRemove) |
|
| 426 | - { |
|
| 395 | + public function removeMetadataObject(\EWW\Dpf\Domain\Model\MetadataObject $metadataObjectToRemove) { |
|
| 427 | 396 | $this->metadataObject->detach($metadataObjectToRemove); |
| 428 | 397 | } |
| 429 | 398 | |
@@ -432,8 +401,7 @@ discard block |
||
| 432 | 401 | * |
| 433 | 402 | * @return \TYPO3\CMS\Extbase\Persistence\ObjectStorage<\EWW\Dpf\Domain\Model\MetadataObject> $metadataObject |
| 434 | 403 | */ |
| 435 | - public function getMetadataObject() |
|
| 436 | - { |
|
| 404 | + public function getMetadataObject() { |
|
| 437 | 405 | return $this->metadataObject; |
| 438 | 406 | } |
| 439 | 407 | |
@@ -443,8 +411,7 @@ discard block |
||
| 443 | 411 | * @param \TYPO3\CMS\Extbase\Persistence\ObjectStorage<\EWW\Dpf\Domain\Model\MetadataObject> $metadataObject |
| 444 | 412 | * @return void |
| 445 | 413 | */ |
| 446 | - public function setMetadataObject(\TYPO3\CMS\Extbase\Persistence\ObjectStorage $metadataObject) |
|
| 447 | - { |
|
| 414 | + public function setMetadataObject(\TYPO3\CMS\Extbase\Persistence\ObjectStorage $metadataObject) { |
|
| 448 | 415 | $this->metadataObject = $metadataObject; |
| 449 | 416 | } |
| 450 | 417 | |
@@ -453,8 +420,7 @@ discard block |
||
| 453 | 420 | * |
| 454 | 421 | * @return \TYPO3\CMS\Extbase\Persistence\ObjectStorage<\EWW\Dpf\Domain\Model\MetadataObject> $metadataObject |
| 455 | 422 | */ |
| 456 | - public function getChildren() |
|
| 457 | - { |
|
| 423 | + public function getChildren() { |
|
| 458 | 424 | return $this->getMetadataObject(); |
| 459 | 425 | } |
| 460 | 426 | |
@@ -463,8 +429,7 @@ discard block |
||
| 463 | 429 | * |
| 464 | 430 | * @return boolean $backendOnly |
| 465 | 431 | */ |
| 466 | - public function getBackendOnly() |
|
| 467 | - { |
|
| 432 | + public function getBackendOnly() { |
|
| 468 | 433 | return $this->backendOnly; |
| 469 | 434 | } |
| 470 | 435 | |
@@ -474,8 +439,7 @@ discard block |
||
| 474 | 439 | * @param boolean $backendOnly |
| 475 | 440 | * @return void |
| 476 | 441 | */ |
| 477 | - public function setBackendOnly($backendOnly) |
|
| 478 | - { |
|
| 442 | + public function setBackendOnly($backendOnly) { |
|
| 479 | 443 | $this->backendOnly = $backendOnly; |
| 480 | 444 | } |
| 481 | 445 | |
@@ -484,8 +448,7 @@ discard block |
||
| 484 | 448 | * |
| 485 | 449 | * @return string $infoText |
| 486 | 450 | */ |
| 487 | - public function getInfoText() |
|
| 488 | - { |
|
| 451 | + public function getInfoText() { |
|
| 489 | 452 | return $this->infoText; |
| 490 | 453 | } |
| 491 | 454 | |
@@ -495,8 +458,7 @@ discard block |
||
| 495 | 458 | * @param string $infoText |
| 496 | 459 | * @return void |
| 497 | 460 | */ |
| 498 | - public function setInfoText($infoText) |
|
| 499 | - { |
|
| 461 | + public function setInfoText($infoText) { |
|
| 500 | 462 | $this->infoText = $infoText; |
| 501 | 463 | } |
| 502 | 464 | |
@@ -72,13 +72,13 @@ discard block |
||
| 72 | 72 | /** |
| 73 | 73 | * simpleXMLElement |
| 74 | 74 | */ |
| 75 | - protected $sxe = null; |
|
| 75 | + protected $sxe = NULL; |
|
| 76 | 76 | |
| 77 | 77 | /** |
| 78 | 78 | * xPathXMLGenerator |
| 79 | 79 | * @var object |
| 80 | 80 | */ |
| 81 | - protected $parser = null; |
|
| 81 | + protected $parser = NULL; |
|
| 82 | 82 | |
| 83 | 83 | /** |
| 84 | 84 | * ref id counter |
@@ -172,26 +172,26 @@ discard block |
||
| 172 | 172 | $xmlData = $modsWrap->firstChild->firstChild->firstChild->firstChild; |
| 173 | 173 | |
| 174 | 174 | // import mods into mets |
| 175 | - $nodeAppendModsData = $modsWrap->importNode($this->modsData->firstChild, true); |
|
| 175 | + $nodeAppendModsData = $modsWrap->importNode($this->modsData->firstChild, TRUE); |
|
| 176 | 176 | $xmlData->appendChild($nodeAppendModsData); |
| 177 | 177 | |
| 178 | 178 | // add SLUB data |
| 179 | - $nodeAppendModsData = $modsWrap->importNode($this->buildMetsSlub()->firstChild, true); |
|
| 179 | + $nodeAppendModsData = $modsWrap->importNode($this->buildMetsSlub()->firstChild, TRUE); |
|
| 180 | 180 | $modsWrap->firstChild->appendChild($nodeAppendModsData); |
| 181 | 181 | |
| 182 | 182 | if ($fileSection) { |
| 183 | 183 | // add filesection |
| 184 | - $nodeAppendModsData = $modsWrap->importNode($fileSection->firstChild->firstChild, true); |
|
| 184 | + $nodeAppendModsData = $modsWrap->importNode($fileSection->firstChild->firstChild, TRUE); |
|
| 185 | 185 | $modsWrap->firstChild->appendChild($nodeAppendModsData); |
| 186 | 186 | } |
| 187 | 187 | |
| 188 | 188 | if ($structureMap) { |
| 189 | 189 | // add structure map |
| 190 | - $nodeAppendModsData = $modsWrap->importNode($structureMap->firstChild->firstChild, true); |
|
| 190 | + $nodeAppendModsData = $modsWrap->importNode($structureMap->firstChild->firstChild, TRUE); |
|
| 191 | 191 | $modsWrap->firstChild->appendChild($nodeAppendModsData); |
| 192 | 192 | } |
| 193 | 193 | |
| 194 | - $modsWrap->formatOutput = true; |
|
| 194 | + $modsWrap->formatOutput = TRUE; |
|
| 195 | 195 | $modsWrap->encoding = 'UTF-8'; |
| 196 | 196 | |
| 197 | 197 | $this->metsData = $modsWrap; |
@@ -253,28 +253,28 @@ discard block |
||
| 253 | 253 | $attributeXPath .= '[@ID="QUCOSA_' . $counter . '"]'; |
| 254 | 254 | } |
| 255 | 255 | |
| 256 | - $existsExtensionFlag = false; |
|
| 256 | + $existsExtensionFlag = FALSE; |
|
| 257 | 257 | $i = 0; |
| 258 | 258 | // loop each object |
| 259 | 259 | if (!empty($values)) { |
| 260 | 260 | foreach ($values as $value) { |
| 261 | 261 | |
| 262 | 262 | if ($value['modsExtension']) { |
| 263 | - $existsExtensionFlag = true; |
|
| 263 | + $existsExtensionFlag = TRUE; |
|
| 264 | 264 | // mods extension |
| 265 | 265 | $counter = sprintf("%'03d", $this->counter); |
| 266 | 266 | $referenceAttribute = $extensionAttribute . '[@' . $group['modsExtensionReference'] . '="QUCOSA_' . $counter . '"]'; |
| 267 | 267 | |
| 268 | 268 | $path = $group['modsExtensionMapping'] . $referenceAttribute . '%/' . $value['mapping']; |
| 269 | 269 | |
| 270 | - $xml = $this->customXPath($path, false, $value['value']); |
|
| 270 | + $xml = $this->customXPath($path, FALSE, $value['value']); |
|
| 271 | 271 | } else { |
| 272 | 272 | $path = $mapping . $attributeXPath . '%/' . $value['mapping']; |
| 273 | 273 | |
| 274 | 274 | if ($i == 0) { |
| 275 | - $newGroupFlag = true; |
|
| 275 | + $newGroupFlag = TRUE; |
|
| 276 | 276 | } else { |
| 277 | - $newGroupFlag = false; |
|
| 277 | + $newGroupFlag = FALSE; |
|
| 278 | 278 | } |
| 279 | 279 | |
| 280 | 280 | $xml = $this->customXPath($path, $newGroupFlag, $value['value']); |
@@ -286,12 +286,12 @@ discard block |
||
| 286 | 286 | } else { |
| 287 | 287 | if (!empty($attributeXPath)) { |
| 288 | 288 | $path = $mapping . $attributeXPath; |
| 289 | - $xml = $this->customXPath($path, true, '', true); |
|
| 289 | + $xml = $this->customXPath($path, TRUE, '', TRUE); |
|
| 290 | 290 | } |
| 291 | 291 | } |
| 292 | 292 | if (!$existsExtensionFlag && $group['modsExtensionMapping']) { |
| 293 | 293 | $xPath = $group['modsExtensionMapping'] . $extensionAttribute . '[@' . $group['modsExtensionReference'] . '="QUCOSA_' . $counter . '"]'; |
| 294 | - $xml = $this->customXPath($xPath, true, '', true); |
|
| 294 | + $xml = $this->customXPath($xPath, TRUE, '', TRUE); |
|
| 295 | 295 | } |
| 296 | 296 | if ($group['modsExtensionMapping']) { |
| 297 | 297 | $this->counter++; |
@@ -321,13 +321,13 @@ discard block |
||
| 321 | 321 | * @param string $value form value |
| 322 | 322 | * @return xml created xml |
| 323 | 323 | */ |
| 324 | - public function customXPath($xPath, $newGroupFlag = false, $value = '', $attributeOnly = false) |
|
| 324 | + public function customXPath($xPath, $newGroupFlag = FALSE, $value = '', $attributeOnly = FALSE) |
|
| 325 | 325 | { |
| 326 | 326 | if (!$attributeOnly) { |
| 327 | 327 | // Explode xPath |
| 328 | 328 | $newPath = explode('%', $xPath); |
| 329 | 329 | |
| 330 | - $praedicateFlag = false; |
|
| 330 | + $praedicateFlag = FALSE; |
|
| 331 | 331 | $explodedXPath = explode('[', $newPath[0]); |
| 332 | 332 | if (count($explodedXPath) > 1) { |
| 333 | 333 | // praedicate is given |
@@ -339,7 +339,7 @@ discard block |
||
| 339 | 339 | $path = $explodedXPath[0]; |
| 340 | 340 | } |
| 341 | 341 | |
| 342 | - $praedicateFlag = true; |
|
| 342 | + $praedicateFlag = TRUE; |
|
| 343 | 343 | } else { |
| 344 | 344 | $path = $newPath[0]; |
| 345 | 345 | } |
@@ -389,7 +389,7 @@ discard block |
||
| 389 | 389 | $nodeList = $xPath->query('/mods:mods' . $match[1]); |
| 390 | 390 | $node = $nodeList->item(0); |
| 391 | 391 | |
| 392 | - $importNode = $docXML->importNode($docXMLNested->getElementsByTagName("mods")->item(0)->firstChild, true); |
|
| 392 | + $importNode = $docXML->importNode($docXMLNested->getElementsByTagName("mods")->item(0)->firstChild, TRUE); |
|
| 393 | 393 | |
| 394 | 394 | $node->appendChild($importNode); |
| 395 | 395 | } |
@@ -400,7 +400,7 @@ discard block |
||
| 400 | 400 | |
| 401 | 401 | $node = $domNodeList->item(0)->firstChild; |
| 402 | 402 | |
| 403 | - $nodeAppendModsData = $this->xmlData->importNode($node, true); |
|
| 403 | + $nodeAppendModsData = $this->xmlData->importNode($node, TRUE); |
|
| 404 | 404 | $domNode->item($domNode->length - 1)->appendChild($nodeAppendModsData); |
| 405 | 405 | } else { |
| 406 | 406 | // first xpath doesn't exist |
@@ -448,7 +448,7 @@ discard block |
||
| 448 | 448 | $nodeList = $xPath->query('/mods:mods/' . $path . $match[1]); |
| 449 | 449 | $node = $nodeList->item(0); |
| 450 | 450 | |
| 451 | - $importNode = $doc2->importNode($docXMLNested->getElementsByTagName("mods")->item(0)->firstChild, true); |
|
| 451 | + $importNode = $doc2->importNode($docXMLNested->getElementsByTagName("mods")->item(0)->firstChild, TRUE); |
|
| 452 | 452 | |
| 453 | 453 | $node->appendChild($importNode); |
| 454 | 454 | } |
@@ -456,7 +456,7 @@ discard block |
||
| 456 | 456 | $domNode2 = $domXPath2->query('/mods:mods/' . $path)->item(0)->childNodes->item(0); |
| 457 | 457 | |
| 458 | 458 | // merge xml nodes |
| 459 | - $nodeToBeAppended = $doc1->importNode($domNode2, true); |
|
| 459 | + $nodeToBeAppended = $doc1->importNode($domNode2, TRUE); |
|
| 460 | 460 | |
| 461 | 461 | $domNode->item(0)->appendChild($nodeToBeAppended); |
| 462 | 462 | |
@@ -465,7 +465,7 @@ discard block |
||
| 465 | 465 | $firstChild = $this->xmlData->firstChild; |
| 466 | 466 | $firstItem = $doc1->getElementsByTagName('mods')->item(0)->firstChild; |
| 467 | 467 | |
| 468 | - $nodeAppendModsData = $this->xmlData->importNode($firstItem, true); |
|
| 468 | + $nodeAppendModsData = $this->xmlData->importNode($firstItem, TRUE); |
|
| 469 | 469 | $firstChild->appendChild($nodeAppendModsData); |
| 470 | 470 | |
| 471 | 471 | return $doc1->saveXML(); |
@@ -484,7 +484,7 @@ discard block |
||
| 484 | 484 | |
| 485 | 485 | $node = $domNodeList->item(0)->firstChild; |
| 486 | 486 | |
| 487 | - $nodeAppendModsData = $this->xmlData->importNode($node, true); |
|
| 487 | + $nodeAppendModsData = $this->xmlData->importNode($node, TRUE); |
|
| 488 | 488 | $domNode->item($domNode->length - 1)->appendChild($nodeAppendModsData); |
| 489 | 489 | |
| 490 | 490 | return $docXML->saveXML(); |
@@ -493,13 +493,13 @@ discard block |
||
| 493 | 493 | return $this->xmlData->saveXML(); |
| 494 | 494 | } |
| 495 | 495 | |
| 496 | - public function customXPathSlub($xPath, $newGroupFlag = false, $value = '', $attributeOnly = false) |
|
| 496 | + public function customXPathSlub($xPath, $newGroupFlag = FALSE, $value = '', $attributeOnly = FALSE) |
|
| 497 | 497 | { |
| 498 | 498 | if (!$attributeOnly) { |
| 499 | 499 | // Explode xPath |
| 500 | 500 | $newPath = explode('%', $xPath); |
| 501 | 501 | |
| 502 | - $praedicateFlag = false; |
|
| 502 | + $praedicateFlag = FALSE; |
|
| 503 | 503 | $explodedXPath = explode('[', $newPath[0]); |
| 504 | 504 | if (count($explodedXPath) > 1) { |
| 505 | 505 | // praedicate is given |
@@ -511,7 +511,7 @@ discard block |
||
| 511 | 511 | $path = $explodedXPath[0]; |
| 512 | 512 | } |
| 513 | 513 | |
| 514 | - $praedicateFlag = true; |
|
| 514 | + $praedicateFlag = TRUE; |
|
| 515 | 515 | } else { |
| 516 | 516 | $path = $newPath[0]; |
| 517 | 517 | } |
@@ -538,7 +538,7 @@ discard block |
||
| 538 | 538 | |
| 539 | 539 | $node = $domNodeList->item(0)->firstChild; |
| 540 | 540 | |
| 541 | - $nodeAppendModsData = $this->xmlData->importNode($node, true); |
|
| 541 | + $nodeAppendModsData = $this->xmlData->importNode($node, TRUE); |
|
| 542 | 542 | $domNode->item($domNode->length - 1)->appendChild($nodeAppendModsData); |
| 543 | 543 | } else { |
| 544 | 544 | // first xpath doesn't exist |
@@ -567,7 +567,7 @@ discard block |
||
| 567 | 567 | $domNode2 = $domXPath2->query('/slub:info/' . $path)->item(0)->childNodes->item(0); |
| 568 | 568 | |
| 569 | 569 | // merge xml nodes |
| 570 | - $nodeToBeAppended = $doc1->importNode($domNode2, true); |
|
| 570 | + $nodeToBeAppended = $doc1->importNode($domNode2, TRUE); |
|
| 571 | 571 | |
| 572 | 572 | $domNode->item(0)->appendChild($nodeToBeAppended); |
| 573 | 573 | |
@@ -577,7 +577,7 @@ discard block |
||
| 577 | 577 | $firstChild = $this->xmlData->firstChild; |
| 578 | 578 | $firstItem = $doc1->getElementsByTagName('info')->item(0)->firstChild; |
| 579 | 579 | |
| 580 | - $nodeAppendModsData = $this->xmlData->importNode($firstItem, true); |
|
| 580 | + $nodeAppendModsData = $this->xmlData->importNode($firstItem, TRUE); |
|
| 581 | 581 | $firstChild->appendChild($nodeAppendModsData); |
| 582 | 582 | |
| 583 | 583 | return $doc1->saveXML(); |
@@ -596,7 +596,7 @@ discard block |
||
| 596 | 596 | |
| 597 | 597 | $node = $domNodeList->item(0)->firstChild; |
| 598 | 598 | |
| 599 | - $nodeAppendModsData = $this->xmlData->importNode($node, true); |
|
| 599 | + $nodeAppendModsData = $this->xmlData->importNode($node, TRUE); |
|
| 600 | 600 | $domNode->item($domNode->length - 1)->appendChild($nodeAppendModsData); |
| 601 | 601 | |
| 602 | 602 | return $docXML->saveXML(); |
@@ -846,7 +846,7 @@ discard block |
||
| 846 | 846 | $second = $this->slubData; |
| 847 | 847 | |
| 848 | 848 | foreach ($second->childNodes as $node) { |
| 849 | - $importNode = $domDocument->importNode($node, true); |
|
| 849 | + $importNode = $domDocument->importNode($node, TRUE); |
|
| 850 | 850 | $domWrapElement->appendChild($importNode); |
| 851 | 851 | } |
| 852 | 852 | |
@@ -902,14 +902,14 @@ discard block |
||
| 902 | 902 | |
| 903 | 903 | $path = $group['modsExtensionMapping'] . $referenceAttribute . '%/' . $value['mapping']; |
| 904 | 904 | |
| 905 | - $xml = $this->customXPathSlub($path, false, $value['value']); |
|
| 905 | + $xml = $this->customXPathSlub($path, FALSE, $value['value']); |
|
| 906 | 906 | } else { |
| 907 | 907 | $path = $mapping . $attributeXPath . '%/' . $value['mapping']; |
| 908 | 908 | |
| 909 | 909 | if ($i == 0) { |
| 910 | - $newGroupFlag = true; |
|
| 910 | + $newGroupFlag = TRUE; |
|
| 911 | 911 | } else { |
| 912 | - $newGroupFlag = false; |
|
| 912 | + $newGroupFlag = FALSE; |
|
| 913 | 913 | } |
| 914 | 914 | |
| 915 | 915 | $xml = $this->customXPathSlub($path, $newGroupFlag, $value['value']); |
@@ -922,7 +922,7 @@ discard block |
||
| 922 | 922 | } else { |
| 923 | 923 | if (!empty($attributeXPath)) { |
| 924 | 924 | $path = $mapping . $attributeXPath; |
| 925 | - $xml = $this->customXPathSlub($path, true, '', true); |
|
| 925 | + $xml = $this->customXPathSlub($path, TRUE, '', TRUE); |
|
| 926 | 926 | } |
| 927 | 927 | } |
| 928 | 928 | |
@@ -16,7 +16,7 @@ discard block |
||
| 16 | 16 | * Extension Manager/Repository config file for ext: "dpf" |
| 17 | 17 | ***************************************************************/ |
| 18 | 18 | |
| 19 | -$EM_CONF[$_EXTKEY] = array( |
|
| 19 | +$EM_CONF[$_EXTKEY] = array ( |
|
| 20 | 20 | 'title' => 'Qucosa Publication', |
| 21 | 21 | 'description' => '', |
| 22 | 22 | 'category' => 'plugin', |
@@ -28,13 +28,13 @@ discard block |
||
| 28 | 28 | 'createDirs' => 'uploads/tx_dpf', |
| 29 | 29 | 'clearCacheOnLoad' => 0, |
| 30 | 30 | 'version' => '1.3.13', |
| 31 | - 'constraints' => array( |
|
| 32 | - 'depends' => array( |
|
| 31 | + 'constraints' => array ( |
|
| 32 | + 'depends' => array ( |
|
| 33 | 33 | 'typo3' => '6.2.0-7.6.99' |
| 34 | 34 | ), |
| 35 | - 'conflicts' => array( |
|
| 35 | + 'conflicts' => array ( |
|
| 36 | 36 | ), |
| 37 | - 'suggests' => array( |
|
| 37 | + 'suggests' => array ( |
|
| 38 | 38 | ), |
| 39 | 39 | ), |
| 40 | 40 | ); |