We could not synchronize checks via GitHub's checks API since Scrutinizer's GitHub App is not installed for this repository.
@@ -18,142 +18,142 @@ |
||
| 18 | 18 | |
| 19 | 19 | $GLOBALS['TCA']['tt_content']['types']['list']['subtypes_addlist']['dlf_audioplayer'] = 'pi_flexform'; |
| 20 | 20 | |
| 21 | -\TYPO3\CMS\Core\Utility\ExtensionManagementUtility::addPlugin(array ('LLL:EXT:dlf/locallang.xml:tt_content.dlf_audioplayer', 'dlf_audioplayer'), 'list_type', 'dlf'); |
|
| 21 | +\TYPO3\CMS\Core\Utility\ExtensionManagementUtility::addPlugin(array('LLL:EXT:dlf/locallang.xml:tt_content.dlf_audioplayer', 'dlf_audioplayer'), 'list_type', 'dlf'); |
|
| 22 | 22 | |
| 23 | -\TYPO3\CMS\Core\Utility\ExtensionManagementUtility::addPiFlexFormValue('dlf_audioplayer', 'FILE:EXT:'.'dlf/plugins/audioplayer/flexform.xml'); |
|
| 23 | +\TYPO3\CMS\Core\Utility\ExtensionManagementUtility::addPiFlexFormValue('dlf_audioplayer', 'FILE:EXT:' . 'dlf/plugins/audioplayer/flexform.xml'); |
|
| 24 | 24 | |
| 25 | 25 | // Plugin "basket". |
| 26 | 26 | $GLOBALS['TCA']['tt_content']['types']['list']['subtypes_excludelist']['dlf_basket'] = 'layout,select_key,pages,recursive'; |
| 27 | 27 | |
| 28 | 28 | $GLOBALS['TCA']['tt_content']['types']['list']['subtypes_addlist']['dlf_basket'] = 'pi_flexform'; |
| 29 | 29 | |
| 30 | -\TYPO3\CMS\Core\Utility\ExtensionManagementUtility::addPlugin(array ('LLL:EXT:dlf/locallang.xml:tt_content.dlf_basket', 'dlf_basket'), 'list_type', 'dlf'); |
|
| 30 | +\TYPO3\CMS\Core\Utility\ExtensionManagementUtility::addPlugin(array('LLL:EXT:dlf/locallang.xml:tt_content.dlf_basket', 'dlf_basket'), 'list_type', 'dlf'); |
|
| 31 | 31 | |
| 32 | -\TYPO3\CMS\Core\Utility\ExtensionManagementUtility::addPiFlexFormValue('dlf_basket', 'FILE:EXT:'.'dlf/plugins/basket/flexform.xml'); |
|
| 32 | +\TYPO3\CMS\Core\Utility\ExtensionManagementUtility::addPiFlexFormValue('dlf_basket', 'FILE:EXT:' . 'dlf/plugins/basket/flexform.xml'); |
|
| 33 | 33 | |
| 34 | 34 | // Plugin "collection". |
| 35 | 35 | $GLOBALS['TCA']['tt_content']['types']['list']['subtypes_excludelist']['dlf_collection'] = 'layout,select_key,pages,recursive'; |
| 36 | 36 | |
| 37 | 37 | $GLOBALS['TCA']['tt_content']['types']['list']['subtypes_addlist']['dlf_collection'] = 'pi_flexform'; |
| 38 | 38 | |
| 39 | -\TYPO3\CMS\Core\Utility\ExtensionManagementUtility::addPlugin(array ('LLL:EXT:dlf/locallang.xml:tt_content.dlf_collection', 'dlf_collection'), 'list_type', 'dlf'); |
|
| 39 | +\TYPO3\CMS\Core\Utility\ExtensionManagementUtility::addPlugin(array('LLL:EXT:dlf/locallang.xml:tt_content.dlf_collection', 'dlf_collection'), 'list_type', 'dlf'); |
|
| 40 | 40 | |
| 41 | -\TYPO3\CMS\Core\Utility\ExtensionManagementUtility::addPiFlexFormValue('dlf_collection', 'FILE:EXT:'.'dlf/plugins/collection/flexform.xml'); |
|
| 41 | +\TYPO3\CMS\Core\Utility\ExtensionManagementUtility::addPiFlexFormValue('dlf_collection', 'FILE:EXT:' . 'dlf/plugins/collection/flexform.xml'); |
|
| 42 | 42 | |
| 43 | 43 | // Plugin "feeds". |
| 44 | 44 | $GLOBALS['TCA']['tt_content']['types']['list']['subtypes_excludelist']['dlf_feeds'] = 'layout,select_key,pages,recursive'; |
| 45 | 45 | |
| 46 | 46 | $GLOBALS['TCA']['tt_content']['types']['list']['subtypes_addlist']['dlf_feeds'] = 'pi_flexform'; |
| 47 | 47 | |
| 48 | -\TYPO3\CMS\Core\Utility\ExtensionManagementUtility::addPlugin(array ('LLL:EXT:dlf/locallang.xml:tt_content.dlf_feeds', 'dlf_feeds'), 'list_type', 'dlf'); |
|
| 48 | +\TYPO3\CMS\Core\Utility\ExtensionManagementUtility::addPlugin(array('LLL:EXT:dlf/locallang.xml:tt_content.dlf_feeds', 'dlf_feeds'), 'list_type', 'dlf'); |
|
| 49 | 49 | |
| 50 | -\TYPO3\CMS\Core\Utility\ExtensionManagementUtility::addPiFlexFormValue('dlf_feeds', 'FILE:EXT:'.'dlf/plugins/feeds/flexform.xml'); |
|
| 50 | +\TYPO3\CMS\Core\Utility\ExtensionManagementUtility::addPiFlexFormValue('dlf_feeds', 'FILE:EXT:' . 'dlf/plugins/feeds/flexform.xml'); |
|
| 51 | 51 | |
| 52 | 52 | // Plugin "listview". |
| 53 | 53 | $GLOBALS['TCA']['tt_content']['types']['list']['subtypes_excludelist']['dlf_listview'] = 'layout,select_key,pages,recursive'; |
| 54 | 54 | |
| 55 | 55 | $GLOBALS['TCA']['tt_content']['types']['list']['subtypes_addlist']['dlf_listview'] = 'pi_flexform'; |
| 56 | 56 | |
| 57 | -\TYPO3\CMS\Core\Utility\ExtensionManagementUtility::addPlugin(array ('LLL:EXT:dlf/locallang.xml:tt_content.dlf_listview', 'dlf_listview'), 'list_type', 'dlf'); |
|
| 57 | +\TYPO3\CMS\Core\Utility\ExtensionManagementUtility::addPlugin(array('LLL:EXT:dlf/locallang.xml:tt_content.dlf_listview', 'dlf_listview'), 'list_type', 'dlf'); |
|
| 58 | 58 | |
| 59 | -\TYPO3\CMS\Core\Utility\ExtensionManagementUtility::addPiFlexFormValue('dlf_listview', 'FILE:EXT:'.'dlf/plugins/listview/flexform.xml'); |
|
| 59 | +\TYPO3\CMS\Core\Utility\ExtensionManagementUtility::addPiFlexFormValue('dlf_listview', 'FILE:EXT:' . 'dlf/plugins/listview/flexform.xml'); |
|
| 60 | 60 | |
| 61 | 61 | // Plugin "metadata". |
| 62 | 62 | $GLOBALS['TCA']['tt_content']['types']['list']['subtypes_excludelist']['dlf_metadata'] = 'layout,select_key,pages,recursive'; |
| 63 | 63 | |
| 64 | 64 | $GLOBALS['TCA']['tt_content']['types']['list']['subtypes_addlist']['dlf_metadata'] = 'pi_flexform'; |
| 65 | 65 | |
| 66 | -\TYPO3\CMS\Core\Utility\ExtensionManagementUtility::addPlugin(array ('LLL:EXT:dlf/locallang.xml:tt_content.dlf_metadata', 'dlf_metadata'), 'list_type', 'dlf'); |
|
| 66 | +\TYPO3\CMS\Core\Utility\ExtensionManagementUtility::addPlugin(array('LLL:EXT:dlf/locallang.xml:tt_content.dlf_metadata', 'dlf_metadata'), 'list_type', 'dlf'); |
|
| 67 | 67 | |
| 68 | -\TYPO3\CMS\Core\Utility\ExtensionManagementUtility::addPiFlexFormValue('dlf_metadata', 'FILE:EXT:'.'dlf/plugins/metadata/flexform.xml'); |
|
| 68 | +\TYPO3\CMS\Core\Utility\ExtensionManagementUtility::addPiFlexFormValue('dlf_metadata', 'FILE:EXT:' . 'dlf/plugins/metadata/flexform.xml'); |
|
| 69 | 69 | |
| 70 | 70 | // Plugin "navigation". |
| 71 | 71 | $GLOBALS['TCA']['tt_content']['types']['list']['subtypes_excludelist']['dlf_navigation'] = 'layout,select_key,pages,recursive'; |
| 72 | 72 | |
| 73 | 73 | $GLOBALS['TCA']['tt_content']['types']['list']['subtypes_addlist']['dlf_navigation'] = 'pi_flexform'; |
| 74 | 74 | |
| 75 | -\TYPO3\CMS\Core\Utility\ExtensionManagementUtility::addPlugin(array ('LLL:EXT:dlf/locallang.xml:tt_content.dlf_navigation', 'dlf_navigation'), 'list_type', 'dlf'); |
|
| 75 | +\TYPO3\CMS\Core\Utility\ExtensionManagementUtility::addPlugin(array('LLL:EXT:dlf/locallang.xml:tt_content.dlf_navigation', 'dlf_navigation'), 'list_type', 'dlf'); |
|
| 76 | 76 | |
| 77 | -\TYPO3\CMS\Core\Utility\ExtensionManagementUtility::addPiFlexFormValue('dlf_navigation', 'FILE:EXT:'.'dlf/plugins/navigation/flexform.xml'); |
|
| 77 | +\TYPO3\CMS\Core\Utility\ExtensionManagementUtility::addPiFlexFormValue('dlf_navigation', 'FILE:EXT:' . 'dlf/plugins/navigation/flexform.xml'); |
|
| 78 | 78 | |
| 79 | 79 | // Plugin "newspaper". |
| 80 | 80 | $GLOBALS['TCA']['tt_content']['types']['list']['subtypes_excludelist']['dlf_newspaper'] = 'layout,select_key,pages,recursive'; |
| 81 | 81 | |
| 82 | 82 | $GLOBALS['TCA']['tt_content']['types']['list']['subtypes_addlist']['dlf_newspaper'] = 'pi_flexform'; |
| 83 | 83 | |
| 84 | -\TYPO3\CMS\Core\Utility\ExtensionManagementUtility::addPlugin(array ('LLL:EXT:dlf/locallang.xml:tt_content.dlf_newspaper', 'dlf_newspaper'), 'list_type', 'dlf'); |
|
| 84 | +\TYPO3\CMS\Core\Utility\ExtensionManagementUtility::addPlugin(array('LLL:EXT:dlf/locallang.xml:tt_content.dlf_newspaper', 'dlf_newspaper'), 'list_type', 'dlf'); |
|
| 85 | 85 | |
| 86 | -\TYPO3\CMS\Core\Utility\ExtensionManagementUtility::addPiFlexFormValue('dlf_newspaper', 'FILE:EXT:'.'dlf/plugins/newspaper/flexform.xml'); |
|
| 86 | +\TYPO3\CMS\Core\Utility\ExtensionManagementUtility::addPiFlexFormValue('dlf_newspaper', 'FILE:EXT:' . 'dlf/plugins/newspaper/flexform.xml'); |
|
| 87 | 87 | |
| 88 | 88 | // Plugin "oai". |
| 89 | 89 | $GLOBALS['TCA']['tt_content']['types']['list']['subtypes_excludelist']['dlf_oai'] = 'layout,select_key,pages,recursive'; |
| 90 | 90 | |
| 91 | 91 | $GLOBALS['TCA']['tt_content']['types']['list']['subtypes_addlist']['dlf_oai'] = 'pi_flexform'; |
| 92 | 92 | |
| 93 | -\TYPO3\CMS\Core\Utility\ExtensionManagementUtility::addPlugin(array ('LLL:EXT:dlf/locallang.xml:tt_content.dlf_oai', 'dlf_oai'), 'list_type', 'dlf'); |
|
| 93 | +\TYPO3\CMS\Core\Utility\ExtensionManagementUtility::addPlugin(array('LLL:EXT:dlf/locallang.xml:tt_content.dlf_oai', 'dlf_oai'), 'list_type', 'dlf'); |
|
| 94 | 94 | |
| 95 | -\TYPO3\CMS\Core\Utility\ExtensionManagementUtility::addPiFlexFormValue('dlf_oai', 'FILE:EXT:'.'dlf/plugins/oai/flexform.xml'); |
|
| 95 | +\TYPO3\CMS\Core\Utility\ExtensionManagementUtility::addPiFlexFormValue('dlf_oai', 'FILE:EXT:' . 'dlf/plugins/oai/flexform.xml'); |
|
| 96 | 96 | |
| 97 | 97 | // Plugin "pagegrid". |
| 98 | 98 | $GLOBALS['TCA']['tt_content']['types']['list']['subtypes_excludelist']['dlf_pagegrid'] = 'layout,select_key,pages,recursive'; |
| 99 | 99 | |
| 100 | 100 | $GLOBALS['TCA']['tt_content']['types']['list']['subtypes_addlist']['dlf_pagegrid'] = 'pi_flexform'; |
| 101 | 101 | |
| 102 | -\TYPO3\CMS\Core\Utility\ExtensionManagementUtility::addPlugin(array ('LLL:EXT:dlf/locallang.xml:tt_content.dlf_pagegrid', 'dlf_pagegrid'), 'list_type', 'dlf'); |
|
| 102 | +\TYPO3\CMS\Core\Utility\ExtensionManagementUtility::addPlugin(array('LLL:EXT:dlf/locallang.xml:tt_content.dlf_pagegrid', 'dlf_pagegrid'), 'list_type', 'dlf'); |
|
| 103 | 103 | |
| 104 | -\TYPO3\CMS\Core\Utility\ExtensionManagementUtility::addPiFlexFormValue('dlf_pagegrid', 'FILE:EXT:'.'dlf/plugins/pagegrid/flexform.xml'); |
|
| 104 | +\TYPO3\CMS\Core\Utility\ExtensionManagementUtility::addPiFlexFormValue('dlf_pagegrid', 'FILE:EXT:' . 'dlf/plugins/pagegrid/flexform.xml'); |
|
| 105 | 105 | |
| 106 | 106 | // Plugin "pageview". |
| 107 | 107 | $GLOBALS['TCA']['tt_content']['types']['list']['subtypes_excludelist']['dlf_pageview'] = 'layout,select_key,pages,recursive'; |
| 108 | 108 | |
| 109 | 109 | $GLOBALS['TCA']['tt_content']['types']['list']['subtypes_addlist']['dlf_pageview'] = 'pi_flexform'; |
| 110 | 110 | |
| 111 | -\TYPO3\CMS\Core\Utility\ExtensionManagementUtility::addPlugin(array ('LLL:EXT:dlf/locallang.xml:tt_content.dlf_pageview', 'dlf_pageview'), 'list_type', 'dlf'); |
|
| 111 | +\TYPO3\CMS\Core\Utility\ExtensionManagementUtility::addPlugin(array('LLL:EXT:dlf/locallang.xml:tt_content.dlf_pageview', 'dlf_pageview'), 'list_type', 'dlf'); |
|
| 112 | 112 | |
| 113 | -\TYPO3\CMS\Core\Utility\ExtensionManagementUtility::addPiFlexFormValue('dlf_pageview', 'FILE:EXT:'.'dlf/plugins/pageview/flexform.xml'); |
|
| 113 | +\TYPO3\CMS\Core\Utility\ExtensionManagementUtility::addPiFlexFormValue('dlf_pageview', 'FILE:EXT:' . 'dlf/plugins/pageview/flexform.xml'); |
|
| 114 | 114 | |
| 115 | 115 | // Plugin "search". |
| 116 | 116 | $GLOBALS['TCA']['tt_content']['types']['list']['subtypes_excludelist']['dlf_search'] = 'layout,select_key,pages,recursive'; |
| 117 | 117 | |
| 118 | 118 | $GLOBALS['TCA']['tt_content']['types']['list']['subtypes_addlist']['dlf_search'] = 'pi_flexform'; |
| 119 | 119 | |
| 120 | -\TYPO3\CMS\Core\Utility\ExtensionManagementUtility::addPlugin(array ('LLL:EXT:dlf/locallang.xml:tt_content.dlf_search', 'dlf_search'), 'list_type', 'dlf'); |
|
| 120 | +\TYPO3\CMS\Core\Utility\ExtensionManagementUtility::addPlugin(array('LLL:EXT:dlf/locallang.xml:tt_content.dlf_search', 'dlf_search'), 'list_type', 'dlf'); |
|
| 121 | 121 | |
| 122 | 122 | |
| 123 | -\TYPO3\CMS\Core\Utility\ExtensionManagementUtility::addPiFlexFormValue('dlf_search', 'FILE:EXT:'.'dlf/plugins/search/flexform.xml'); |
|
| 123 | +\TYPO3\CMS\Core\Utility\ExtensionManagementUtility::addPiFlexFormValue('dlf_search', 'FILE:EXT:' . 'dlf/plugins/search/flexform.xml'); |
|
| 124 | 124 | |
| 125 | 125 | // Plugin "statistics". |
| 126 | 126 | $GLOBALS['TCA']['tt_content']['types']['list']['subtypes_excludelist']['dlf_statistics'] = 'layout,select_key,pages,recursive'; |
| 127 | 127 | |
| 128 | 128 | $GLOBALS['TCA']['tt_content']['types']['list']['subtypes_addlist']['dlf_statistics'] = 'pi_flexform'; |
| 129 | 129 | |
| 130 | -\TYPO3\CMS\Core\Utility\ExtensionManagementUtility::addPlugin(array ('LLL:EXT:dlf/locallang.xml:tt_content.dlf_statistics', 'dlf_statistics'), 'list_type', 'dlf'); |
|
| 130 | +\TYPO3\CMS\Core\Utility\ExtensionManagementUtility::addPlugin(array('LLL:EXT:dlf/locallang.xml:tt_content.dlf_statistics', 'dlf_statistics'), 'list_type', 'dlf'); |
|
| 131 | 131 | |
| 132 | -\TYPO3\CMS\Core\Utility\ExtensionManagementUtility::addPiFlexFormValue('dlf_statistics', 'FILE:EXT:'.'dlf/plugins/statistics/flexform.xml'); |
|
| 132 | +\TYPO3\CMS\Core\Utility\ExtensionManagementUtility::addPiFlexFormValue('dlf_statistics', 'FILE:EXT:' . 'dlf/plugins/statistics/flexform.xml'); |
|
| 133 | 133 | |
| 134 | 134 | // Plugin "table of contents". |
| 135 | 135 | $GLOBALS['TCA']['tt_content']['types']['list']['subtypes_excludelist']['dlf_toc'] = 'layout,select_key,pages,recursive'; |
| 136 | 136 | |
| 137 | 137 | $GLOBALS['TCA']['tt_content']['types']['list']['subtypes_addlist']['dlf_toc'] = 'pi_flexform'; |
| 138 | 138 | |
| 139 | -\TYPO3\CMS\Core\Utility\ExtensionManagementUtility::addPlugin(array ('LLL:EXT:dlf/locallang.xml:tt_content.dlf_toc', 'dlf_toc'), 'list_type', 'dlf'); |
|
| 139 | +\TYPO3\CMS\Core\Utility\ExtensionManagementUtility::addPlugin(array('LLL:EXT:dlf/locallang.xml:tt_content.dlf_toc', 'dlf_toc'), 'list_type', 'dlf'); |
|
| 140 | 140 | |
| 141 | -\TYPO3\CMS\Core\Utility\ExtensionManagementUtility::addPiFlexFormValue('dlf_toc', 'FILE:EXT:'.'dlf/plugins/toc/flexform.xml'); |
|
| 141 | +\TYPO3\CMS\Core\Utility\ExtensionManagementUtility::addPiFlexFormValue('dlf_toc', 'FILE:EXT:' . 'dlf/plugins/toc/flexform.xml'); |
|
| 142 | 142 | |
| 143 | 143 | // Plugin "toolbox". |
| 144 | 144 | $GLOBALS['TCA']['tt_content']['types']['list']['subtypes_excludelist']['dlf_toolbox'] = 'layout,select_key,pages,recursive'; |
| 145 | 145 | |
| 146 | 146 | $GLOBALS['TCA']['tt_content']['types']['list']['subtypes_addlist']['dlf_toolbox'] = 'pi_flexform'; |
| 147 | 147 | |
| 148 | -\TYPO3\CMS\Core\Utility\ExtensionManagementUtility::addPlugin(array ('LLL:EXT:dlf/locallang.xml:tt_content.dlf_toolbox', 'dlf_toolbox'), 'list_type', 'dlf'); |
|
| 148 | +\TYPO3\CMS\Core\Utility\ExtensionManagementUtility::addPlugin(array('LLL:EXT:dlf/locallang.xml:tt_content.dlf_toolbox', 'dlf_toolbox'), 'list_type', 'dlf'); |
|
| 149 | 149 | |
| 150 | -\TYPO3\CMS\Core\Utility\ExtensionManagementUtility::addPiFlexFormValue('dlf_toolbox', 'FILE:EXT:'.'dlf/plugins/toolbox/flexform.xml'); |
|
| 150 | +\TYPO3\CMS\Core\Utility\ExtensionManagementUtility::addPiFlexFormValue('dlf_toolbox', 'FILE:EXT:' . 'dlf/plugins/toolbox/flexform.xml'); |
|
| 151 | 151 | |
| 152 | 152 | // Plugin "validator". |
| 153 | 153 | $GLOBALS['TCA']['tt_content']['types']['list']['subtypes_excludelist']['dlf_validator'] = 'layout,select_key,pages,recursive'; |
| 154 | 154 | |
| 155 | 155 | $GLOBALS['TCA']['tt_content']['types']['list']['subtypes_addlist']['dlf_validator'] = 'pi_flexform'; |
| 156 | 156 | |
| 157 | -\TYPO3\CMS\Core\Utility\ExtensionManagementUtility::addPlugin(array ('LLL:EXT:dlf/locallang.xml:tt_content.dlf_validator', 'dlf_validator'), 'list_type', 'dlf'); |
|
| 157 | +\TYPO3\CMS\Core\Utility\ExtensionManagementUtility::addPlugin(array('LLL:EXT:dlf/locallang.xml:tt_content.dlf_validator', 'dlf_validator'), 'list_type', 'dlf'); |
|
| 158 | 158 | |
| 159 | -\TYPO3\CMS\Core\Utility\ExtensionManagementUtility::addPiFlexFormValue('dlf_validator', 'FILE:EXT:'.'dlf/plugins/validator/flexform.xml'); |
|
| 159 | +\TYPO3\CMS\Core\Utility\ExtensionManagementUtility::addPiFlexFormValue('dlf_validator', 'FILE:EXT:' . 'dlf/plugins/validator/flexform.xml'); |
|
@@ -34,11 +34,11 @@ discard block |
||
| 34 | 34 | $output = '<div style="padding:5px; background-color:#000000;">'; |
| 35 | 35 | |
| 36 | 36 | // Simulate TCA field type "passthrough". |
| 37 | - $output .= '<input type="hidden" name="'.$params['itemFormElName'].'" value="'.$params['itemFormElValue'].'" />'; |
|
| 37 | + $output .= '<input type="hidden" name="' . $params['itemFormElName'] . '" value="' . $params['itemFormElValue'] . '" />'; |
|
| 38 | 38 | |
| 39 | 39 | if (!empty($params['itemFormElValue'])) { |
| 40 | 40 | |
| 41 | - $output .= '<img alt="" src="'.$params['itemFormElValue'].'" />'; |
|
| 41 | + $output .= '<img alt="" src="' . $params['itemFormElValue'] . '" />'; |
|
| 42 | 42 | |
| 43 | 43 | } |
| 44 | 44 | |
@@ -94,7 +94,7 @@ discard block |
||
| 94 | 94 | $result = $GLOBALS['TYPO3_DB']->exec_SELECTquery( |
| 95 | 95 | 'label,uid', |
| 96 | 96 | 'tx_dlf_collections', |
| 97 | - 'pid='.intval($pages).' AND (sys_language_uid IN (-1,0) OR l18n_parent=0)'.tx_dlf_helper::whereClause('tx_dlf_collections'), |
|
| 97 | + 'pid=' . intval($pages) . ' AND (sys_language_uid IN (-1,0) OR l18n_parent=0)' . tx_dlf_helper::whereClause('tx_dlf_collections'), |
|
| 98 | 98 | '', |
| 99 | 99 | 'label', |
| 100 | 100 | '' |
@@ -162,7 +162,7 @@ discard block |
||
| 162 | 162 | $result = $GLOBALS['TYPO3_DB']->exec_SELECTquery( |
| 163 | 163 | 'label,index_name', |
| 164 | 164 | 'tx_dlf_metadata', |
| 165 | - 'index_indexed=1 AND pid='.intval($pages).' AND (sys_language_uid IN (-1,0) OR l18n_parent=0)'.tx_dlf_helper::whereClause('tx_dlf_metadata'), |
|
| 165 | + 'index_indexed=1 AND pid=' . intval($pages) . ' AND (sys_language_uid IN (-1,0) OR l18n_parent=0)' . tx_dlf_helper::whereClause('tx_dlf_metadata'), |
|
| 166 | 166 | '', |
| 167 | 167 | 'sorting', |
| 168 | 168 | '' |
@@ -230,7 +230,7 @@ discard block |
||
| 230 | 230 | $result = $GLOBALS['TYPO3_DB']->exec_SELECTquery( |
| 231 | 231 | 'label,index_name', |
| 232 | 232 | 'tx_dlf_metadata', |
| 233 | - 'is_facet=1 AND pid='.intval($pages).' AND (sys_language_uid IN (-1,0) OR l18n_parent=0)'.tx_dlf_helper::whereClause('tx_dlf_metadata'), |
|
| 233 | + 'is_facet=1 AND pid=' . intval($pages) . ' AND (sys_language_uid IN (-1,0) OR l18n_parent=0)' . tx_dlf_helper::whereClause('tx_dlf_metadata'), |
|
| 234 | 234 | '', |
| 235 | 235 | 'sorting', |
| 236 | 236 | '' |
@@ -298,7 +298,7 @@ discard block |
||
| 298 | 298 | $result = $GLOBALS['TYPO3_DB']->exec_SELECTquery( |
| 299 | 299 | 'label,uid', |
| 300 | 300 | 'tx_dlf_libraries', |
| 301 | - 'pid='.intval($pages).' AND (sys_language_uid IN (-1,0) OR l18n_parent=0)'.tx_dlf_helper::whereClause('tx_dlf_libraries'), |
|
| 301 | + 'pid=' . intval($pages) . ' AND (sys_language_uid IN (-1,0) OR l18n_parent=0)' . tx_dlf_helper::whereClause('tx_dlf_libraries'), |
|
| 302 | 302 | '', |
| 303 | 303 | 'label', |
| 304 | 304 | '' |
@@ -366,7 +366,7 @@ discard block |
||
| 366 | 366 | $result = $GLOBALS['TYPO3_DB']->exec_SELECTquery( |
| 367 | 367 | 'label,uid', |
| 368 | 368 | 'tx_dlf_solrcores', |
| 369 | - 'pid IN ('.intval($pages).',0)'.tx_dlf_helper::whereClause('tx_dlf_solrcores'), |
|
| 369 | + 'pid IN (' . intval($pages) . ',0)' . tx_dlf_helper::whereClause('tx_dlf_solrcores'), |
|
| 370 | 370 | '', |
| 371 | 371 | 'label', |
| 372 | 372 | '' |
@@ -402,7 +402,7 @@ discard block |
||
| 402 | 402 | |
| 403 | 403 | foreach ($GLOBALS['TYPO3_CONF_VARS']['SC_OPTIONS']['dlf/plugins/toolbox/tools'] as $class => $label) { |
| 404 | 404 | |
| 405 | - $params['items'][] = array ($GLOBALS['LANG']->sL($label), $class); |
|
| 405 | + $params['items'][] = array($GLOBALS['LANG']->sL($label), $class); |
|
| 406 | 406 | |
| 407 | 407 | } |
| 408 | 408 | |
@@ -70,7 +70,7 @@ |
||
| 70 | 70 | |
| 71 | 71 | } |
| 72 | 72 | |
| 73 | - $recordIds = $xml->xpath('//mets:dmdSec[@ID="'.$id.'"]//mods:mods/mods:recordInfo/mods:recordIdentifier'); |
|
| 73 | + $recordIds = $xml->xpath('//mets:dmdSec[@ID="' . $id . '"]//mods:mods/mods:recordInfo/mods:recordIdentifier'); |
|
| 74 | 74 | |
| 75 | 75 | if (!empty($recordIds[0])) { |
| 76 | 76 | |
@@ -25,7 +25,7 @@ discard block |
||
| 25 | 25 | * @var array |
| 26 | 26 | * @access protected |
| 27 | 27 | */ |
| 28 | - protected $conf = array (); |
|
| 28 | + protected $conf = array(); |
|
| 29 | 29 | |
| 30 | 30 | /** |
| 31 | 31 | * This holds the output ready to return |
@@ -52,7 +52,7 @@ discard block |
||
| 52 | 52 | // Prepend username and password to hostname. |
| 53 | 53 | if (!empty($solrInfo['username']) && !empty($solrInfo['password'])) { |
| 54 | 54 | |
| 55 | - $host = $solrInfo['username'].':'.$solrInfo['password'].'@'.$solrInfo['host']; |
|
| 55 | + $host = $solrInfo['username'] . ':' . $solrInfo['password'] . '@' . $solrInfo['host']; |
|
| 56 | 56 | |
| 57 | 57 | } else { |
| 58 | 58 | |
@@ -61,10 +61,10 @@ discard block |
||
| 61 | 61 | } |
| 62 | 62 | |
| 63 | 63 | // Build request URI. |
| 64 | - $url = $solrInfo['scheme'].'://'.$host.':'.$solrInfo['port'].'/'.$solrInfo['path'].'/admin/cores?wt=xml'; |
|
| 64 | + $url = $solrInfo['scheme'] . '://' . $host . ':' . $solrInfo['port'] . '/' . $solrInfo['path'] . '/admin/cores?wt=xml'; |
|
| 65 | 65 | |
| 66 | - $context = stream_context_create(array ( |
|
| 67 | - 'http' => array ( |
|
| 66 | + $context = stream_context_create(array( |
|
| 67 | + 'http' => array( |
|
| 68 | 68 | 'method' => 'GET', |
| 69 | 69 | 'user_agent' => (!empty($this->conf['useragent']) ? $this->conf['useragent'] : ini_get('user_agent')) |
| 70 | 70 | ) |
@@ -129,7 +129,7 @@ discard block |
||
| 129 | 129 | $result = $GLOBALS['TYPO3_DB']->exec_SELECTquery( |
| 130 | 130 | 'uid,admin,usergroup', |
| 131 | 131 | 'be_users', |
| 132 | - 'username='.$GLOBALS['TYPO3_DB']->fullQuoteStr('_cli_dlf', 'be_users').\TYPO3\CMS\Backend\Utility\BackendUtility::deleteClause('be_users') |
|
| 132 | + 'username=' . $GLOBALS['TYPO3_DB']->fullQuoteStr('_cli_dlf', 'be_users') . \TYPO3\CMS\Backend\Utility\BackendUtility::deleteClause('be_users') |
|
| 133 | 133 | ); |
| 134 | 134 | |
| 135 | 135 | if ($GLOBALS['TYPO3_DB']->sql_num_rows($result) > 0) { |
@@ -143,11 +143,11 @@ discard block |
||
| 143 | 143 | $result2 = $GLOBALS['TYPO3_DB']->exec_SELECTquery( |
| 144 | 144 | '1', |
| 145 | 145 | 'be_users', |
| 146 | - 'uid='.intval($resArray['uid']).\TYPO3\CMS\Backend\Utility\BackendUtility::BEenableFields('be_users') |
|
| 146 | + 'uid=' . intval($resArray['uid']) . \TYPO3\CMS\Backend\Utility\BackendUtility::BEenableFields('be_users') |
|
| 147 | 147 | ); |
| 148 | 148 | |
| 149 | 149 | // Check if user is configured properly. |
| 150 | - if (count(array_diff(array ($groupUid), $resArray['usergroup'])) == 0 |
|
| 150 | + if (count(array_diff(array($groupUid), $resArray['usergroup'])) == 0 |
|
| 151 | 151 | && !$resArray['admin'] |
| 152 | 152 | && $GLOBALS['TYPO3_DB']->sql_num_rows($result2) > 0) { |
| 153 | 153 | |
@@ -166,11 +166,11 @@ discard block |
||
| 166 | 166 | if (!$checkOnly && $groupUid) { |
| 167 | 167 | |
| 168 | 168 | // Keep exisiting values and add the new ones. |
| 169 | - $usergroup = array_unique(array_merge(array ($groupUid), $resArray['usergroup'])); |
|
| 169 | + $usergroup = array_unique(array_merge(array($groupUid), $resArray['usergroup'])); |
|
| 170 | 170 | |
| 171 | 171 | // Try to configure user. |
| 172 | - $data = array (); |
|
| 173 | - $data['be_users'][$resArray['uid']] = array ( |
|
| 172 | + $data = array(); |
|
| 173 | + $data['be_users'][$resArray['uid']] = array( |
|
| 174 | 174 | 'admin' => 0, |
| 175 | 175 | 'usergroup' => implode(',', $usergroup), |
| 176 | 176 | $GLOBALS['TCA']['be_users']['ctrl']['enablecolumns']['disabled'] => 0, |
@@ -226,8 +226,8 @@ discard block |
||
| 226 | 226 | // Try to create user. |
| 227 | 227 | $tempUid = uniqid('NEW'); |
| 228 | 228 | |
| 229 | - $data = array (); |
|
| 230 | - $data['be_users'][$tempUid] = array ( |
|
| 229 | + $data = array(); |
|
| 230 | + $data['be_users'][$tempUid] = array( |
|
| 231 | 231 | 'pid' => 0, |
| 232 | 232 | 'username' => '_cli_dlf', |
| 233 | 233 | 'password' => md5($tempUid), |
@@ -292,7 +292,7 @@ discard block |
||
| 292 | 292 | * |
| 293 | 293 | * @return integer UID of usergroup or 0 if something is wrong |
| 294 | 294 | */ |
| 295 | - protected function checkCliGroup($checkOnly, $settings = array ()) { |
|
| 295 | + protected function checkCliGroup($checkOnly, $settings = array()) { |
|
| 296 | 296 | |
| 297 | 297 | // Set default return value. |
| 298 | 298 | $grpUid = 0; |
@@ -300,9 +300,9 @@ discard block |
||
| 300 | 300 | // Set default configuration for usergroup. |
| 301 | 301 | if (empty($settings)) { |
| 302 | 302 | |
| 303 | - $settings = array ( |
|
| 304 | - 'non_exclude_fields' => array (), |
|
| 305 | - 'tables_select' => array ( |
|
| 303 | + $settings = array( |
|
| 304 | + 'non_exclude_fields' => array(), |
|
| 305 | + 'tables_select' => array( |
|
| 306 | 306 | 'tx_dlf_documents', |
| 307 | 307 | 'tx_dlf_collections', |
| 308 | 308 | 'tx_dlf_libraries', |
@@ -312,7 +312,7 @@ discard block |
||
| 312 | 312 | 'tx_dlf_formats', |
| 313 | 313 | 'tx_dlf_solrcores' |
| 314 | 314 | ), |
| 315 | - 'tables_modify' => array ( |
|
| 315 | + 'tables_modify' => array( |
|
| 316 | 316 | 'tx_dlf_documents', |
| 317 | 317 | 'tx_dlf_collections', |
| 318 | 318 | 'tx_dlf_libraries' |
@@ -326,7 +326,7 @@ discard block |
||
| 326 | 326 | |
| 327 | 327 | if (!empty($fieldConf['exclude'])) { |
| 328 | 328 | |
| 329 | - $settings['non_exclude_fields'][] = $table.':'.$field; |
|
| 329 | + $settings['non_exclude_fields'][] = $table . ':' . $field; |
|
| 330 | 330 | |
| 331 | 331 | } |
| 332 | 332 | |
@@ -338,10 +338,10 @@ discard block |
||
| 338 | 338 | |
| 339 | 339 | // Check if group "_cli_dlf" exists and is not disabled. |
| 340 | 340 | $result = $GLOBALS['TYPO3_DB']->exec_SELECTquery( |
| 341 | - 'uid,non_exclude_fields,tables_select,tables_modify,'. |
|
| 341 | + 'uid,non_exclude_fields,tables_select,tables_modify,' . |
|
| 342 | 342 | $GLOBALS['TCA']['be_groups']['ctrl']['enablecolumns']['disabled'], |
| 343 | 343 | 'be_groups', |
| 344 | - 'title='.$GLOBALS['TYPO3_DB']->fullQuoteStr('_cli_dlf', 'be_groups'). |
|
| 344 | + 'title=' . $GLOBALS['TYPO3_DB']->fullQuoteStr('_cli_dlf', 'be_groups') . |
|
| 345 | 345 | \TYPO3\CMS\Backend\Utility\BackendUtility::deleteClause('be_groups') |
| 346 | 346 | ); |
| 347 | 347 | |
@@ -384,8 +384,8 @@ discard block |
||
| 384 | 384 | $tables_modify = array_unique(array_merge($settings['tables_modify'], $resArray['tables_modify'])); |
| 385 | 385 | |
| 386 | 386 | // Try to configure usergroup. |
| 387 | - $data = array (); |
|
| 388 | - $data['be_groups'][$resArray['uid']] = array ( |
|
| 387 | + $data = array(); |
|
| 388 | + $data['be_groups'][$resArray['uid']] = array( |
|
| 389 | 389 | 'non_exclude_fields' => implode(',', $non_exclude_fields), |
| 390 | 390 | 'tables_select' => implode(',', $tables_select), |
| 391 | 391 | 'tables_modify' => implode(',', $tables_modify), |
@@ -440,8 +440,8 @@ discard block |
||
| 440 | 440 | // Try to create usergroup. |
| 441 | 441 | $tempUid = uniqid('NEW'); |
| 442 | 442 | |
| 443 | - $data = array (); |
|
| 444 | - $data['be_groups'][$tempUid] = array ( |
|
| 443 | + $data = array(); |
|
| 444 | + $data['be_groups'][$tempUid] = array( |
|
| 445 | 445 | 'pid' => 0, |
| 446 | 446 | 'title' => '_cli_dlf', |
| 447 | 447 | 'description' => $GLOBALS['LANG']->getLL('cliUserGroup.grpDescription'), |
@@ -522,7 +522,7 @@ discard block |
||
| 522 | 522 | $this->content .= $content; |
| 523 | 523 | |
| 524 | 524 | // Check if CLI dispatcher is executable. |
| 525 | - if (is_executable(PATH_typo3.'cli_dispatch.phpsh')) { |
|
| 525 | + if (is_executable(PATH_typo3 . 'cli_dispatch.phpsh')) { |
|
| 526 | 526 | |
| 527 | 527 | $message = \TYPO3\CMS\Core\Utility\GeneralUtility::makeInstance( |
| 528 | 528 | 'TYPO3\\CMS\\Core\\Messaging\\FlashMessage', |
@@ -562,7 +562,7 @@ discard block |
||
| 562 | 562 | */ |
| 563 | 563 | public function checkMetadataFormats(&$params, &$pObj) { |
| 564 | 564 | |
| 565 | - $nsDefined = array ( |
|
| 565 | + $nsDefined = array( |
|
| 566 | 566 | 'MODS' => FALSE, |
| 567 | 567 | 'TEIHDR' => FALSE |
| 568 | 568 | ); |
@@ -571,7 +571,7 @@ discard block |
||
| 571 | 571 | $result = $GLOBALS['TYPO3_DB']->exec_SELECTquery( |
| 572 | 572 | 'type', |
| 573 | 573 | 'tx_dlf_formats', |
| 574 | - '(type='.$GLOBALS['TYPO3_DB']->fullQuoteStr('MODS', 'tx_dlf_formats').' OR type='.$GLOBALS['TYPO3_DB']->fullQuoteStr('TEIHDR', 'tx_dlf_formats').')'.tx_dlf_helper::whereClause('tx_dlf_formats') |
|
| 574 | + '(type=' . $GLOBALS['TYPO3_DB']->fullQuoteStr('MODS', 'tx_dlf_formats') . ' OR type=' . $GLOBALS['TYPO3_DB']->fullQuoteStr('TEIHDR', 'tx_dlf_formats') . ')' . tx_dlf_helper::whereClause('tx_dlf_formats') |
|
| 575 | 575 | ); |
| 576 | 576 | |
| 577 | 577 | while ($resArray = $GLOBALS['TYPO3_DB']->sql_fetch_assoc($result)) { |
@@ -581,12 +581,12 @@ discard block |
||
| 581 | 581 | } |
| 582 | 582 | |
| 583 | 583 | // Build data array. |
| 584 | - $data = array (); |
|
| 584 | + $data = array(); |
|
| 585 | 585 | |
| 586 | 586 | // Add MODS namespace. |
| 587 | 587 | if (!$nsDefined['MODS']) { |
| 588 | 588 | |
| 589 | - $data['tx_dlf_formats'][uniqid('NEW')] = array ( |
|
| 589 | + $data['tx_dlf_formats'][uniqid('NEW')] = array( |
|
| 590 | 590 | 'pid' => 0, |
| 591 | 591 | 'type' => 'MODS', |
| 592 | 592 | 'root' => 'mods', |
@@ -599,7 +599,7 @@ discard block |
||
| 599 | 599 | // Add TEIHDR namespace. |
| 600 | 600 | if (!$nsDefined['TEIHDR']) { |
| 601 | 601 | |
| 602 | - $data['tx_dlf_formats'][uniqid('NEW')] = array ( |
|
| 602 | + $data['tx_dlf_formats'][uniqid('NEW')] = array( |
|
| 603 | 603 | 'pid' => 0, |
| 604 | 604 | 'type' => 'TEIHDR', |
| 605 | 605 | 'root' => 'teiHeader', |
@@ -119,7 +119,7 @@ discard block |
||
| 119 | 119 | // Prepend username and password to hostname. |
| 120 | 120 | if ($solrInfo['username'] && $solrInfo['password']) { |
| 121 | 121 | |
| 122 | - $host = $solrInfo['username'].':'.$solrInfo['password'].'@'.$solrInfo['host']; |
|
| 122 | + $host = $solrInfo['username'] . ':' . $solrInfo['password'] . '@' . $solrInfo['host']; |
|
| 123 | 123 | |
| 124 | 124 | } else { |
| 125 | 125 | |
@@ -127,8 +127,8 @@ discard block |
||
| 127 | 127 | |
| 128 | 128 | } |
| 129 | 129 | |
| 130 | - $context = stream_context_create(array ( |
|
| 131 | - 'http' => array ( |
|
| 130 | + $context = stream_context_create(array( |
|
| 131 | + 'http' => array( |
|
| 132 | 132 | 'method' => 'GET', |
| 133 | 133 | 'user_agent' => ($conf['useragent'] ? $conf['useragent'] : ini_get('user_agent')) |
| 134 | 134 | ) |
@@ -136,7 +136,7 @@ discard block |
||
| 136 | 136 | |
| 137 | 137 | // Build request for adding new Solr core. |
| 138 | 138 | // @see http://wiki.apache.org/solr/CoreAdmin |
| 139 | - $url = $solrInfo['scheme'].'://'.$host.':'.$solrInfo['port'].'/'.$solrInfo['path'].'/admin/cores?wt=xml&action=CREATE&name=dlfCore'.$coreNumber.'&instanceDir=dlfCore'.$coreNumber.'&dataDir=data&configSet=dlf'; |
|
| 139 | + $url = $solrInfo['scheme'] . '://' . $host . ':' . $solrInfo['port'] . '/' . $solrInfo['path'] . '/admin/cores?wt=xml&action=CREATE&name=dlfCore' . $coreNumber . '&instanceDir=dlfCore' . $coreNumber . '&dataDir=data&configSet=dlf'; |
|
| 140 | 140 | |
| 141 | 141 | $response = @simplexml_load_string(file_get_contents($url, FALSE, $context)); |
| 142 | 142 | |
@@ -147,7 +147,7 @@ discard block |
||
| 147 | 147 | |
| 148 | 148 | if ($status && $status[0] == 0) { |
| 149 | 149 | |
| 150 | - $fieldArray['index_name'] = 'dlfCore'.$coreNumber; |
|
| 150 | + $fieldArray['index_name'] = 'dlfCore' . $coreNumber; |
|
| 151 | 151 | |
| 152 | 152 | return; |
| 153 | 153 | |
@@ -157,12 +157,12 @@ discard block |
||
| 157 | 157 | |
| 158 | 158 | if (TYPO3_DLOG) { |
| 159 | 159 | |
| 160 | - \TYPO3\CMS\Core\Utility\GeneralUtility::devLog('[tx_dlf_tcemain->processDatamap_postProcessFieldArray('.$status.', '.$table.', '.$id.', [data], ['.get_class($pObj).'])] Could not create new Apache Solr core "dlfCore'.$coreNumber.'"', $this->extKey, SYSLOG_SEVERITY_ERROR, $fieldArray); |
|
| 160 | + \TYPO3\CMS\Core\Utility\GeneralUtility::devLog('[tx_dlf_tcemain->processDatamap_postProcessFieldArray(' . $status . ', ' . $table . ', ' . $id . ', [data], [' . get_class($pObj) . '])] Could not create new Apache Solr core "dlfCore' . $coreNumber . '"', $this->extKey, SYSLOG_SEVERITY_ERROR, $fieldArray); |
|
| 161 | 161 | |
| 162 | 162 | } |
| 163 | 163 | |
| 164 | 164 | // Solr core could not be created, thus unset field array. |
| 165 | - $fieldArray = array (); |
|
| 165 | + $fieldArray = array(); |
|
| 166 | 166 | |
| 167 | 167 | break; |
| 168 | 168 | |
@@ -186,9 +186,9 @@ discard block |
||
| 186 | 186 | |
| 187 | 187 | // Get current configuration. |
| 188 | 188 | $result = $GLOBALS['TYPO3_DB']->exec_SELECTquery( |
| 189 | - $table.'.is_listed AS is_listed', |
|
| 189 | + $table . '.is_listed AS is_listed', |
|
| 190 | 190 | $table, |
| 191 | - $table.'.uid='.intval($id).tx_dlf_helper::whereClause($table), |
|
| 191 | + $table . '.uid=' . intval($id) . tx_dlf_helper::whereClause($table), |
|
| 192 | 192 | '', |
| 193 | 193 | '', |
| 194 | 194 | '1' |
@@ -214,9 +214,9 @@ discard block |
||
| 214 | 214 | |
| 215 | 215 | // Get current configuration. |
| 216 | 216 | $result = $GLOBALS['TYPO3_DB']->exec_SELECTquery( |
| 217 | - $table.'.index_autocomplete AS index_autocomplete', |
|
| 217 | + $table . '.index_autocomplete AS index_autocomplete', |
|
| 218 | 218 | $table, |
| 219 | - $table.'.uid='.intval($id).tx_dlf_helper::whereClause($table), |
|
| 219 | + $table . '.uid=' . intval($id) . tx_dlf_helper::whereClause($table), |
|
| 220 | 220 | '', |
| 221 | 221 | '', |
| 222 | 222 | '1' |
@@ -240,15 +240,15 @@ discard block |
||
| 240 | 240 | if (count($fieldArray) < 2) { |
| 241 | 241 | |
| 242 | 242 | // Unset the whole field array. |
| 243 | - $fieldArray = array (); |
|
| 243 | + $fieldArray = array(); |
|
| 244 | 244 | |
| 245 | 245 | } else { |
| 246 | 246 | |
| 247 | 247 | // Get current index name. |
| 248 | 248 | $result = $GLOBALS['TYPO3_DB']->exec_SELECTquery( |
| 249 | - $table.'.index_name AS index_name', |
|
| 249 | + $table . '.index_name AS index_name', |
|
| 250 | 250 | $table, |
| 251 | - $table.'.uid='.intval($id).tx_dlf_helper::whereClause($table), |
|
| 251 | + $table . '.uid=' . intval($id) . tx_dlf_helper::whereClause($table), |
|
| 252 | 252 | '', |
| 253 | 253 | '', |
| 254 | 254 | '1' |
@@ -265,7 +265,7 @@ discard block |
||
| 265 | 265 | |
| 266 | 266 | if (TYPO3_DLOG) { |
| 267 | 267 | |
| 268 | - \TYPO3\CMS\Core\Utility\GeneralUtility::devLog('[tx_dlf_tcemain->processDatamap_postProcessFieldArray('.$status.', '.$table.', '.$id.', [data], ['.get_class($pObj).'])] Prevented change of "index_name" for UID "'.$id.'" in table "'.$table.'"', $this->extKey, SYSLOG_SEVERITY_NOTICE, $fieldArray); |
|
| 268 | + \TYPO3\CMS\Core\Utility\GeneralUtility::devLog('[tx_dlf_tcemain->processDatamap_postProcessFieldArray(' . $status . ', ' . $table . ', ' . $id . ', [data], [' . get_class($pObj) . '])] Prevented change of "index_name" for UID "' . $id . '" in table "' . $table . '"', $this->extKey, SYSLOG_SEVERITY_NOTICE, $fieldArray); |
|
| 269 | 269 | |
| 270 | 270 | } |
| 271 | 271 | |
@@ -308,7 +308,7 @@ discard block |
||
| 308 | 308 | $result = $GLOBALS['TYPO3_DB']->exec_SELECTquery( |
| 309 | 309 | 'tx_dlf_solrcores.uid,tx_dlf_documents.hidden', |
| 310 | 310 | 'tx_dlf_solrcores,tx_dlf_documents', |
| 311 | - 'tx_dlf_solrcores.uid=tx_dlf_documents.solrcore AND tx_dlf_documents.uid='.intval($id).tx_dlf_helper::whereClause('tx_dlf_solrcores'), |
|
| 311 | + 'tx_dlf_solrcores.uid=tx_dlf_documents.solrcore AND tx_dlf_documents.uid=' . intval($id) . tx_dlf_helper::whereClause('tx_dlf_solrcores'), |
|
| 312 | 312 | '', |
| 313 | 313 | '', |
| 314 | 314 | '1' |
@@ -325,7 +325,7 @@ discard block |
||
| 325 | 325 | |
| 326 | 326 | // Delete Solr document. |
| 327 | 327 | $updateQuery = $solr->service->createUpdate(); |
| 328 | - $updateQuery->addDeleteQuery('uid:'.$id); |
|
| 328 | + $updateQuery->addDeleteQuery('uid:' . $id); |
|
| 329 | 329 | $updateQuery->addCommit(); |
| 330 | 330 | $solr->service->update($updateQuery); |
| 331 | 331 | |
@@ -344,7 +344,7 @@ discard block |
||
| 344 | 344 | |
| 345 | 345 | if (TYPO3_DLOG) { |
| 346 | 346 | |
| 347 | - \TYPO3\CMS\Core\Utility\GeneralUtility::devLog('[tx_dlf_tcemain->processDatamap_afterDatabaseOperations('.$status.', '.$table.', '.$id.', [data], ['.get_class($pObj).'])] Failed to re-index document with UID "'.$id.'"', $this->extKey, SYSLOG_SEVERITY_ERROR, $fieldArray); |
|
| 347 | + \TYPO3\CMS\Core\Utility\GeneralUtility::devLog('[tx_dlf_tcemain->processDatamap_afterDatabaseOperations(' . $status . ', ' . $table . ', ' . $id . ', [data], [' . get_class($pObj) . '])] Failed to re-index document with UID "' . $id . '"', $this->extKey, SYSLOG_SEVERITY_ERROR, $fieldArray); |
|
| 348 | 348 | |
| 349 | 349 | } |
| 350 | 350 | |
@@ -379,13 +379,13 @@ discard block |
||
| 379 | 379 | */ |
| 380 | 380 | public function processCmdmap_postProcess($command, $table, $id, $value, $pObj) { |
| 381 | 381 | |
| 382 | - if (in_array($command, array ('move', 'delete', 'undelete')) && $table == 'tx_dlf_documents') { |
|
| 382 | + if (in_array($command, array('move', 'delete', 'undelete')) && $table == 'tx_dlf_documents') { |
|
| 383 | 383 | |
| 384 | 384 | // Get Solr core. |
| 385 | 385 | $result = $GLOBALS['TYPO3_DB']->exec_SELECTquery( |
| 386 | 386 | 'tx_dlf_solrcores.uid', |
| 387 | 387 | 'tx_dlf_solrcores,tx_dlf_documents', |
| 388 | - 'tx_dlf_solrcores.uid=tx_dlf_documents.solrcore AND tx_dlf_documents.uid='.intval($id).tx_dlf_helper::whereClause('tx_dlf_solrcores'), |
|
| 388 | + 'tx_dlf_solrcores.uid=tx_dlf_documents.solrcore AND tx_dlf_documents.uid=' . intval($id) . tx_dlf_helper::whereClause('tx_dlf_solrcores'), |
|
| 389 | 389 | '', |
| 390 | 390 | '', |
| 391 | 391 | '1' |
@@ -405,7 +405,7 @@ discard block |
||
| 405 | 405 | |
| 406 | 406 | // Delete Solr document. |
| 407 | 407 | $updateQuery = $solr->service->createUpdate(); |
| 408 | - $updateQuery->addDeleteQuery('uid:'.$id); |
|
| 408 | + $updateQuery->addDeleteQuery('uid:' . $id); |
|
| 409 | 409 | $updateQuery->addCommit(); |
| 410 | 410 | $solr->service->update($updateQuery); |
| 411 | 411 | |
@@ -430,7 +430,7 @@ discard block |
||
| 430 | 430 | |
| 431 | 431 | if (TYPO3_DLOG) { |
| 432 | 432 | |
| 433 | - \TYPO3\CMS\Core\Utility\GeneralUtility::devLog('[tx_dlf_tcemain->processCmdmap_postProcess('.$command.', '.$table.', '.$id.', '.$value.', ['.get_class($pObj).'])] Failed to re-index document with UID "'.$id.'"', $this->extKey, SYSLOG_SEVERITY_ERROR); |
|
| 433 | + \TYPO3\CMS\Core\Utility\GeneralUtility::devLog('[tx_dlf_tcemain->processCmdmap_postProcess(' . $command . ', ' . $table . ', ' . $id . ', ' . $value . ', [' . get_class($pObj) . '])] Failed to re-index document with UID "' . $id . '"', $this->extKey, SYSLOG_SEVERITY_ERROR); |
|
| 434 | 434 | |
| 435 | 435 | } |
| 436 | 436 | |
@@ -43,7 +43,7 @@ discard block |
||
| 43 | 43 | * @var array |
| 44 | 44 | * @access protected |
| 45 | 45 | */ |
| 46 | - protected $piVars = array (); |
|
| 46 | + protected $piVars = array(); |
|
| 47 | 47 | |
| 48 | 48 | /** |
| 49 | 49 | * This holds the DLF parameter prefix |
@@ -171,7 +171,7 @@ discard block |
||
| 171 | 171 | |
| 172 | 172 | if (TYPO3_DLOG) { |
| 173 | 173 | |
| 174 | - \TYPO3\CMS\Core\Utility\GeneralUtility::devLog('[tx_dlf_doctype->loadDocument()] Failed to load document with UID "'.$this->piVars['id'].'"', $this->extKey, SYSLOG_SEVERITY_WARNING); |
|
| 174 | + \TYPO3\CMS\Core\Utility\GeneralUtility::devLog('[tx_dlf_doctype->loadDocument()] Failed to load document with UID "' . $this->piVars['id'] . '"', $this->extKey, SYSLOG_SEVERITY_WARNING); |
|
| 175 | 175 | |
| 176 | 176 | } |
| 177 | 177 | |
@@ -183,7 +183,7 @@ discard block |
||
| 183 | 183 | $result = $GLOBALS['TYPO3_DB']->exec_SELECTquery( |
| 184 | 184 | 'tx_dlf_documents.uid', |
| 185 | 185 | 'tx_dlf_documents', |
| 186 | - 'tx_dlf_documents.record_id='.$GLOBALS['TYPO3_DB']->fullQuoteStr($this->piVars['recordId'], 'tx_dlf_documents').tx_dlf_helper::whereClause('tx_dlf_documents'), |
|
| 186 | + 'tx_dlf_documents.record_id=' . $GLOBALS['TYPO3_DB']->fullQuoteStr($this->piVars['recordId'], 'tx_dlf_documents') . tx_dlf_helper::whereClause('tx_dlf_documents'), |
|
| 187 | 187 | '', |
| 188 | 188 | '', |
| 189 | 189 | '1' |
@@ -206,7 +206,7 @@ discard block |
||
| 206 | 206 | |
| 207 | 207 | if (TYPO3_DLOG) { |
| 208 | 208 | |
| 209 | - \TYPO3\CMS\Core\Utility\GeneralUtility::devLog('[tx_dlf_doctype->loadDocument()] Failed to load document with record ID "'.$this->piVars['recordId'].'"', $this->extKey, SYSLOG_SEVERITY_WARNING); |
|
| 209 | + \TYPO3\CMS\Core\Utility\GeneralUtility::devLog('[tx_dlf_doctype->loadDocument()] Failed to load document with record ID "' . $this->piVars['recordId'] . '"', $this->extKey, SYSLOG_SEVERITY_WARNING); |
|
| 210 | 210 | |
| 211 | 211 | } |
| 212 | 212 | |
@@ -19,7 +19,7 @@ discard block |
||
| 19 | 19 | // Add modules after "web". |
| 20 | 20 | if (!isset($TBE_MODULES['txdlfmodules'])) { |
| 21 | 21 | |
| 22 | - $modules = array (); |
|
| 22 | + $modules = array(); |
|
| 23 | 23 | |
| 24 | 24 | foreach ($TBE_MODULES as $key => $val) { |
| 25 | 25 | |
@@ -44,17 +44,17 @@ discard block |
||
| 44 | 44 | } |
| 45 | 45 | |
| 46 | 46 | // Main "dlf" module. |
| 47 | - \TYPO3\CMS\Core\Utility\ExtensionManagementUtility::addModule('txdlfmodules', '', '', \TYPO3\CMS\Core\Utility\ExtensionManagementUtility::extPath($_EXTKEY).'modules/'); |
|
| 47 | + \TYPO3\CMS\Core\Utility\ExtensionManagementUtility::addModule('txdlfmodules', '', '', \TYPO3\CMS\Core\Utility\ExtensionManagementUtility::extPath($_EXTKEY) . 'modules/'); |
|
| 48 | 48 | |
| 49 | 49 | \TYPO3\CMS\Core\Utility\ExtensionManagementUtility::addNavigationComponent('txdlfmodules', 'typo3-pagetree'); |
| 50 | 50 | |
| 51 | 51 | // Module "indexing". |
| 52 | - \TYPO3\CMS\Core\Utility\ExtensionManagementUtility::addModule('txdlfmodules', 'txdlfindexing', '', \TYPO3\CMS\Core\Utility\ExtensionManagementUtility::extPath($_EXTKEY).'modules/indexing/'); |
|
| 52 | + \TYPO3\CMS\Core\Utility\ExtensionManagementUtility::addModule('txdlfmodules', 'txdlfindexing', '', \TYPO3\CMS\Core\Utility\ExtensionManagementUtility::extPath($_EXTKEY) . 'modules/indexing/'); |
|
| 53 | 53 | |
| 54 | 54 | \TYPO3\CMS\Core\Utility\ExtensionManagementUtility::addLLrefForTCAdescr('_MOD_txdlfmodules_txdlfindexing', 'EXT:dlf/modules/indexing/locallang_mod.xml'); |
| 55 | 55 | |
| 56 | 56 | // Module "newclient". |
| 57 | - \TYPO3\CMS\Core\Utility\ExtensionManagementUtility::addModule('txdlfmodules', 'txdlfnewclient', '', \TYPO3\CMS\Core\Utility\ExtensionManagementUtility::extPath($_EXTKEY).'modules/newclient/'); |
|
| 57 | + \TYPO3\CMS\Core\Utility\ExtensionManagementUtility::addModule('txdlfmodules', 'txdlfnewclient', '', \TYPO3\CMS\Core\Utility\ExtensionManagementUtility::extPath($_EXTKEY) . 'modules/newclient/'); |
|
| 58 | 58 | |
| 59 | 59 | \TYPO3\CMS\Core\Utility\ExtensionManagementUtility::addLLrefForTCAdescr('_MOD_txdlfmodules_txdlfnewclient', 'EXT:dlf/modules/newclient/locallang_mod.xml'); |
| 60 | 60 | |
@@ -48,11 +48,11 @@ discard block |
||
| 48 | 48 | case 'index': |
| 49 | 49 | |
| 50 | 50 | // Add command line arguments. |
| 51 | - $this->cli_options[] = array ('-doc UID/URL', 'UID or (properly encoded) URL of the document.'); |
|
| 51 | + $this->cli_options[] = array('-doc UID/URL', 'UID or (properly encoded) URL of the document.'); |
|
| 52 | 52 | |
| 53 | - $this->cli_options[] = array ('-pid UID', 'UID of the page the document should be added to.'); |
|
| 53 | + $this->cli_options[] = array('-pid UID', 'UID of the page the document should be added to.'); |
|
| 54 | 54 | |
| 55 | - $this->cli_options[] = array ('-core UID', 'UID of the Solr core the document should be added to.'); |
|
| 55 | + $this->cli_options[] = array('-core UID', 'UID of the Solr core the document should be added to.'); |
|
| 56 | 56 | |
| 57 | 57 | // Check the command line arguments. |
| 58 | 58 | $this->cli_validateArgs(); |
@@ -60,7 +60,7 @@ discard block |
||
| 60 | 60 | if (!\TYPO3\CMS\Core\Utility\MathUtility::canBeInterpretedAsInteger($this->cli_args['-doc'][0]) |
| 61 | 61 | && !\TYPO3\CMS\Core\Utility\GeneralUtility::isValidUrl($this->cli_args['-doc'][0])) { |
| 62 | 62 | |
| 63 | - $this->cli_echo('ERROR: "'.$this->cli_args['-doc'][0].'" is not a valid document UID or URL.'.LF, TRUE); |
|
| 63 | + $this->cli_echo('ERROR: "' . $this->cli_args['-doc'][0] . '" is not a valid document UID or URL.' . LF, TRUE); |
|
| 64 | 64 | |
| 65 | 65 | $this->return = 1; |
| 66 | 66 | |
@@ -68,7 +68,7 @@ discard block |
||
| 68 | 68 | |
| 69 | 69 | if (!\TYPO3\CMS\Core\Utility\MathUtility::canBeInterpretedAsInteger($this->cli_args['-pid'][0])) { |
| 70 | 70 | |
| 71 | - $this->cli_echo('ERROR: "'.$this->cli_args['-pid'][0].'" is not a valid page UID.'.LF, TRUE); |
|
| 71 | + $this->cli_echo('ERROR: "' . $this->cli_args['-pid'][0] . '" is not a valid page UID.' . LF, TRUE); |
|
| 72 | 72 | |
| 73 | 73 | $this->return = 1; |
| 74 | 74 | |
@@ -76,7 +76,7 @@ discard block |
||
| 76 | 76 | |
| 77 | 77 | if (!\TYPO3\CMS\Core\Utility\MathUtility::canBeInterpretedAsInteger($this->cli_args['-core'][0])) { |
| 78 | 78 | |
| 79 | - $this->cli_echo('ERROR: "'.$this->cli_args['-core'][0].'" is not a valid core UID.'.LF, TRUE); |
|
| 79 | + $this->cli_echo('ERROR: "' . $this->cli_args['-core'][0] . '" is not a valid core UID.' . LF, TRUE); |
|
| 80 | 80 | |
| 81 | 81 | $this->return = 1; |
| 82 | 82 | |
@@ -96,7 +96,7 @@ discard block |
||
| 96 | 96 | // ...and save it to the database... |
| 97 | 97 | if (!$doc->save(intval($this->cli_args['-pid'][0]), intval($this->cli_args['-core'][0]))) { |
| 98 | 98 | |
| 99 | - $this->cli_echo('ERROR: Document "'.$this->cli_args['-doc'][0].'" not saved and indexed.'.LF, TRUE); |
|
| 99 | + $this->cli_echo('ERROR: Document "' . $this->cli_args['-doc'][0] . '" not saved and indexed.' . LF, TRUE); |
|
| 100 | 100 | |
| 101 | 101 | $this->return = 1; |
| 102 | 102 | |
@@ -104,7 +104,7 @@ discard block |
||
| 104 | 104 | |
| 105 | 105 | } else { |
| 106 | 106 | |
| 107 | - $this->cli_echo('ERROR: Document "'.$this->cli_args['-doc'][0].'" could not be loaded.'.LF, TRUE); |
|
| 107 | + $this->cli_echo('ERROR: Document "' . $this->cli_args['-doc'][0] . '" could not be loaded.' . LF, TRUE); |
|
| 108 | 108 | |
| 109 | 109 | $this->return = 1; |
| 110 | 110 | |
@@ -116,18 +116,18 @@ discard block |
||
| 116 | 116 | case 'reindex': |
| 117 | 117 | |
| 118 | 118 | // Add command line arguments. |
| 119 | - $this->cli_options[] = array ('-coll UID', 'UID of the collection.'); |
|
| 119 | + $this->cli_options[] = array('-coll UID', 'UID of the collection.'); |
|
| 120 | 120 | |
| 121 | - $this->cli_options[] = array ('-pid UID', 'UID of the page the document should be added to.'); |
|
| 121 | + $this->cli_options[] = array('-pid UID', 'UID of the page the document should be added to.'); |
|
| 122 | 122 | |
| 123 | - $this->cli_options[] = array ('-core UID', 'UID of the Solr core the document should be added to.'); |
|
| 123 | + $this->cli_options[] = array('-core UID', 'UID of the Solr core the document should be added to.'); |
|
| 124 | 124 | |
| 125 | 125 | // Check the command line arguments. |
| 126 | 126 | $this->cli_validateArgs(); |
| 127 | 127 | |
| 128 | 128 | if (!\TYPO3\CMS\Core\Utility\MathUtility::canBeInterpretedAsInteger($this->cli_args['-coll'][0])) { |
| 129 | 129 | |
| 130 | - $this->cli_echo('ERROR: "'.$this->cli_args['-coll'][0].'" is not a valid collection UID.'.LF, TRUE); |
|
| 130 | + $this->cli_echo('ERROR: "' . $this->cli_args['-coll'][0] . '" is not a valid collection UID.' . LF, TRUE); |
|
| 131 | 131 | |
| 132 | 132 | $this->return = 1; |
| 133 | 133 | |
@@ -135,7 +135,7 @@ discard block |
||
| 135 | 135 | |
| 136 | 136 | if (!\TYPO3\CMS\Core\Utility\MathUtility::canBeInterpretedAsInteger($this->cli_args['-pid'][0])) { |
| 137 | 137 | |
| 138 | - $this->cli_echo('ERROR: "'.$this->cli_args['-pid'][0].'" is not a valid page UID.'.LF, TRUE); |
|
| 138 | + $this->cli_echo('ERROR: "' . $this->cli_args['-pid'][0] . '" is not a valid page UID.' . LF, TRUE); |
|
| 139 | 139 | |
| 140 | 140 | $this->return = 1; |
| 141 | 141 | |
@@ -143,7 +143,7 @@ discard block |
||
| 143 | 143 | |
| 144 | 144 | if (!\TYPO3\CMS\Core\Utility\MathUtility::canBeInterpretedAsInteger($this->cli_args['-core'][0])) { |
| 145 | 145 | |
| 146 | - $this->cli_echo('ERROR: "'.$this->cli_args['-core'][0].'" is not a valid core UID.'.LF, TRUE); |
|
| 146 | + $this->cli_echo('ERROR: "' . $this->cli_args['-core'][0] . '" is not a valid core UID.' . LF, TRUE); |
|
| 147 | 147 | |
| 148 | 148 | $this->return = 1; |
| 149 | 149 | |
@@ -161,7 +161,7 @@ discard block |
||
| 161 | 161 | 'tx_dlf_documents', |
| 162 | 162 | 'tx_dlf_relations', |
| 163 | 163 | 'tx_dlf_collections', |
| 164 | - 'AND tx_dlf_collections.uid='.intval($this->cli_args['-coll'][0]).' AND tx_dlf_collections.pid='.intval($this->cli_args['-pid'][0]).' AND tx_dlf_relations.ident='.$GLOBALS['TYPO3_DB']->fullQuoteStr('docs_colls', 'tx_dlf_relations').tx_dlf_helper::whereClause('tx_dlf_documents').tx_dlf_helper::whereClause('tx_dlf_collections'), |
|
| 164 | + 'AND tx_dlf_collections.uid=' . intval($this->cli_args['-coll'][0]) . ' AND tx_dlf_collections.pid=' . intval($this->cli_args['-pid'][0]) . ' AND tx_dlf_relations.ident=' . $GLOBALS['TYPO3_DB']->fullQuoteStr('docs_colls', 'tx_dlf_relations') . tx_dlf_helper::whereClause('tx_dlf_documents') . tx_dlf_helper::whereClause('tx_dlf_collections'), |
|
| 165 | 165 | '', |
| 166 | 166 | '', |
| 167 | 167 | '' |
@@ -177,7 +177,7 @@ discard block |
||
| 177 | 177 | // ...and save it to the database... |
| 178 | 178 | if (!$doc->save(intval($this->cli_args['-pid'][0]), intval($this->cli_args['-core'][0]))) { |
| 179 | 179 | |
| 180 | - $this->cli_echo('ERROR: Document "'.$resArray['uid'].'" not saved and indexed.'.LF, TRUE); |
|
| 180 | + $this->cli_echo('ERROR: Document "' . $resArray['uid'] . '" not saved and indexed.' . LF, TRUE); |
|
| 181 | 181 | |
| 182 | 182 | $this->return = 1; |
| 183 | 183 | |
@@ -185,7 +185,7 @@ discard block |
||
| 185 | 185 | |
| 186 | 186 | } else { |
| 187 | 187 | |
| 188 | - $this->cli_echo('ERROR: Document "'.$resArray['uid'].'" could not be loaded.'.LF, TRUE); |
|
| 188 | + $this->cli_echo('ERROR: Document "' . $resArray['uid'] . '" could not be loaded.' . LF, TRUE); |
|
| 189 | 189 | |
| 190 | 190 | $this->return = 1; |
| 191 | 191 | |
@@ -213,10 +213,10 @@ discard block |
||
| 213 | 213 | public function __construct() { |
| 214 | 214 | |
| 215 | 215 | // Set basic information about the script. |
| 216 | - $this->cli_help = array ( |
|
| 216 | + $this->cli_help = array( |
|
| 217 | 217 | 'name' => 'Command Line Interface for Kitodo.Presentation', |
| 218 | 218 | 'synopsis' => '###OPTIONS###', |
| 219 | - 'description' => 'Currently the only tasks available are "index" and "reindex".'.LF.'Try "/PATH/TO/TYPO3/cli_dispatch.phpsh dlf TASK" for more options.', |
|
| 219 | + 'description' => 'Currently the only tasks available are "index" and "reindex".' . LF . 'Try "/PATH/TO/TYPO3/cli_dispatch.phpsh dlf TASK" for more options.', |
|
| 220 | 220 | 'examples' => '/PATH/TO/TYPO3/cli_dispatch.phpsh dlf TASK -ARG1=VALUE1 -ARG2=VALUE2', |
| 221 | 221 | 'options' => '', |
| 222 | 222 | 'license' => 'GNU GPL - free software!', |
@@ -63,7 +63,7 @@ discard block |
||
| 63 | 63 | */ |
| 64 | 64 | protected function getMetadataConfig() { |
| 65 | 65 | |
| 66 | - $uids = array (); |
|
| 66 | + $uids = array(); |
|
| 67 | 67 | |
| 68 | 68 | // check if tx_dlf_metadata.xpath exists anyhow |
| 69 | 69 | $fieldsInDatabase = $GLOBALS['TYPO3_DB']->admin_get_fields('tx_dlf_metadata'); |
@@ -78,7 +78,7 @@ discard block |
||
| 78 | 78 | $result = $GLOBALS['TYPO3_DB']->exec_SELECTquery( |
| 79 | 79 | 'tx_dlf_metadata.uid AS uid', |
| 80 | 80 | 'tx_dlf_metadata', |
| 81 | - 'tx_dlf_metadata.format=0 AND NOT tx_dlf_metadata.xpath=\'\''.tx_dlf_helper::whereClause('tx_dlf_metadata'), |
|
| 81 | + 'tx_dlf_metadata.format=0 AND NOT tx_dlf_metadata.xpath=\'\'' . tx_dlf_helper::whereClause('tx_dlf_metadata'), |
|
| 82 | 82 | '', |
| 83 | 83 | '', |
| 84 | 84 | '' |
@@ -222,13 +222,13 @@ discard block |
||
| 222 | 222 | |
| 223 | 223 | if (!empty($metadataUids)) { |
| 224 | 224 | |
| 225 | - $data = array (); |
|
| 225 | + $data = array(); |
|
| 226 | 226 | |
| 227 | 227 | // Get all old metadata configuration records. |
| 228 | 228 | $result = $GLOBALS['TYPO3_DB']->exec_SELECTquery( |
| 229 | 229 | 'tx_dlf_metadata.uid AS uid,tx_dlf_metadata.pid AS pid,tx_dlf_metadata.cruser_id AS cruser_id,tx_dlf_metadata.encoded AS encoded,tx_dlf_metadata.xpath AS xpath,tx_dlf_metadata.xpath_sorting AS xpath_sorting', |
| 230 | 230 | 'tx_dlf_metadata', |
| 231 | - 'tx_dlf_metadata.uid IN ('.implode(',', $metadataUids).')'.tx_dlf_helper::whereClause('tx_dlf_metadata'), |
|
| 231 | + 'tx_dlf_metadata.uid IN (' . implode(',', $metadataUids) . ')' . tx_dlf_helper::whereClause('tx_dlf_metadata'), |
|
| 232 | 232 | '', |
| 233 | 233 | '', |
| 234 | 234 | '' |
@@ -239,7 +239,7 @@ discard block |
||
| 239 | 239 | $newId = uniqid('NEW'); |
| 240 | 240 | |
| 241 | 241 | // Copy record to new table. |
| 242 | - $data['tx_dlf_metadataformat'][$newId] = array ( |
|
| 242 | + $data['tx_dlf_metadataformat'][$newId] = array( |
|
| 243 | 243 | 'pid' => $resArray['pid'], |
| 244 | 244 | 'cruser_id' => $resArray['cruser_id'], |
| 245 | 245 | 'parent_id' => $resArray['uid'], |
@@ -359,7 +359,7 @@ discard block |
||
| 359 | 359 | // Prepend username and password to hostname. |
| 360 | 360 | if ($solrInfo['username'] && $solrInfo['password']) { |
| 361 | 361 | |
| 362 | - $host = $solrInfo['username'].':'.$solrInfo['password'].'@'.$solrInfo['host']; |
|
| 362 | + $host = $solrInfo['username'] . ':' . $solrInfo['password'] . '@' . $solrInfo['host']; |
|
| 363 | 363 | |
| 364 | 364 | } else { |
| 365 | 365 | |
@@ -367,8 +367,8 @@ discard block |
||
| 367 | 367 | |
| 368 | 368 | } |
| 369 | 369 | |
| 370 | - $context = stream_context_create(array ( |
|
| 371 | - 'http' => array ( |
|
| 370 | + $context = stream_context_create(array( |
|
| 371 | + 'http' => array( |
|
| 372 | 372 | 'method' => 'GET', |
| 373 | 373 | 'user_agent' => ($conf['useragent'] ? $conf['useragent'] : ini_get('user_agent')) |
| 374 | 374 | ) |
@@ -376,7 +376,7 @@ discard block |
||
| 376 | 376 | |
| 377 | 377 | // Build request for adding new Solr core. |
| 378 | 378 | // @see http://wiki.apache.org/solr/CoreAdmin |
| 379 | - $url = $solrInfo['scheme'].'://'.$host.':'.$solrInfo['port'].'/'.$solrInfo['path'].'/admin/cores?wt=xml&action=CREATE&name='.$resArray['index_name'].'&instanceDir=dlfCore'.$resArray['index_name'].'&dataDir=data&configSet=dlf'; |
|
| 379 | + $url = $solrInfo['scheme'] . '://' . $host . ':' . $solrInfo['port'] . '/' . $solrInfo['path'] . '/admin/cores?wt=xml&action=CREATE&name=' . $resArray['index_name'] . '&instanceDir=dlfCore' . $resArray['index_name'] . '&dataDir=data&configSet=dlf'; |
|
| 380 | 380 | |
| 381 | 381 | $response = @simplexml_load_string(file_get_contents($url, FALSE, $context)); |
| 382 | 382 | |