@@ -22,7 +22,7 @@ |
||
| 22 | 22 | 'tstamp' => 'tstamp', |
| 23 | 23 | 'crdate' => 'crdate', |
| 24 | 24 | 'cruser_id' => 'cruser_id', |
| 25 | - 'versioningWS' => true, |
|
| 25 | + 'versioningWS' => TRUE, |
|
| 26 | 26 | 'languageField' => 'sys_language_uid', |
| 27 | 27 | 'transOrigPointerField' => 'l10n_parent', |
| 28 | 28 | 'transOrigDiffSourceField' => 'l10n_diffsource', |
@@ -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_storedsearch', |
| 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,98 +36,98 @@ discard block |
||
| 36 | 36 | 'searchFields' => 'title', |
| 37 | 37 | 'iconfile' => 'EXT:dpf/Resources/Public/Icons/default.gif', |
| 38 | 38 | ), |
| 39 | - 'interface' => array( |
|
| 39 | + 'interface' => array ( |
|
| 40 | 40 | 'showRecordFieldList' => 'name, query', |
| 41 | 41 | ), |
| 42 | - 'types' => array( |
|
| 43 | - '1' => array('showitem' => ',--palette--;;1, |
|
| 42 | + 'types' => array ( |
|
| 43 | + '1' => array ('showitem' => ',--palette--;;1, |
|
| 44 | 44 | name, query, |
| 45 | 45 | --div--;LLL:EXT:cms/locallang_ttc.xlf:tabs.access'), |
| 46 | 46 | ), |
| 47 | - 'palettes' => array( |
|
| 48 | - '1' => array('showitem' => ''), |
|
| 47 | + 'palettes' => array ( |
|
| 48 | + '1' => array ('showitem' => ''), |
|
| 49 | 49 | ), |
| 50 | - 'columns' => array( |
|
| 50 | + 'columns' => array ( |
|
| 51 | 51 | |
| 52 | - 'sys_language_uid' => array( |
|
| 52 | + 'sys_language_uid' => array ( |
|
| 53 | 53 | 'exclude' => 1, |
| 54 | 54 | 'label' => 'LLL:EXT:lang/locallang_general.xlf:LGL.language', |
| 55 | - 'config' => array( |
|
| 55 | + 'config' => array ( |
|
| 56 | 56 | 'type' => 'select', |
| 57 | 57 | 'renderType' => 'selectSingle', |
| 58 | 58 | 'foreign_table' => 'sys_language', |
| 59 | 59 | 'foreign_table_where' => 'ORDER BY sys_language.title', |
| 60 | - 'items' => array( |
|
| 61 | - array('LLL:EXT:lang/locallang_general.xlf:LGL.allLanguages', -1), |
|
| 62 | - array('LLL:EXT:lang/locallang_general.xlf:LGL.default_value', 0), |
|
| 60 | + 'items' => array ( |
|
| 61 | + array ('LLL:EXT:lang/locallang_general.xlf:LGL.allLanguages', -1), |
|
| 62 | + array ('LLL:EXT:lang/locallang_general.xlf:LGL.default_value', 0), |
|
| 63 | 63 | ), |
| 64 | 64 | 'default' => 0, |
| 65 | 65 | ), |
| 66 | 66 | ), |
| 67 | - 'l10n_parent' => array( |
|
| 67 | + 'l10n_parent' => array ( |
|
| 68 | 68 | 'displayCond' => 'FIELD:sys_language_uid:>:0', |
| 69 | 69 | 'exclude' => 1, |
| 70 | 70 | 'label' => 'LLL:EXT:lang/locallang_general.xlf:LGL.l18n_parent', |
| 71 | - 'config' => array( |
|
| 71 | + 'config' => array ( |
|
| 72 | 72 | 'type' => 'select', |
| 73 | 73 | 'renderType' => 'selectSingle', |
| 74 | - 'items' => array( |
|
| 75 | - array('', 0), |
|
| 74 | + 'items' => array ( |
|
| 75 | + array ('', 0), |
|
| 76 | 76 | ), |
| 77 | 77 | 'foreign_table' => 'tx_dpf_domain_model_storedsearch', |
| 78 | 78 | 'foreign_table_where' => 'AND tx_dpf_domain_model_storedsearch.pid=###CURRENT_PID### AND tx_dpf_domain_model_storedsearch.sys_language_uid IN (-1,0)', |
| 79 | 79 | ), |
| 80 | 80 | ), |
| 81 | - 'l10n_diffsource' => array( |
|
| 82 | - 'config' => array( |
|
| 81 | + 'l10n_diffsource' => array ( |
|
| 82 | + 'config' => array ( |
|
| 83 | 83 | 'type' => 'passthrough', |
| 84 | 84 | ), |
| 85 | 85 | ), |
| 86 | 86 | |
| 87 | - 't3ver_label' => array( |
|
| 87 | + 't3ver_label' => array ( |
|
| 88 | 88 | 'label' => 'LLL:EXT:lang/locallang_general.xlf:LGL.versionLabel', |
| 89 | - 'config' => array( |
|
| 89 | + 'config' => array ( |
|
| 90 | 90 | 'type' => 'input', |
| 91 | 91 | 'size' => 30, |
| 92 | 92 | 'max' => 255, |
| 93 | 93 | ), |
| 94 | 94 | ), |
| 95 | 95 | |
| 96 | - 'hidden' => array( |
|
| 96 | + 'hidden' => array ( |
|
| 97 | 97 | 'exclude' => 1, |
| 98 | 98 | 'label' => 'LLL:EXT:lang/locallang_general.xlf:LGL.hidden', |
| 99 | - 'config' => array( |
|
| 99 | + 'config' => array ( |
|
| 100 | 100 | 'type' => 'check', |
| 101 | 101 | ), |
| 102 | 102 | ), |
| 103 | - 'starttime' => array( |
|
| 103 | + 'starttime' => array ( |
|
| 104 | 104 | 'exclude' => 1, |
| 105 | 105 | 'l10n_mode' => 'mergeIfNotBlank', |
| 106 | 106 | 'label' => 'LLL:EXT:lang/locallang_general.xlf:LGL.starttime', |
| 107 | - 'config' => array( |
|
| 107 | + 'config' => array ( |
|
| 108 | 108 | 'type' => 'input', |
| 109 | 109 | 'renderType' => 'inputDateTime', |
| 110 | 110 | 'size' => 13, |
| 111 | 111 | 'eval' => 'datetime', |
| 112 | 112 | 'checkbox' => 0, |
| 113 | 113 | 'default' => 0, |
| 114 | - 'range' => array( |
|
| 114 | + 'range' => array ( |
|
| 115 | 115 | 'lower' => mktime(0, 0, 0, date('m'), date('d'), date('Y')), |
| 116 | 116 | ), |
| 117 | 117 | ), |
| 118 | 118 | ), |
| 119 | - 'endtime' => array( |
|
| 119 | + 'endtime' => array ( |
|
| 120 | 120 | 'exclude' => 1, |
| 121 | 121 | 'l10n_mode' => 'mergeIfNotBlank', |
| 122 | 122 | 'label' => 'LLL:EXT:lang/locallang_general.xlf:LGL.endtime', |
| 123 | - 'config' => array( |
|
| 123 | + 'config' => array ( |
|
| 124 | 124 | 'type' => 'input', |
| 125 | 125 | 'renderType' => 'inputDateTime', |
| 126 | 126 | 'size' => 13, |
| 127 | 127 | 'eval' => 'datetime', |
| 128 | 128 | 'checkbox' => 0, |
| 129 | 129 | 'default' => 0, |
| 130 | - 'range' => array( |
|
| 130 | + 'range' => array ( |
|
| 131 | 131 | 'lower' => mktime(0, 0, 0, date('m'), date('d'), date('Y')), |
| 132 | 132 | ), |
| 133 | 133 | ), |
@@ -139,20 +139,20 @@ discard block |
||
| 139 | 139 | ], |
| 140 | 140 | ], |
| 141 | 141 | |
| 142 | - 'name' => array( |
|
| 142 | + 'name' => array ( |
|
| 143 | 143 | 'exclude' => 1, |
| 144 | 144 | 'label' => 'LLL:EXT:dpf/Resources/Private/Language/locallang_db.xlf:tx_dpf_domain_model_storedsearch.name', |
| 145 | - 'config' => array( |
|
| 145 | + 'config' => array ( |
|
| 146 | 146 | 'type' => 'input', |
| 147 | 147 | 'size' => 30, |
| 148 | 148 | 'eval' => 'trim', |
| 149 | 149 | ), |
| 150 | 150 | ), |
| 151 | 151 | |
| 152 | - 'query' => array( |
|
| 152 | + 'query' => array ( |
|
| 153 | 153 | 'exclude' => 1, |
| 154 | 154 | 'label' => 'LLL:EXT:dpf/Resources/Private/Language/locallang_db.xlf:tx_dpf_domain_model_storedsearch.query', |
| 155 | - 'config' => array( |
|
| 155 | + 'config' => array ( |
|
| 156 | 156 | 'type' => 'text', |
| 157 | 157 | 'cols' => 40, |
| 158 | 158 | 'rows' => 15, |
@@ -22,7 +22,7 @@ |
||
| 22 | 22 | 'tstamp' => 'tstamp', |
| 23 | 23 | 'crdate' => 'crdate', |
| 24 | 24 | 'cruser_id' => 'cruser_id', |
| 25 | - 'versioningWS' => true, |
|
| 25 | + 'versioningWS' => TRUE, |
|
| 26 | 26 | 'languageField' => 'sys_language_uid', |
| 27 | 27 | 'transOrigPointerField' => 'l10n_parent', |
| 28 | 28 | 'transOrigDiffSourceField' => 'l10n_diffsource', |
@@ -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_processnumber', |
| 22 | 22 | 'label' => 'owner_id', |
| 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,128 +36,128 @@ discard block |
||
| 36 | 36 | 'searchFields' => 'owner_id, year, counter', |
| 37 | 37 | 'iconfile' => 'EXT:dpf/Resources/Public/Icons/default.gif', |
| 38 | 38 | ), |
| 39 | - 'interface' => array( |
|
| 39 | + 'interface' => array ( |
|
| 40 | 40 | 'showRecordFieldList' => 'sys_language_uid, l10n_parent, l10n_diffsource, hidden, owner_id, year, counter' |
| 41 | 41 | ), |
| 42 | - 'types' => array( |
|
| 43 | - '1' => array('showitem' => 'sys_language_uid, l10n_parent, l10n_diffsource, hidden, --palette--;;1, owner_id, year, counter, --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, owner_id, year, counter, --div--;LLL:EXT:frontend/Resources/Private/Language/locallang_ttc.xlf:tabs.access, starttime, endtime'), |
|
| 44 | 44 | ), |
| 45 | - 'palettes' => array( |
|
| 46 | - '1' => array('showitem' => ''), |
|
| 45 | + 'palettes' => array ( |
|
| 46 | + '1' => array ('showitem' => ''), |
|
| 47 | 47 | ), |
| 48 | - 'columns' => array( |
|
| 48 | + 'columns' => array ( |
|
| 49 | 49 | |
| 50 | - 'sys_language_uid' => array( |
|
| 50 | + 'sys_language_uid' => array ( |
|
| 51 | 51 | 'exclude' => 1, |
| 52 | 52 | 'label' => 'LLL:EXT:lang/locallang_general.xlf:LGL.language', |
| 53 | - 'config' => array( |
|
| 53 | + 'config' => array ( |
|
| 54 | 54 | 'type' => 'select', |
| 55 | 55 | 'renderType' => 'selectSingle', |
| 56 | 56 | 'foreign_table' => 'sys_language', |
| 57 | 57 | 'foreign_table_where' => 'ORDER BY sys_language.title', |
| 58 | - 'items' => array( |
|
| 59 | - array('LLL:EXT:lang/locallang_general.xlf:LGL.allLanguages', -1), |
|
| 60 | - array('LLL:EXT:lang/locallang_general.xlf:LGL.default_value', 0), |
|
| 58 | + 'items' => array ( |
|
| 59 | + array ('LLL:EXT:lang/locallang_general.xlf:LGL.allLanguages', -1), |
|
| 60 | + array ('LLL:EXT:lang/locallang_general.xlf:LGL.default_value', 0), |
|
| 61 | 61 | ), |
| 62 | 62 | 'default' => 0, |
| 63 | 63 | ), |
| 64 | 64 | ), |
| 65 | - 'l10n_parent' => array( |
|
| 65 | + 'l10n_parent' => array ( |
|
| 66 | 66 | 'displayCond' => 'FIELD:sys_language_uid:>:0', |
| 67 | 67 | 'exclude' => 1, |
| 68 | 68 | 'label' => 'LLL:EXT:lang/locallang_general.xlf:LGL.l18n_parent', |
| 69 | - 'config' => array( |
|
| 69 | + 'config' => array ( |
|
| 70 | 70 | 'type' => 'select', |
| 71 | 71 | 'renderType' => 'selectSingle', |
| 72 | - 'items' => array( |
|
| 73 | - array('', 0), |
|
| 72 | + 'items' => array ( |
|
| 73 | + array ('', 0), |
|
| 74 | 74 | ), |
| 75 | 75 | 'foreign_table' => 'tx_dpf_domain_model_processnumber', |
| 76 | 76 | 'foreign_table_where' => 'AND tx_dpf_domain_model_processnumber.pid=###CURRENT_PID### AND tx_dpf_domain_model_processnumber.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 | '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 | - 'owner_id' => array( |
|
| 134 | + 'owner_id' => 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_processnumber.owner_id', |
| 138 | - 'config' => array( |
|
| 138 | + 'config' => array ( |
|
| 139 | 139 | 'type' => 'input', |
| 140 | 140 | 'size' => 4, |
| 141 | 141 | 'max' => 4, |
| 142 | 142 | 'eval' => 'trim,required', |
| 143 | 143 | ), |
| 144 | 144 | ), |
| 145 | - 'year' => array( |
|
| 145 | + 'year' => array ( |
|
| 146 | 146 | 'exclude' => 1, |
| 147 | 147 | 'l10n_mode' => 'exclude', |
| 148 | 148 | 'label' => 'LLL:EXT:dpf/Resources/Private/Language/locallang_db.xlf:tx_dpf_domain_model_processnumber.year', |
| 149 | - 'config' => array( |
|
| 149 | + 'config' => array ( |
|
| 150 | 150 | 'type' => 'input', |
| 151 | 151 | 'size' => 4, |
| 152 | 152 | 'max' => 2, |
| 153 | 153 | 'eval' => 'trim,required', |
| 154 | 154 | ), |
| 155 | 155 | ), |
| 156 | - 'counter' => array( |
|
| 156 | + 'counter' => array ( |
|
| 157 | 157 | 'exclude' => 1, |
| 158 | 158 | 'l10n_mode' => 'exclude', |
| 159 | 159 | 'label' => 'LLL:EXT:dpf/Resources/Private/Language/locallang_db.xlf:tx_dpf_domain_model_processnumber.counter', |
| 160 | - 'config' => array( |
|
| 160 | + 'config' => array ( |
|
| 161 | 161 | 'type' => 'input', |
| 162 | 162 | 'size' => 30, |
| 163 | 163 | 'eval' => 'trim,required', |
@@ -22,7 +22,7 @@ |
||
| 22 | 22 | 'tstamp' => 'tstamp', |
| 23 | 23 | 'crdate' => 'crdate', |
| 24 | 24 | 'cruser_id' => 'cruser_id', |
| 25 | - 'versioningWS' => true, |
|
| 25 | + 'versioningWS' => TRUE, |
|
| 26 | 26 | 'languageField' => 'sys_language_uid', |
| 27 | 27 | 'transOrigPointerField' => 'l10n_parent', |
| 28 | 28 | 'transOrigDiffSourceField' => 'l10n_diffsource', |
@@ -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_documenttransferlog', |
| 22 | 22 | 'label' => 'date', |
| 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,107 +36,107 @@ discard block |
||
| 36 | 36 | 'searchFields' => 'date, response, curl_error, document_uid, object_identifier, action', |
| 37 | 37 | 'iconfile' => 'EXT:dpf/Resources/Public/Icons/default.gif', |
| 38 | 38 | ), |
| 39 | - 'interface' => array( |
|
| 39 | + 'interface' => array ( |
|
| 40 | 40 | 'showRecordFieldList' => 'sys_language_uid, l10n_parent, l10n_diffsource, hidden, date, response, curl_error, document_uid, object_identifier, action', |
| 41 | 41 | ), |
| 42 | - 'types' => array( |
|
| 43 | - '1' => array('showitem' => 'sys_language_uid,l10n_parent,l10n_diffsource,hidden,--palette--;;1, |
|
| 42 | + 'types' => array ( |
|
| 43 | + '1' => array ('showitem' => 'sys_language_uid,l10n_parent,l10n_diffsource,hidden,--palette--;;1, |
|
| 44 | 44 | date, response, curl_error, document_uid, object_identifier, action, |
| 45 | 45 | --div--;LLL:EXT:cms/locallang_ttc.xlf:tabs.access, starttime, endtime'), |
| 46 | 46 | ), |
| 47 | - 'palettes' => array( |
|
| 48 | - '1' => array('showitem' => ''), |
|
| 47 | + 'palettes' => array ( |
|
| 48 | + '1' => array ('showitem' => ''), |
|
| 49 | 49 | ), |
| 50 | - 'columns' => array( |
|
| 50 | + 'columns' => array ( |
|
| 51 | 51 | |
| 52 | - 'sys_language_uid' => array( |
|
| 52 | + 'sys_language_uid' => array ( |
|
| 53 | 53 | 'exclude' => 1, |
| 54 | 54 | 'label' => 'LLL:EXT:lang/locallang_general.xlf:LGL.language', |
| 55 | - 'config' => array( |
|
| 55 | + 'config' => array ( |
|
| 56 | 56 | 'type' => 'select', |
| 57 | 57 | 'renderType' => 'selectSingle', |
| 58 | 58 | 'foreign_table' => 'sys_language', |
| 59 | 59 | 'foreign_table_where' => 'ORDER BY sys_language.title', |
| 60 | - 'items' => array( |
|
| 61 | - array('LLL:EXT:lang/locallang_general.xlf:LGL.allLanguages', -1), |
|
| 62 | - array('LLL:EXT:lang/locallang_general.xlf:LGL.default_value', 0), |
|
| 60 | + 'items' => array ( |
|
| 61 | + array ('LLL:EXT:lang/locallang_general.xlf:LGL.allLanguages', -1), |
|
| 62 | + array ('LLL:EXT:lang/locallang_general.xlf:LGL.default_value', 0), |
|
| 63 | 63 | ), |
| 64 | 64 | 'default' => 0, |
| 65 | 65 | ), |
| 66 | 66 | ), |
| 67 | - 'l10n_parent' => array( |
|
| 67 | + 'l10n_parent' => array ( |
|
| 68 | 68 | 'displayCond' => 'FIELD:sys_language_uid:>:0', |
| 69 | 69 | 'exclude' => 1, |
| 70 | 70 | 'label' => 'LLL:EXT:lang/locallang_general.xlf:LGL.l18n_parent', |
| 71 | - 'config' => array( |
|
| 71 | + 'config' => array ( |
|
| 72 | 72 | 'type' => 'select', |
| 73 | 73 | 'renderType' => 'selectSingle', |
| 74 | - 'items' => array( |
|
| 75 | - array('', 0), |
|
| 74 | + 'items' => array ( |
|
| 75 | + array ('', 0), |
|
| 76 | 76 | ), |
| 77 | 77 | 'foreign_table' => 'tx_dpf_domain_model_documenttransferlog', |
| 78 | 78 | 'foreign_table_where' => 'AND tx_dpf_domain_model_documenttransferlog.pid=###CURRENT_PID### AND tx_dpf_domain_model_documenttransferlog.sys_language_uid IN (-1,0)', |
| 79 | 79 | ), |
| 80 | 80 | ), |
| 81 | - 'l10n_diffsource' => array( |
|
| 82 | - 'config' => array( |
|
| 81 | + 'l10n_diffsource' => array ( |
|
| 82 | + 'config' => array ( |
|
| 83 | 83 | 'type' => 'passthrough', |
| 84 | 84 | ), |
| 85 | 85 | ), |
| 86 | 86 | |
| 87 | - 't3ver_label' => array( |
|
| 87 | + 't3ver_label' => array ( |
|
| 88 | 88 | 'label' => 'LLL:EXT:lang/locallang_general.xlf:LGL.versionLabel', |
| 89 | - 'config' => array( |
|
| 89 | + 'config' => array ( |
|
| 90 | 90 | 'type' => 'input', |
| 91 | 91 | 'size' => 30, |
| 92 | 92 | 'max' => 255, |
| 93 | 93 | ), |
| 94 | 94 | ), |
| 95 | 95 | |
| 96 | - 'hidden' => array( |
|
| 96 | + 'hidden' => array ( |
|
| 97 | 97 | 'exclude' => 1, |
| 98 | 98 | 'label' => 'LLL:EXT:lang/locallang_general.xlf:LGL.hidden', |
| 99 | - 'config' => array( |
|
| 99 | + 'config' => array ( |
|
| 100 | 100 | 'type' => 'check', |
| 101 | 101 | ), |
| 102 | 102 | ), |
| 103 | - 'starttime' => array( |
|
| 103 | + 'starttime' => array ( |
|
| 104 | 104 | 'exclude' => 1, |
| 105 | 105 | 'l10n_mode' => 'mergeIfNotBlank', |
| 106 | 106 | 'label' => 'LLL:EXT:lang/locallang_general.xlf:LGL.starttime', |
| 107 | - 'config' => array( |
|
| 107 | + 'config' => array ( |
|
| 108 | 108 | 'type' => 'input', |
| 109 | 109 | 'renderType' => 'inputDateTime', |
| 110 | 110 | 'size' => 13, |
| 111 | 111 | 'eval' => 'datetime', |
| 112 | 112 | 'checkbox' => 0, |
| 113 | 113 | 'default' => 0, |
| 114 | - 'range' => array( |
|
| 114 | + 'range' => array ( |
|
| 115 | 115 | 'lower' => mktime(0, 0, 0, date('m'), date('d'), date('Y')), |
| 116 | 116 | ), |
| 117 | 117 | ), |
| 118 | 118 | ), |
| 119 | - 'endtime' => array( |
|
| 119 | + 'endtime' => array ( |
|
| 120 | 120 | 'exclude' => 1, |
| 121 | 121 | 'l10n_mode' => 'mergeIfNotBlank', |
| 122 | 122 | 'label' => 'LLL:EXT:lang/locallang_general.xlf:LGL.endtime', |
| 123 | - 'config' => array( |
|
| 123 | + 'config' => array ( |
|
| 124 | 124 | 'type' => 'input', |
| 125 | 125 | 'renderType' => 'inputDateTime', |
| 126 | 126 | 'size' => 13, |
| 127 | 127 | 'eval' => 'datetime', |
| 128 | 128 | 'checkbox' => 0, |
| 129 | 129 | 'default' => 0, |
| 130 | - 'range' => array( |
|
| 130 | + 'range' => array ( |
|
| 131 | 131 | 'lower' => mktime(0, 0, 0, date('m'), date('d'), date('Y')), |
| 132 | 132 | ), |
| 133 | 133 | ), |
| 134 | 134 | ), |
| 135 | 135 | |
| 136 | - 'date' => array( |
|
| 136 | + 'date' => array ( |
|
| 137 | 137 | 'exclude' => 1, |
| 138 | 138 | 'label' => 'LLL:EXT:dpf/Resources/Private/Language/locallang_db.xlf:tx_dpf_domain_model_documenttransferlog.date', |
| 139 | - 'config' => array( |
|
| 139 | + 'config' => array ( |
|
| 140 | 140 | 'type' => 'input', |
| 141 | 141 | 'renderType' => 'inputDateTime', |
| 142 | 142 | 'size' => 10, |
@@ -145,48 +145,48 @@ discard block |
||
| 145 | 145 | 'default' => time(), |
| 146 | 146 | ), |
| 147 | 147 | ), |
| 148 | - 'response' => array( |
|
| 148 | + 'response' => array ( |
|
| 149 | 149 | 'exclude' => 1, |
| 150 | 150 | 'label' => 'LLL:EXT:dpf/Resources/Private/Language/locallang_db.xlf:tx_dpf_domain_model_documenttransferlog.response', |
| 151 | - 'config' => array( |
|
| 151 | + 'config' => array ( |
|
| 152 | 152 | 'type' => 'text', |
| 153 | 153 | 'cols' => 40, |
| 154 | 154 | 'rows' => 15, |
| 155 | 155 | 'eval' => 'trim', |
| 156 | 156 | ), |
| 157 | 157 | ), |
| 158 | - 'curl_error' => array( |
|
| 158 | + 'curl_error' => array ( |
|
| 159 | 159 | 'exclude' => 1, |
| 160 | 160 | 'label' => 'LLL:EXT:dpf/Resources/Private/Language/locallang_db.xlf:tx_dpf_domain_model_documenttransferlog.curl_error', |
| 161 | - 'config' => array( |
|
| 161 | + 'config' => array ( |
|
| 162 | 162 | 'type' => 'text', |
| 163 | 163 | 'cols' => 40, |
| 164 | 164 | 'rows' => 15, |
| 165 | 165 | 'eval' => 'trim', |
| 166 | 166 | ), |
| 167 | 167 | ), |
| 168 | - 'document_uid' => array( |
|
| 168 | + 'document_uid' => array ( |
|
| 169 | 169 | 'exclude' => 1, |
| 170 | 170 | 'label' => 'LLL:EXT:dpf/Resources/Private/Language/locallang_db.xlf:tx_dpf_domain_model_documenttransferlog.document_uid', |
| 171 | - 'config' => array( |
|
| 171 | + 'config' => array ( |
|
| 172 | 172 | 'type' => 'input', |
| 173 | 173 | 'size' => 30, |
| 174 | 174 | 'max' => 255, |
| 175 | 175 | ), |
| 176 | 176 | ), |
| 177 | - 'object_identifier' => array( |
|
| 177 | + 'object_identifier' => array ( |
|
| 178 | 178 | 'exclude' => 1, |
| 179 | 179 | 'label' => 'LLL:EXT:dpf/Resources/Private/Language/locallang_db.xlf:tx_dpf_domain_model_documenttransferlog.object_identifier', |
| 180 | - 'config' => array( |
|
| 180 | + 'config' => array ( |
|
| 181 | 181 | 'type' => 'input', |
| 182 | 182 | 'size' => 30, |
| 183 | 183 | 'max' => 255, |
| 184 | 184 | ), |
| 185 | 185 | ), |
| 186 | - 'action' => array( |
|
| 186 | + 'action' => array ( |
|
| 187 | 187 | 'exclude' => 1, |
| 188 | 188 | 'label' => 'LLL:EXT:dpf/Resources/Private/Language/locallang_db.xlf:tx_dpf_domain_model_documenttransferlog.action', |
| 189 | - 'config' => array( |
|
| 189 | + 'config' => array ( |
|
| 190 | 190 | 'type' => 'input', |
| 191 | 191 | 'size' => 30, |
| 192 | 192 | 'max' => 255, |
@@ -22,7 +22,7 @@ |
||
| 22 | 22 | 'tstamp' => 'tstamp', |
| 23 | 23 | 'crdate' => 'crdate', |
| 24 | 24 | 'cruser_id' => 'cruser_id', |
| 25 | - 'versioningWS' => true, |
|
| 25 | + 'versioningWS' => TRUE, |
|
| 26 | 26 | 'languageField' => 'sys_language_uid', |
| 27 | 27 | 'transOrigPointerField' => 'l10n_parent', |
| 28 | 28 | 'transOrigDiffSourceField' => 'l10n_diffsource', |
@@ -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,196 +36,196 @@ 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/default.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 | 'default' => 0, |
| 63 | 63 | ), |
| 64 | 64 | ), |
| 65 | - 'l10n_parent' => array( |
|
| 65 | + 'l10n_parent' => array ( |
|
| 66 | 66 | 'displayCond' => 'FIELD:sys_language_uid:>:0', |
| 67 | 67 | 'exclude' => 1, |
| 68 | 68 | 'label' => 'LLL:EXT:lang/locallang_general.xlf:LGL.l18n_parent', |
| 69 | - 'config' => array( |
|
| 69 | + 'config' => array ( |
|
| 70 | 70 | 'type' => 'select', |
| 71 | 71 | 'renderType' => 'selectSingle', |
| 72 | - 'items' => array( |
|
| 73 | - array('', 0), |
|
| 72 | + 'items' => array ( |
|
| 73 | + array ('', 0), |
|
| 74 | 74 | ), |
| 75 | 75 | 'foreign_table' => 'tx_dpf_domain_model_file', |
| 76 | 76 | 'foreign_table_where' => 'AND tx_dpf_domain_model_file.pid=###CURRENT_PID### AND tx_dpf_domain_model_file.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 | '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 | - 'title' => array( |
|
| 134 | + 'title' => array ( |
|
| 135 | 135 | 'exclude' => 1, |
| 136 | 136 | 'label' => 'LLL:EXT:dpf/Resources/Private/Language/locallang_db.xlf:tx_dpf_domain_model_file.title', |
| 137 | - 'config' => array( |
|
| 137 | + 'config' => array ( |
|
| 138 | 138 | 'type' => 'input', |
| 139 | 139 | 'size' => 30, |
| 140 | 140 | 'eval' => 'trim', |
| 141 | 141 | ), |
| 142 | 142 | ), |
| 143 | 143 | |
| 144 | - 'label' => array( |
|
| 144 | + 'label' => array ( |
|
| 145 | 145 | 'exclude' => 1, |
| 146 | 146 | 'label' => 'LLL:EXT:dpf/Resources/Private/Language/locallang_db.xlf:tx_dpf_domain_model_file.label', |
| 147 | - 'config' => array( |
|
| 147 | + 'config' => array ( |
|
| 148 | 148 | 'type' => 'input', |
| 149 | 149 | 'size' => 30, |
| 150 | 150 | 'eval' => 'trim', |
| 151 | 151 | ), |
| 152 | 152 | ), |
| 153 | - 'download' => array( |
|
| 153 | + 'download' => 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_file.download', |
| 157 | - 'config' => array( |
|
| 157 | + 'config' => array ( |
|
| 158 | 158 | 'type' => 'check', |
| 159 | 159 | 'default' => 0, |
| 160 | 160 | ), |
| 161 | 161 | ), |
| 162 | - 'archive' => array( |
|
| 162 | + 'archive' => array ( |
|
| 163 | 163 | 'exclude' => 1, |
| 164 | 164 | 'l10n_mode' => 'exclude', |
| 165 | 165 | 'label' => 'LLL:EXT:dpf/Resources/Private/Language/locallang_db.xlf:tx_dpf_domain_model_file.archive', |
| 166 | - 'config' => array( |
|
| 166 | + 'config' => array ( |
|
| 167 | 167 | 'type' => 'check', |
| 168 | 168 | 'default' => 0, |
| 169 | 169 | ), |
| 170 | 170 | ), |
| 171 | - 'file_group_deleted' => array( |
|
| 171 | + 'file_group_deleted' => array ( |
|
| 172 | 172 | 'exclude' => 1, |
| 173 | 173 | 'l10n_mode' => 'exclude', |
| 174 | 174 | 'label' => 'LLL:EXT:dpf/Resources/Private/Language/locallang_db.xlf:tx_dpf_domain_model_file.file_group_deleted', |
| 175 | - 'config' => array( |
|
| 175 | + 'config' => array ( |
|
| 176 | 176 | 'type' => 'check', |
| 177 | 177 | 'default' => 0, |
| 178 | 178 | ), |
| 179 | 179 | ), |
| 180 | - 'content_type' => array( |
|
| 180 | + 'content_type' => array ( |
|
| 181 | 181 | 'exclude' => 1, |
| 182 | 182 | 'label' => 'LLL:EXT:dpf/Resources/Private/Language/locallang_db.xlf:tx_dpf_domain_model_file.content_type', |
| 183 | - 'config' => array( |
|
| 183 | + 'config' => array ( |
|
| 184 | 184 | 'type' => 'input', |
| 185 | 185 | 'size' => 30, |
| 186 | 186 | 'eval' => 'trim', |
| 187 | 187 | ), |
| 188 | 188 | ), |
| 189 | - 'link' => array( |
|
| 189 | + 'link' => array ( |
|
| 190 | 190 | 'exclude' => 1, |
| 191 | 191 | 'label' => 'LLL:EXT:dpf/Resources/Private/Language/locallang_db.xlf:tx_dpf_domain_model_file.link', |
| 192 | - 'config' => array( |
|
| 192 | + 'config' => array ( |
|
| 193 | 193 | 'type' => 'input', |
| 194 | 194 | 'size' => 30, |
| 195 | 195 | 'eval' => 'trim', |
| 196 | 196 | ), |
| 197 | 197 | ), |
| 198 | - 'status' => array( |
|
| 198 | + 'status' => array ( |
|
| 199 | 199 | 'exclude' => 1, |
| 200 | 200 | 'label' => 'LLL:EXT:dpf/Resources/Private/Language/locallang_db.xlf:tx_dpf_domain_model_file.status', |
| 201 | - 'config' => array( |
|
| 201 | + 'config' => array ( |
|
| 202 | 202 | 'type' => 'input', |
| 203 | 203 | 'size' => 30, |
| 204 | 204 | 'eval' => 'trim', |
| 205 | 205 | ), |
| 206 | 206 | ), |
| 207 | - 'datastream_identifier' => array( |
|
| 207 | + 'datastream_identifier' => array ( |
|
| 208 | 208 | 'exclude' => 1, |
| 209 | 209 | 'label' => 'LLL:EXT:dpf/Resources/Private/Language/locallang_db.xlf:tx_dpf_domain_model_file.datastream_identifier', |
| 210 | - 'config' => array( |
|
| 210 | + 'config' => array ( |
|
| 211 | 211 | 'type' => 'input', |
| 212 | 212 | 'size' => 30, |
| 213 | 213 | 'eval' => 'trim', |
| 214 | 214 | ), |
| 215 | 215 | ), |
| 216 | - 'primary_file' => array( |
|
| 216 | + 'primary_file' => array ( |
|
| 217 | 217 | 'exclude' => 1, |
| 218 | 218 | 'label' => 'LLL:EXT:dpf/Resources/Private/Language/locallang_db.xlf:tx_dpf_domain_model_file.primary_file', |
| 219 | - 'config' => array( |
|
| 219 | + 'config' => array ( |
|
| 220 | 220 | 'type' => 'check', |
| 221 | 221 | 'default' => 0, |
| 222 | 222 | ), |
| 223 | 223 | ), |
| 224 | 224 | |
| 225 | - 'document' => array( |
|
| 225 | + 'document' => array ( |
|
| 226 | 226 | 'exclude' => 1, |
| 227 | 227 | 'label' => 'LLL:EXT:dpf/Resources/Private/Language/locallang_db.xlf:tx_dpf_domain_model_file.document', |
| 228 | - 'config' => array( |
|
| 228 | + 'config' => array ( |
|
| 229 | 229 | 'type' => 'select', |
| 230 | 230 | 'renderType' => 'selectSingle', |
| 231 | 231 | 'foreign_table' => 'tx_dpf_domain_model_document', |
@@ -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' => '4.0.0', |
| 31 | - 'constraints' => array( |
|
| 32 | - 'depends' => array( |
|
| 31 | + 'constraints' => array ( |
|
| 32 | + 'depends' => array ( |
|
| 33 | 33 | 'typo3' => '8.7.0-8.7.99', |
| 34 | 34 | ), |
| 35 | - 'conflicts' => array( |
|
| 35 | + 'conflicts' => array ( |
|
| 36 | 36 | ), |
| 37 | - 'suggests' => array( |
|
| 37 | + 'suggests' => array ( |
|
| 38 | 38 | ), |
| 39 | 39 | ), |
| 40 | 40 | ); |
@@ -32,7 +32,7 @@ |
||
| 32 | 32 | * |
| 33 | 33 | * @var array |
| 34 | 34 | */ |
| 35 | - protected $attributes = array(); |
|
| 35 | + protected $attributes = array (); |
|
| 36 | 36 | |
| 37 | 37 | |
| 38 | 38 | /** |
@@ -17,8 +17,7 @@ discard block |
||
| 17 | 17 | use TYPO3\CMS\Core\Utility\GeneralUtility; |
| 18 | 18 | use TYPO3\CMS\Extbase\Object\ObjectManager; |
| 19 | 19 | |
| 20 | -abstract class Voter |
|
| 21 | -{ |
|
| 20 | +abstract class Voter { |
|
| 22 | 21 | /** |
| 23 | 22 | * security |
| 24 | 23 | * |
@@ -60,8 +59,7 @@ discard block |
||
| 60 | 59 | * |
| 61 | 60 | * @return array |
| 62 | 61 | */ |
| 63 | - public static function getVoters() |
|
| 64 | - { |
|
| 62 | + public static function getVoters() { |
|
| 65 | 63 | $objectManager = GeneralUtility::makeInstance(ObjectManager::class); |
| 66 | 64 | $voters[] = $objectManager->get(\EWW\Dpf\Security\DocumentVoter::class); |
| 67 | 65 | return $voters; |
@@ -25,7 +25,7 @@ |
||
| 25 | 25 | * @var \EWW\Dpf\Security\Security |
| 26 | 26 | * @inject |
| 27 | 27 | */ |
| 28 | - protected $security = null; |
|
| 28 | + protected $security = NULL; |
|
| 29 | 29 | |
| 30 | 30 | /** |
| 31 | 31 | * supported attributes |
@@ -22,7 +22,7 @@ |
||
| 22 | 22 | * @var \EWW\Dpf\Domain\Repository\FrontendUserRepository |
| 23 | 23 | * @inject |
| 24 | 24 | */ |
| 25 | - protected $frontendUserRepository = null; |
|
| 25 | + protected $frontendUserRepository = NULL; |
|
| 26 | 26 | |
| 27 | 27 | const ROLE_ANONYMOUS = "ROLE_ANONYMOUS"; |
| 28 | 28 | const ROLE_RESEARCHER = "ROLE_RESEARCHER"; |
@@ -14,8 +14,7 @@ discard block |
||
| 14 | 14 | * The TYPO3 project - inspiring people to share! |
| 15 | 15 | */ |
| 16 | 16 | |
| 17 | -class Security |
|
| 18 | -{ |
|
| 17 | +class Security { |
|
| 19 | 18 | /** |
| 20 | 19 | * frontendUserRepository |
| 21 | 20 | * |
@@ -34,8 +33,7 @@ discard block |
||
| 34 | 33 | * |
| 35 | 34 | * @return null|\EWW\Dpf\Domain\Model\FrontendUser |
| 36 | 35 | */ |
| 37 | - public function getUser() |
|
| 38 | - { |
|
| 36 | + public function getUser() { |
|
| 39 | 37 | $token = $GLOBALS['_GET']['tx_dpf_rest_api']['token']; |
| 40 | 38 | $user = $GLOBALS['TSFE']->fe_user->user; |
| 41 | 39 | if (!empty($user) && is_array($user) && array_key_exists('uid', $user)) { |
@@ -53,8 +51,7 @@ discard block |
||
| 53 | 51 | * Gets the role of the current frontend user |
| 54 | 52 | * @return string |
| 55 | 53 | */ |
| 56 | - public function getUserRole() |
|
| 57 | - { |
|
| 54 | + public function getUserRole() { |
|
| 58 | 55 | if ($this->getUser()) { |
| 59 | 56 | return $this->getUser()->getUserRole(); |
| 60 | 57 | } |
@@ -65,8 +62,7 @@ discard block |
||
| 65 | 62 | * Gets the name of the current frontend user |
| 66 | 63 | * @return string |
| 67 | 64 | */ |
| 68 | - public function getUsername() |
|
| 69 | - { |
|
| 65 | + public function getUsername() { |
|
| 70 | 66 | if ($this->getUser()) { |
| 71 | 67 | return $this->getUser()->getUsername(); |
| 72 | 68 | } |
@@ -77,8 +73,7 @@ discard block |
||
| 77 | 73 | * Gets the fis person id of the current frontend user |
| 78 | 74 | * @return string |
| 79 | 75 | */ |
| 80 | - public function getFisPersId() |
|
| 81 | - { |
|
| 76 | + public function getFisPersId() { |
|
| 82 | 77 | if ($this->getUser()) { |
| 83 | 78 | return $this->getUser()->getFisPersId(); |
| 84 | 79 | } |
@@ -64,7 +64,7 @@ discard block |
||
| 64 | 64 | |
| 65 | 65 | public function __construct() |
| 66 | 66 | { |
| 67 | - $this->workflow = DocumentWorkflow::getWorkflow(); |
|
| 67 | + $this->workflow = DocumentWorkflow::getWorkflow(); |
|
| 68 | 68 | } |
| 69 | 69 | |
| 70 | 70 | |
@@ -309,7 +309,7 @@ discard block |
||
| 309 | 309 | $this->workflow->can($document, \EWW\Dpf\Domain\Workflow\DocumentWorkflow::TRANSITION_REGISTER) && |
| 310 | 310 | $document->getCreator() === $this->security->getUser()->getUid() |
| 311 | 311 | ) { |
| 312 | - return TRUE; |
|
| 312 | + return TRUE; |
|
| 313 | 313 | } |
| 314 | 314 | |
| 315 | 315 | return FALSE; |
@@ -27,7 +27,7 @@ discard block |
||
| 27 | 27 | const CREATE = "DOCUMENT_CREATE"; |
| 28 | 28 | const CREATE_REGISTER = "DOCUMENT_CREATE_REGISTER"; |
| 29 | 29 | const UPDATE = "DOCUMENT_UPDATE"; |
| 30 | - const LIST = "DOCUMENT_LIST"; |
|
| 30 | + const list = "DOCUMENT_LIST"; |
|
| 31 | 31 | const LIST_REGISTERED = "DOCUMENT_LIST_REGISTERED"; |
| 32 | 32 | const LIST_IN_PROGRESS = "DOCUMENT_LIST_IN_PROGRESS"; |
| 33 | 33 | |
@@ -55,7 +55,7 @@ discard block |
||
| 55 | 55 | * @var \EWW\Dpf\Services\Document\EditingLockService |
| 56 | 56 | * @inject |
| 57 | 57 | */ |
| 58 | - protected $editingLockService = null; |
|
| 58 | + protected $editingLockService = NULL; |
|
| 59 | 59 | |
| 60 | 60 | /** |
| 61 | 61 | * workflow |
@@ -81,7 +81,7 @@ discard block |
||
| 81 | 81 | self::CREATE, |
| 82 | 82 | self::CREATE_REGISTER, |
| 83 | 83 | self::UPDATE, |
| 84 | - self::LIST, |
|
| 84 | + self::list, |
|
| 85 | 85 | self::LIST_REGISTERED, |
| 86 | 86 | self::LIST_IN_PROGRESS, |
| 87 | 87 | self::DISCARD, |
@@ -151,7 +151,7 @@ discard block |
||
| 151 | 151 | return $this->canUpdate($subject); |
| 152 | 152 | break; |
| 153 | 153 | |
| 154 | - case self::LIST: |
|
| 154 | + case self::list: |
|
| 155 | 155 | return $this->defaultAccess(); |
| 156 | 156 | break; |
| 157 | 157 | |
@@ -236,7 +236,7 @@ discard block |
||
| 236 | 236 | ] |
| 237 | 237 | ); |
| 238 | 238 | |
| 239 | - return false; |
|
| 239 | + return FALSE; |
|
| 240 | 240 | } |
| 241 | 241 | |
| 242 | 242 | /** |
@@ -460,7 +460,7 @@ discard block |
||
| 460 | 460 | ); |
| 461 | 461 | } |
| 462 | 462 | |
| 463 | - return false; |
|
| 463 | + return FALSE; |
|
| 464 | 464 | } |
| 465 | 465 | |
| 466 | 466 | /** |
@@ -75,7 +75,7 @@ discard block |
||
| 75 | 75 | */ |
| 76 | 76 | protected static function getAttributes() |
| 77 | 77 | { |
| 78 | - return array( |
|
| 78 | + return array ( |
|
| 79 | 79 | self::CREATE, |
| 80 | 80 | self::CREATE_REGISTER, |
| 81 | 81 | self::UPDATE, |
@@ -461,7 +461,7 @@ discard block |
||
| 461 | 461 | { |
| 462 | 462 | if ($this->security->getUserRole() === Security::ROLE_RESEARCHER) { |
| 463 | 463 | |
| 464 | - $objectManager =GeneralUtility::makeInstance(ObjectManager::class); |
|
| 464 | + $objectManager = GeneralUtility::makeInstance(ObjectManager::class); |
|
| 465 | 465 | $documentRepository = $objectManager->get(DocumentRepository::class); |
| 466 | 466 | |
| 467 | 467 | $linkedDocument = $documentRepository->findOneByLinkedUid($document->getUid()); |
@@ -561,7 +561,7 @@ discard block |
||
| 561 | 561 | */ |
| 562 | 562 | protected function isDocumentLocked($document) |
| 563 | 563 | { |
| 564 | - $identifier = $document->getObjectIdentifier()? $document->getObjectIdentifier() : $document->getUid(); |
|
| 564 | + $identifier = $document->getObjectIdentifier() ? $document->getObjectIdentifier() : $document->getUid(); |
|
| 565 | 565 | return $this->editingLockService->isLocked($identifier, $this->security->getUser()->getUid()); |
| 566 | 566 | } |
| 567 | 567 | |
@@ -22,8 +22,7 @@ discard block |
||
| 22 | 22 | use TYPO3\CMS\Core\Log\LogManager; |
| 23 | 23 | |
| 24 | 24 | |
| 25 | -class DocumentVoter extends Voter |
|
| 26 | -{ |
|
| 25 | +class DocumentVoter extends Voter { |
|
| 27 | 26 | const CREATE = "DOCUMENT_CREATE"; |
| 28 | 27 | const CREATE_REGISTER = "DOCUMENT_CREATE_REGISTER"; |
| 29 | 28 | const UPDATE = "DOCUMENT_UPDATE"; |
@@ -64,8 +63,7 @@ discard block |
||
| 64 | 63 | */ |
| 65 | 64 | protected $workflow; |
| 66 | 65 | |
| 67 | - public function __construct() |
|
| 68 | - { |
|
| 66 | + public function __construct() { |
|
| 69 | 67 | $this->workflow = DocumentWorkflow::getWorkflow(); |
| 70 | 68 | } |
| 71 | 69 | |
@@ -75,8 +73,7 @@ discard block |
||
| 75 | 73 | * |
| 76 | 74 | * @return array |
| 77 | 75 | */ |
| 78 | - protected static function getAttributes() |
|
| 79 | - { |
|
| 76 | + protected static function getAttributes() { |
|
| 80 | 77 | return array( |
| 81 | 78 | self::CREATE, |
| 82 | 79 | self::CREATE_REGISTER, |
@@ -111,8 +108,7 @@ discard block |
||
| 111 | 108 | * @param mixed $subject |
| 112 | 109 | * @return mixed |
| 113 | 110 | */ |
| 114 | - public static function supports($attribute, $subject = NULL) |
|
| 115 | - { |
|
| 111 | + public static function supports($attribute, $subject = NULL) { |
|
| 116 | 112 | if (!in_array($attribute, self::getAttributes())) { |
| 117 | 113 | return FALSE; |
| 118 | 114 | } |
@@ -131,8 +127,7 @@ discard block |
||
| 131 | 127 | * @param mixed $subject |
| 132 | 128 | * @return mixed |
| 133 | 129 | */ |
| 134 | - public function voteOnAttribute($attribute, $subject = NULL) |
|
| 135 | - { |
|
| 130 | + public function voteOnAttribute($attribute, $subject = NULL) { |
|
| 136 | 131 | if (!$subject instanceof Document) { |
| 137 | 132 | return FALSE; |
| 138 | 133 | } |
@@ -242,8 +237,7 @@ discard block |
||
| 242 | 237 | /** |
| 243 | 238 | * @return bool |
| 244 | 239 | */ |
| 245 | - protected function defaultAccess() |
|
| 246 | - { |
|
| 240 | + protected function defaultAccess() { |
|
| 247 | 241 | return ( |
| 248 | 242 | $this->security->getUserRole() === Security::ROLE_LIBRARIAN || |
| 249 | 243 | $this->security->getUserRole() === Security::ROLE_RESEARCHER |
@@ -253,8 +247,7 @@ discard block |
||
| 253 | 247 | /** |
| 254 | 248 | * @return bool |
| 255 | 249 | */ |
| 256 | - protected function librarianOnly() |
|
| 257 | - { |
|
| 250 | + protected function librarianOnly() { |
|
| 258 | 251 | return $this->security->getUserRole() === Security::ROLE_LIBRARIAN; |
| 259 | 252 | } |
| 260 | 253 | |
@@ -262,8 +255,7 @@ discard block |
||
| 262 | 255 | * @param \EWW\Dpf\Domain\Model\Document $document |
| 263 | 256 | * @return bool |
| 264 | 257 | */ |
| 265 | - protected function canDiscard($document) |
|
| 266 | - { |
|
| 258 | + protected function canDiscard($document) { |
|
| 267 | 259 | if ($this->isDocumentLocked($document)) { |
| 268 | 260 | return FALSE; |
| 269 | 261 | } |
@@ -286,8 +278,7 @@ discard block |
||
| 286 | 278 | * @param \EWW\Dpf\Domain\Model\Document $document |
| 287 | 279 | * @return bool |
| 288 | 280 | */ |
| 289 | - protected function canShowDetails($document) |
|
| 290 | - { |
|
| 281 | + protected function canShowDetails($document) { |
|
| 291 | 282 | if ($this->security->getUserRole() === Security::ROLE_LIBRARIAN) { |
| 292 | 283 | return ( |
| 293 | 284 | $document->getState() !== DocumentWorkflow::STATE_NEW_NONE || |
@@ -313,8 +304,7 @@ discard block |
||
| 313 | 304 | * @param \EWW\Dpf\Domain\Model\Document $document |
| 314 | 305 | * @return bool |
| 315 | 306 | */ |
| 316 | - protected function canRegister($document) |
|
| 317 | - { |
|
| 307 | + protected function canRegister($document) { |
|
| 318 | 308 | if ( |
| 319 | 309 | $this->workflow->can($document, \EWW\Dpf\Domain\Workflow\DocumentWorkflow::TRANSITION_REGISTER) && |
| 320 | 310 | $document->getCreator() === $this->security->getUser()->getUid() |
@@ -330,8 +320,7 @@ discard block |
||
| 330 | 320 | * @param \EWW\Dpf\Domain\Model\Document $document |
| 331 | 321 | * @return bool |
| 332 | 322 | */ |
| 333 | - protected function canReleasePublish($document) |
|
| 334 | - { |
|
| 323 | + protected function canReleasePublish($document) { |
|
| 335 | 324 | if ($this->isDocumentLocked($document)) { |
| 336 | 325 | return FALSE; |
| 337 | 326 | } |
@@ -349,8 +338,7 @@ discard block |
||
| 349 | 338 | * @param \EWW\Dpf\Domain\Model\Document $document |
| 350 | 339 | * @return bool |
| 351 | 340 | */ |
| 352 | - protected function canReleaseActivate($document) |
|
| 353 | - { |
|
| 341 | + protected function canReleaseActivate($document) { |
|
| 354 | 342 | if ($this->isDocumentLocked($document)) { |
| 355 | 343 | return FALSE; |
| 356 | 344 | } |
@@ -367,8 +355,7 @@ discard block |
||
| 367 | 355 | * @param \EWW\Dpf\Domain\Model\Document $document |
| 368 | 356 | * @return bool |
| 369 | 357 | */ |
| 370 | - protected function canDeleteLocally($document) |
|
| 371 | - { |
|
| 358 | + protected function canDeleteLocally($document) { |
|
| 372 | 359 | if ($this->isDocumentLocked($document)) { |
| 373 | 360 | return FALSE; |
| 374 | 361 | } |
@@ -393,8 +380,7 @@ discard block |
||
| 393 | 380 | * @param \EWW\Dpf\Domain\Model\Document $document |
| 394 | 381 | * @return bool |
| 395 | 382 | */ |
| 396 | - protected function canDeleteWorkingCopy($document) |
|
| 397 | - { |
|
| 383 | + protected function canDeleteWorkingCopy($document) { |
|
| 398 | 384 | if ($document->isTemporary() || $this->isDocumentLocked($document)) { |
| 399 | 385 | return FALSE; |
| 400 | 386 | } |
@@ -411,8 +397,7 @@ discard block |
||
| 411 | 397 | * @param \EWW\Dpf\Domain\Model\Document $document |
| 412 | 398 | * @return bool |
| 413 | 399 | */ |
| 414 | - protected function canEdit($document) |
|
| 415 | - { |
|
| 400 | + protected function canEdit($document) { |
|
| 416 | 401 | if ($this->isDocumentLocked($document)) { |
| 417 | 402 | return FALSE; |
| 418 | 403 | } |
@@ -439,8 +424,7 @@ discard block |
||
| 439 | 424 | * @param \EWW\Dpf\Domain\Model\Document $document |
| 440 | 425 | * @return bool |
| 441 | 426 | */ |
| 442 | - protected function canUpdate($document) |
|
| 443 | - { |
|
| 427 | + protected function canUpdate($document) { |
|
| 444 | 428 | if ($this->isDocumentLocked($document)) { |
| 445 | 429 | return FALSE; |
| 446 | 430 | } |
@@ -467,8 +451,7 @@ discard block |
||
| 467 | 451 | * @param \EWW\Dpf\Domain\Model\Document $document |
| 468 | 452 | * @return bool |
| 469 | 453 | */ |
| 470 | - protected function canSuggestRestore($document) |
|
| 471 | - { |
|
| 454 | + protected function canSuggestRestore($document) { |
|
| 472 | 455 | if ($this->security->getUserRole() === Security::ROLE_RESEARCHER) { |
| 473 | 456 | |
| 474 | 457 | $objectManager =GeneralUtility::makeInstance(ObjectManager::class); |
@@ -493,8 +476,7 @@ discard block |
||
| 493 | 476 | * @param \EWW\Dpf\Domain\Model\Document $document |
| 494 | 477 | * @return bool |
| 495 | 478 | */ |
| 496 | - protected function canSuggestModification($document) |
|
| 497 | - { |
|
| 479 | + protected function canSuggestModification($document) { |
|
| 498 | 480 | $objectManager = GeneralUtility::makeInstance(ObjectManager::class); |
| 499 | 481 | $documentRepository = $objectManager->get(DocumentRepository::class); |
| 500 | 482 | |
@@ -523,8 +505,7 @@ discard block |
||
| 523 | 505 | * @param \EWW\Dpf\Domain\Model\Document $document |
| 524 | 506 | * @return bool |
| 525 | 507 | */ |
| 526 | - protected function canSuggestionAccept($document) |
|
| 527 | - { |
|
| 508 | + protected function canSuggestionAccept($document) { |
|
| 528 | 509 | // TODO: What if a document should be restored? |
| 529 | 510 | |
| 530 | 511 | return $this->librarianOnly(); |
@@ -534,8 +515,7 @@ discard block |
||
| 534 | 515 | * @param \EWW\Dpf\Domain\Model\Document $document |
| 535 | 516 | * @return bool |
| 536 | 517 | */ |
| 537 | - protected function canPostpone($document) |
|
| 538 | - { |
|
| 518 | + protected function canPostpone($document) { |
|
| 539 | 519 | if ($this->isDocumentLocked($document)) { |
| 540 | 520 | return FALSE; |
| 541 | 521 | } |
@@ -552,8 +532,7 @@ discard block |
||
| 552 | 532 | * @param \EWW\Dpf\Domain\Model\Document $document |
| 553 | 533 | * @return bool |
| 554 | 534 | */ |
| 555 | - protected function canCreateRegister($document) |
|
| 556 | - { |
|
| 535 | + protected function canCreateRegister($document) { |
|
| 557 | 536 | if ($this->security->getUserRole()) { |
| 558 | 537 | return FALSE; |
| 559 | 538 | } |
@@ -569,8 +548,7 @@ discard block |
||
| 569 | 548 | * @param \EWW\Dpf\Domain\Model\Document $document |
| 570 | 549 | * @return bool |
| 571 | 550 | */ |
| 572 | - protected function canDuplicate($document) |
|
| 573 | - { |
|
| 551 | + protected function canDuplicate($document) { |
|
| 574 | 552 | if ($this->security->getUserRole() === Security::ROLE_LIBRARIAN) { |
| 575 | 553 | return ( |
| 576 | 554 | $document->getState() !== DocumentWorkflow::STATE_NEW_NONE || |
@@ -592,8 +570,7 @@ discard block |
||
| 592 | 570 | * @param \EWW\Dpf\Domain\Model\Document $document |
| 593 | 571 | * @return bool |
| 594 | 572 | */ |
| 595 | - protected function isDocumentLocked($document) |
|
| 596 | - { |
|
| 573 | + protected function isDocumentLocked($document) { |
|
| 597 | 574 | $identifier = $document->getObjectIdentifier()? $document->getObjectIdentifier() : $document->getUid(); |
| 598 | 575 | return $this->editingLockService->isLocked($identifier, $this->security->getUser()->getUid()); |
| 599 | 576 | } |
@@ -58,7 +58,7 @@ |
||
| 58 | 58 | |
| 59 | 59 | public function denyAccessUnlessGranted($attribute, $subject = NULL) |
| 60 | 60 | { |
| 61 | - if($this->isGranted($attribute, $subject)) { |
|
| 61 | + if ($this->isGranted($attribute, $subject)) { |
|
| 62 | 62 | return; |
| 63 | 63 | } else { |
| 64 | 64 | header('Temporary-Header: True', true, 403); |
@@ -15,8 +15,7 @@ discard block |
||
| 15 | 15 | */ |
| 16 | 16 | |
| 17 | 17 | |
| 18 | -class AuthorizationChecker |
|
| 19 | -{ |
|
| 18 | +class AuthorizationChecker { |
|
| 20 | 19 | /** |
| 21 | 20 | * objectManager |
| 22 | 21 | * |
@@ -33,8 +32,7 @@ discard block |
||
| 33 | 32 | */ |
| 34 | 33 | protected $security = null; |
| 35 | 34 | |
| 36 | - public function denyAccessUnlessLoggedIn() |
|
| 37 | - { |
|
| 35 | + public function denyAccessUnlessLoggedIn() { |
|
| 38 | 36 | $security = $this->objectManager->get(\EWW\Dpf\Security\Security::class); |
| 39 | 37 | |
| 40 | 38 | if ( |
@@ -51,8 +49,7 @@ discard block |
||
| 51 | 49 | } |
| 52 | 50 | } |
| 53 | 51 | |
| 54 | - public function denyAccessUnlessGranted($attribute, $subject = NULL) |
|
| 55 | - { |
|
| 52 | + public function denyAccessUnlessGranted($attribute, $subject = NULL) { |
|
| 56 | 53 | if($this->isGranted($attribute, $subject)) { |
| 57 | 54 | return; |
| 58 | 55 | } else { |
@@ -31,7 +31,7 @@ discard block |
||
| 31 | 31 | * @var \EWW\Dpf\Security\Security |
| 32 | 32 | * @inject |
| 33 | 33 | */ |
| 34 | - protected $security = null; |
|
| 34 | + protected $security = NULL; |
|
| 35 | 35 | |
| 36 | 36 | public function denyAccessUnlessLoggedIn() |
| 37 | 37 | { |
@@ -43,7 +43,7 @@ discard block |
||
| 43 | 43 | ) { |
| 44 | 44 | return; |
| 45 | 45 | } else { |
| 46 | - header('Temporary-Header: True', true, 403); |
|
| 46 | + header('Temporary-Header: True', TRUE, 403); |
|
| 47 | 47 | header_remove('Temporary-Header'); |
| 48 | 48 | $key = 'LLL:EXT:dpf/Resources/Private/Language/locallang.xlf:error.access_denied'; |
| 49 | 49 | $accessDeniedMessage = \TYPO3\CMS\Extbase\Utility\LocalizationUtility::translate($key, 'dpf'); |
@@ -56,7 +56,7 @@ discard block |
||
| 56 | 56 | if($this->isGranted($attribute, $subject)) { |
| 57 | 57 | return; |
| 58 | 58 | } else { |
| 59 | - header('Temporary-Header: True', true, 403); |
|
| 59 | + header('Temporary-Header: True', TRUE, 403); |
|
| 60 | 60 | header_remove('Temporary-Header'); |
| 61 | 61 | $key = 'LLL:EXT:dpf/Resources/Private/Language/locallang.xlf:error.access_denied'; |
| 62 | 62 | $accessDeniedMessage = \TYPO3\CMS\Extbase\Utility\LocalizationUtility::translate($key, 'dpf'); |