@@ -54,7 +54,7 @@ discard block |
||
| 54 | 54 | } |
| 55 | 55 | |
| 56 | 56 | // Build data array. |
| 57 | - $data = array ( |
|
| 57 | + $data = array( |
|
| 58 | 58 | 'conf' => $this->conf, |
| 59 | 59 | 'piVars' => $this->piVars, |
| 60 | 60 | ); |
@@ -73,7 +73,7 @@ discard block |
||
| 73 | 73 | |
| 74 | 74 | $cObj->data = $data; |
| 75 | 75 | |
| 76 | - $content .= $this->cObj->substituteMarkerArray($subpart, array ('###TOOL###' => $cObj->cObjGetSingle($GLOBALS['TSFE']->tmpl->setup['plugin.'][$tool], $GLOBALS['TSFE']->tmpl->setup['plugin.'][$tool.'.']))); |
|
| 76 | + $content .= $this->cObj->substituteMarkerArray($subpart, array('###TOOL###' => $cObj->cObjGetSingle($GLOBALS['TSFE']->tmpl->setup['plugin.'][$tool], $GLOBALS['TSFE']->tmpl->setup['plugin.'][$tool.'.']))); |
|
| 77 | 77 | |
| 78 | 78 | } |
| 79 | 79 | |
@@ -27,7 +27,7 @@ discard block |
||
| 27 | 27 | * @var array |
| 28 | 28 | * @access protected |
| 29 | 29 | */ |
| 30 | - protected $hookObjects = array (); |
|
| 30 | + protected $hookObjects = array(); |
|
| 31 | 31 | |
| 32 | 32 | /** |
| 33 | 33 | * The main method of the PlugIn |
@@ -170,7 +170,7 @@ discard block |
||
| 170 | 170 | '' |
| 171 | 171 | ); |
| 172 | 172 | |
| 173 | - $volumes = array (); |
|
| 173 | + $volumes = array(); |
|
| 174 | 174 | |
| 175 | 175 | while ($resArrayVolumes = $GLOBALS['TYPO3_DB']->sql_fetch_assoc($resultVolumes)) { |
| 176 | 176 | |
@@ -189,7 +189,7 @@ discard block |
||
| 189 | 189 | } while (!empty($markerArray[$_key])); |
| 190 | 190 | |
| 191 | 191 | // Merge plugin variables with new set of values. |
| 192 | - $additionalParams = array ('collection' => $resArray['uid']); |
|
| 192 | + $additionalParams = array('collection' => $resArray['uid']); |
|
| 193 | 193 | |
| 194 | 194 | if (is_array($this->piVars)) { |
| 195 | 195 | |
@@ -202,7 +202,7 @@ discard block |
||
| 202 | 202 | } |
| 203 | 203 | |
| 204 | 204 | // Build typolink configuration array. |
| 205 | - $conf = array ( |
|
| 205 | + $conf = array( |
|
| 206 | 206 | 'useCacheHash' => 1, |
| 207 | 207 | 'parameter' => $GLOBALS['TSFE']->id, |
| 208 | 208 | 'additionalParams' => \TYPO3\CMS\Core\Utility\GeneralUtility::implodeArrayForUrl($this->prefixId, $additionalParams, '', TRUE, FALSE) |
@@ -216,7 +216,7 @@ discard block |
||
| 216 | 216 | |
| 217 | 217 | $img = '<img src="'.\TYPO3\CMS\Core\Utility\ExtensionManagementUtility::siteRelPath($this->extKey).'res/icons/txdlffeeds.png" alt="'.$this->pi_getLL('feedAlt', '', TRUE).'" title="'.$this->pi_getLL('feedTitle', '', TRUE).'" />'; |
| 218 | 218 | |
| 219 | - $markerArray[$_key]['###FEED###'] = $this->pi_linkTP($img, array ($this->prefixId => array ('collection' => $resArray['uid'])), FALSE, $this->conf['targetFeed']); |
|
| 219 | + $markerArray[$_key]['###FEED###'] = $this->pi_linkTP($img, array($this->prefixId => array('collection' => $resArray['uid'])), FALSE, $this->conf['targetFeed']); |
|
| 220 | 220 | |
| 221 | 221 | } else { |
| 222 | 222 | |
@@ -320,26 +320,26 @@ discard block |
||
| 320 | 320 | '' |
| 321 | 321 | ); |
| 322 | 322 | |
| 323 | - $toplevel = array (); |
|
| 323 | + $toplevel = array(); |
|
| 324 | 324 | |
| 325 | - $subparts = array (); |
|
| 325 | + $subparts = array(); |
|
| 326 | 326 | |
| 327 | - $listMetadata = array (); |
|
| 327 | + $listMetadata = array(); |
|
| 328 | 328 | |
| 329 | 329 | // Process results. |
| 330 | 330 | while ($resArray = $GLOBALS['TYPO3_DB']->sql_fetch_assoc($result)) { |
| 331 | 331 | |
| 332 | 332 | if (empty($listMetadata)) { |
| 333 | 333 | |
| 334 | - $listMetadata = array ( |
|
| 334 | + $listMetadata = array( |
|
| 335 | 335 | 'label' => htmlspecialchars($resArray['collLabel']), |
| 336 | 336 | 'description' => $this->pi_RTEcssText($resArray['collDesc']), |
| 337 | 337 | 'thumbnail' => htmlspecialchars($resArray['collThumb']), |
| 338 | - 'options' => array ( |
|
| 338 | + 'options' => array( |
|
| 339 | 339 | 'source' => 'collection', |
| 340 | 340 | 'select' => $id, |
| 341 | 341 | 'userid' => $resArray['userid'], |
| 342 | - 'params' => array ('fq' => array ('collection_faceting:("'.$resArray['index_name'].'")')), |
|
| 342 | + 'params' => array('fq' => array('collection_faceting:("'.$resArray['index_name'].'")')), |
|
| 343 | 343 | 'core' => '', |
| 344 | 344 | 'pid' => $this->conf['pages'], |
| 345 | 345 | 'order' => 'title', |
@@ -373,11 +373,11 @@ discard block |
||
| 373 | 373 | |
| 374 | 374 | } |
| 375 | 375 | |
| 376 | - $toplevel[$resArray['uid']] = array ( |
|
| 376 | + $toplevel[$resArray['uid']] = array( |
|
| 377 | 377 | 'u' => $resArray['uid'], |
| 378 | 378 | 'h' => '', |
| 379 | 379 | 's' => $sorting, |
| 380 | - 'p' => array () |
|
| 380 | + 'p' => array() |
|
| 381 | 381 | ); |
| 382 | 382 | |
| 383 | 383 | } else { |
@@ -397,7 +397,7 @@ discard block |
||
| 397 | 397 | |
| 398 | 398 | foreach ($parts as $part) { |
| 399 | 399 | |
| 400 | - $toplevel[$partof]['p'][] = array ('u' => $part); |
|
| 400 | + $toplevel[$partof]['p'][] = array('u' => $part); |
|
| 401 | 401 | |
| 402 | 402 | } |
| 403 | 403 | |
@@ -420,7 +420,7 @@ discard block |
||
| 420 | 420 | \TYPO3\CMS\Core\Utility\GeneralUtility::cleanOutputBuffers(); |
| 421 | 421 | |
| 422 | 422 | // Send headers. |
| 423 | - header('Location: '.\TYPO3\CMS\Core\Utility\GeneralUtility::locationHeaderUrl($this->cObj->typoLink_URL(array ('parameter' => $this->conf['targetPid'])))); |
|
| 423 | + header('Location: '.\TYPO3\CMS\Core\Utility\GeneralUtility::locationHeaderUrl($this->cObj->typoLink_URL(array('parameter' => $this->conf['targetPid'])))); |
|
| 424 | 424 | |
| 425 | 425 | // Flush output buffer and end script processing. |
| 426 | 426 | ob_end_flush(); |
@@ -164,10 +164,10 @@ |
||
| 164 | 164 | $item->appendChild($rss->createElement('title', htmlspecialchars($title, ENT_NOQUOTES, 'UTF-8'))); |
| 165 | 165 | |
| 166 | 166 | // Add link. |
| 167 | - $linkConf = array ( |
|
| 167 | + $linkConf = array( |
|
| 168 | 168 | 'parameter' => $this->conf['targetPid'], |
| 169 | 169 | 'forceAbsoluteUrl' => 1, |
| 170 | - 'additionalParams' => \TYPO3\CMS\Core\Utility\GeneralUtility::implodeArrayForUrl($this->prefixId, array ('id' => $resArray['uid']), '', TRUE, FALSE) |
|
| 170 | + 'additionalParams' => \TYPO3\CMS\Core\Utility\GeneralUtility::implodeArrayForUrl($this->prefixId, array('id' => $resArray['uid']), '', TRUE, FALSE) |
|
| 171 | 171 | ); |
| 172 | 172 | |
| 173 | 173 | $item->appendChild($rss->createElement('link', htmlspecialchars($this->cObj->typoLink_URL($linkConf), ENT_NOQUOTES, 'UTF-8'))); |
@@ -27,7 +27,7 @@ discard block |
||
| 27 | 27 | * @var array |
| 28 | 28 | * @access protected |
| 29 | 29 | */ |
| 30 | - protected $activeEntries = array (); |
|
| 30 | + protected $activeEntries = array(); |
|
| 31 | 31 | |
| 32 | 32 | /** |
| 33 | 33 | * This builds an array for one menu entry |
@@ -41,7 +41,7 @@ discard block |
||
| 41 | 41 | */ |
| 42 | 42 | protected function getMenuEntry(array $entry, $recursive = FALSE) { |
| 43 | 43 | |
| 44 | - $entryArray = array (); |
|
| 44 | + $entryArray = array(); |
|
| 45 | 45 | |
| 46 | 46 | // Set "title", "volume", "type" and "pagination" from $entry array. |
| 47 | 47 | $entryArray['title'] = $entry['label']; |
@@ -63,37 +63,37 @@ discard block |
||
| 63 | 63 | // Build menu links based on the $entry['points'] array. |
| 64 | 64 | if (!empty($entry['points']) && \TYPO3\CMS\Core\Utility\MathUtility::canBeInterpretedAsInteger($entry['points'])) { |
| 65 | 65 | |
| 66 | - $entryArray['_OVERRIDE_HREF'] = $this->pi_linkTP_keepPIvars_url(array ('page' => $entry['points']), TRUE, FALSE, $this->conf['targetPid']); |
|
| 66 | + $entryArray['_OVERRIDE_HREF'] = $this->pi_linkTP_keepPIvars_url(array('page' => $entry['points']), TRUE, FALSE, $this->conf['targetPid']); |
|
| 67 | 67 | |
| 68 | 68 | $entryArray['doNotLinkIt'] = 0; |
| 69 | 69 | |
| 70 | 70 | if ($this->conf['basketButton']) { |
| 71 | 71 | |
| 72 | - $entryArray['basketButtonHref'] = '<a href="'.$this->pi_linkTP_keepPIvars_url(array ('addToBasket' => 'toc', 'logId' => $entry['id'], 'startpage' => $entry['points']), TRUE, FALSE, $this->conf['targetBasket']).'">'.$this->pi_getLL('basketButton', '', TRUE).'</a>'; |
|
| 72 | + $entryArray['basketButtonHref'] = '<a href="'.$this->pi_linkTP_keepPIvars_url(array('addToBasket' => 'toc', 'logId' => $entry['id'], 'startpage' => $entry['points']), TRUE, FALSE, $this->conf['targetBasket']).'">'.$this->pi_getLL('basketButton', '', TRUE).'</a>'; |
|
| 73 | 73 | |
| 74 | 74 | } |
| 75 | 75 | |
| 76 | 76 | } elseif (!empty($entry['points']) && is_string($entry['points'])) { |
| 77 | 77 | |
| 78 | - $entryArray['_OVERRIDE_HREF'] = $this->pi_linkTP_keepPIvars_url(array ('id' => $entry['points'], 'page' => 1), TRUE, FALSE, $this->conf['targetPid']); |
|
| 78 | + $entryArray['_OVERRIDE_HREF'] = $this->pi_linkTP_keepPIvars_url(array('id' => $entry['points'], 'page' => 1), TRUE, FALSE, $this->conf['targetPid']); |
|
| 79 | 79 | |
| 80 | 80 | $entryArray['doNotLinkIt'] = 0; |
| 81 | 81 | |
| 82 | 82 | if ($this->conf['basketButton']) { |
| 83 | 83 | |
| 84 | - $entryArray['basketButtonHref'] = '<a href="'.$this->pi_linkTP_keepPIvars_url(array ('addToBasket' => 'toc', 'logId' => $entry['id'], 'startpage' => $entry['points']), TRUE, FALSE, $this->conf['targetBasket']).'">'.$this->pi_getLL('basketButton', '', TRUE).'</a>'; |
|
| 84 | + $entryArray['basketButtonHref'] = '<a href="'.$this->pi_linkTP_keepPIvars_url(array('addToBasket' => 'toc', 'logId' => $entry['id'], 'startpage' => $entry['points']), TRUE, FALSE, $this->conf['targetBasket']).'">'.$this->pi_getLL('basketButton', '', TRUE).'</a>'; |
|
| 85 | 85 | |
| 86 | 86 | } |
| 87 | 87 | |
| 88 | 88 | } elseif (!empty($entry['targetUid'])) { |
| 89 | 89 | |
| 90 | - $entryArray['_OVERRIDE_HREF'] = $this->pi_linkTP_keepPIvars_url(array ('id' => $entry['targetUid'], 'page' => 1), TRUE, FALSE, $this->conf['targetPid']); |
|
| 90 | + $entryArray['_OVERRIDE_HREF'] = $this->pi_linkTP_keepPIvars_url(array('id' => $entry['targetUid'], 'page' => 1), TRUE, FALSE, $this->conf['targetPid']); |
|
| 91 | 91 | |
| 92 | 92 | $entryArray['doNotLinkIt'] = 0; |
| 93 | 93 | |
| 94 | 94 | if ($this->conf['basketButton']) { |
| 95 | 95 | |
| 96 | - $entryArray['basketButtonHref'] = '<a href="'.$this->pi_linkTP_keepPIvars_url(array ('addToBasket' => 'toc', 'logId' => $entry['id'], 'startpage' => $entry['targetUid']), TRUE, FALSE, $this->conf['targetBasket']).'">'.$this->pi_getLL('basketButton', '', TRUE).'</a>'; |
|
| 96 | + $entryArray['basketButtonHref'] = '<a href="'.$this->pi_linkTP_keepPIvars_url(array('addToBasket' => 'toc', 'logId' => $entry['id'], 'startpage' => $entry['targetUid']), TRUE, FALSE, $this->conf['targetBasket']).'">'.$this->pi_getLL('basketButton', '', TRUE).'</a>'; |
|
| 97 | 97 | |
| 98 | 98 | } |
| 99 | 99 | |
@@ -116,7 +116,7 @@ discard block |
||
| 116 | 116 | // 4. Current menu node has no corresponding images |
| 117 | 117 | if (!empty($this->conf['menuConf.']['expAll']) || $entryArray['ITEM_STATE'] == 'CUR' || is_string($entry['points']) || empty($this->doc->smLinks['l2p'][$entry['id']])) { |
| 118 | 118 | |
| 119 | - $entryArray['_SUB_MENU'] = array (); |
|
| 119 | + $entryArray['_SUB_MENU'] = array(); |
|
| 120 | 120 | |
| 121 | 121 | foreach ($entry['children'] as $child) { |
| 122 | 122 | |
@@ -180,7 +180,7 @@ discard block |
||
| 180 | 180 | |
| 181 | 181 | } |
| 182 | 182 | |
| 183 | - $TSconfig = array (); |
|
| 183 | + $TSconfig = array(); |
|
| 184 | 184 | |
| 185 | 185 | $TSconfig['special'] = 'userfunction'; |
| 186 | 186 | |
@@ -216,7 +216,7 @@ discard block |
||
| 216 | 216 | if ($this->doc === NULL) { |
| 217 | 217 | |
| 218 | 218 | // Quit without doing anything if required variables are not set. |
| 219 | - return array (); |
|
| 219 | + return array(); |
|
| 220 | 220 | |
| 221 | 221 | } else { |
| 222 | 222 | |
@@ -244,7 +244,7 @@ discard block |
||
| 244 | 244 | |
| 245 | 245 | } |
| 246 | 246 | |
| 247 | - $menuArray = array (); |
|
| 247 | + $menuArray = array(); |
|
| 248 | 248 | |
| 249 | 249 | // Does the document have physical elements or is it an external file? |
| 250 | 250 | if ($this->doc->physicalStructure || !\TYPO3\CMS\Core\Utility\MathUtility::canBeInterpretedAsInteger($this->doc->uid)) { |
@@ -301,11 +301,11 @@ discard block |
||
| 301 | 301 | |
| 302 | 302 | $menuArray[0]['ITEM_STATE'] = 'CURIFSUB'; |
| 303 | 303 | |
| 304 | - $menuArray[0]['_SUB_MENU'] = array (); |
|
| 304 | + $menuArray[0]['_SUB_MENU'] = array(); |
|
| 305 | 305 | |
| 306 | 306 | while ($resArray = $GLOBALS['TYPO3_DB']->sql_fetch_assoc($result)) { |
| 307 | 307 | |
| 308 | - $entry = array ( |
|
| 308 | + $entry = array( |
|
| 309 | 309 | 'label' => $resArray['title'], |
| 310 | 310 | 'type' => $resArray['type'], |
| 311 | 311 | 'volume' => $resArray['volume'], |
@@ -67,7 +67,7 @@ |
||
| 67 | 67 | $GLOBALS['TYPO3_CONF_VARS']['SC_OPTIONS']['dlf/common/class.tx_dlf_document.php']['hookClass'][] = 'EXT:'.$_EXTKEY.'/hooks/class.tx_dlf_hacks.php:tx_dlf_hacks'; |
| 68 | 68 | |
| 69 | 69 | // Register command line scripts. |
| 70 | -$GLOBALS['TYPO3_CONF_VARS']['SC_OPTIONS']['GLOBAL']['cliKeys'][$_EXTKEY] = array ('EXT:'.$_EXTKEY.'/cli/class.tx_dlf_cli.php', '_CLI_dlf'); |
|
| 70 | +$GLOBALS['TYPO3_CONF_VARS']['SC_OPTIONS']['GLOBAL']['cliKeys'][$_EXTKEY] = array('EXT:'.$_EXTKEY.'/cli/class.tx_dlf_cli.php', '_CLI_dlf'); |
|
| 71 | 71 | |
| 72 | 72 | // Register AJAX eID handlers. |
| 73 | 73 | $GLOBALS['TYPO3_CONF_VARS']['FE']['eID_include']['tx_dlf_search_suggest'] = 'EXT:'.$_EXTKEY.'/plugins/search/class.tx_dlf_search_suggest.php'; |
@@ -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 |
@@ -67,8 +67,8 @@ discard block |
||
| 67 | 67 | // Build request URI. |
| 68 | 68 | $url = 'http://'.$host.':'.$port.'/'.$path.'admin/cores?wt=xml'; |
| 69 | 69 | |
| 70 | - $context = stream_context_create(array ( |
|
| 71 | - 'http' => array ( |
|
| 70 | + $context = stream_context_create(array( |
|
| 71 | + 'http' => array( |
|
| 72 | 72 | 'method' => 'GET', |
| 73 | 73 | 'user_agent' => (!empty($this->conf['useragent']) ? $this->conf['useragent'] : ini_get('user_agent')) |
| 74 | 74 | ) |
@@ -151,7 +151,7 @@ discard block |
||
| 151 | 151 | ); |
| 152 | 152 | |
| 153 | 153 | // Check if user is configured properly. |
| 154 | - if (count(array_diff(array ($groupUid), $resArray['usergroup'])) == 0 |
|
| 154 | + if (count(array_diff(array($groupUid), $resArray['usergroup'])) == 0 |
|
| 155 | 155 | && !$resArray['admin'] |
| 156 | 156 | && $GLOBALS['TYPO3_DB']->sql_num_rows($result2) > 0) { |
| 157 | 157 | |
@@ -170,11 +170,11 @@ discard block |
||
| 170 | 170 | if (!$checkOnly && $groupUid) { |
| 171 | 171 | |
| 172 | 172 | // Keep exisiting values and add the new ones. |
| 173 | - $usergroup = array_unique(array_merge(array ($groupUid), $resArray['usergroup'])); |
|
| 173 | + $usergroup = array_unique(array_merge(array($groupUid), $resArray['usergroup'])); |
|
| 174 | 174 | |
| 175 | 175 | // Try to configure user. |
| 176 | - $data = array (); |
|
| 177 | - $data['be_users'][$resArray['uid']] = array ( |
|
| 176 | + $data = array(); |
|
| 177 | + $data['be_users'][$resArray['uid']] = array( |
|
| 178 | 178 | 'admin' => 0, |
| 179 | 179 | 'usergroup' => implode(',', $usergroup), |
| 180 | 180 | $GLOBALS['TCA']['be_users']['ctrl']['enablecolumns']['disabled'] => 0, |
@@ -230,8 +230,8 @@ discard block |
||
| 230 | 230 | // Try to create user. |
| 231 | 231 | $tempUid = uniqid('NEW'); |
| 232 | 232 | |
| 233 | - $data = array (); |
|
| 234 | - $data['be_users'][$tempUid] = array ( |
|
| 233 | + $data = array(); |
|
| 234 | + $data['be_users'][$tempUid] = array( |
|
| 235 | 235 | 'pid' => 0, |
| 236 | 236 | 'username' => '_cli_dlf', |
| 237 | 237 | 'password' => md5($tempUid), |
@@ -296,7 +296,7 @@ discard block |
||
| 296 | 296 | * |
| 297 | 297 | * @return integer UID of usergroup or 0 if something is wrong |
| 298 | 298 | */ |
| 299 | - protected function checkCliGroup($checkOnly, $settings = array ()) { |
|
| 299 | + protected function checkCliGroup($checkOnly, $settings = array()) { |
|
| 300 | 300 | |
| 301 | 301 | // Set default return value. |
| 302 | 302 | $grpUid = 0; |
@@ -304,9 +304,9 @@ discard block |
||
| 304 | 304 | // Set default configuration for usergroup. |
| 305 | 305 | if (empty($settings)) { |
| 306 | 306 | |
| 307 | - $settings = array ( |
|
| 308 | - 'non_exclude_fields' => array (), |
|
| 309 | - 'tables_select' => array ( |
|
| 307 | + $settings = array( |
|
| 308 | + 'non_exclude_fields' => array(), |
|
| 309 | + 'tables_select' => array( |
|
| 310 | 310 | 'tx_dlf_documents', |
| 311 | 311 | 'tx_dlf_collections', |
| 312 | 312 | 'tx_dlf_libraries', |
@@ -316,7 +316,7 @@ discard block |
||
| 316 | 316 | 'tx_dlf_formats', |
| 317 | 317 | 'tx_dlf_solrcores' |
| 318 | 318 | ), |
| 319 | - 'tables_modify' => array ( |
|
| 319 | + 'tables_modify' => array( |
|
| 320 | 320 | 'tx_dlf_documents', |
| 321 | 321 | 'tx_dlf_collections', |
| 322 | 322 | 'tx_dlf_libraries' |
@@ -388,8 +388,8 @@ discard block |
||
| 388 | 388 | $tables_modify = array_unique(array_merge($settings['tables_modify'], $resArray['tables_modify'])); |
| 389 | 389 | |
| 390 | 390 | // Try to configure usergroup. |
| 391 | - $data = array (); |
|
| 392 | - $data['be_groups'][$resArray['uid']] = array ( |
|
| 391 | + $data = array(); |
|
| 392 | + $data['be_groups'][$resArray['uid']] = array( |
|
| 393 | 393 | 'non_exclude_fields' => implode(',', $non_exclude_fields), |
| 394 | 394 | 'tables_select' => implode(',', $tables_select), |
| 395 | 395 | 'tables_modify' => implode(',', $tables_modify), |
@@ -444,8 +444,8 @@ discard block |
||
| 444 | 444 | // Try to create usergroup. |
| 445 | 445 | $tempUid = uniqid('NEW'); |
| 446 | 446 | |
| 447 | - $data = array (); |
|
| 448 | - $data['be_groups'][$tempUid] = array ( |
|
| 447 | + $data = array(); |
|
| 448 | + $data['be_groups'][$tempUid] = array( |
|
| 449 | 449 | 'pid' => 0, |
| 450 | 450 | 'title' => '_cli_dlf', |
| 451 | 451 | 'description' => $GLOBALS['LANG']->getLL('cliUserGroup.grpDescription'), |
@@ -566,7 +566,7 @@ discard block |
||
| 566 | 566 | */ |
| 567 | 567 | public function checkMetadataFormats(&$params, &$pObj) { |
| 568 | 568 | |
| 569 | - $nsDefined = array ( |
|
| 569 | + $nsDefined = array( |
|
| 570 | 570 | 'MODS' => FALSE, |
| 571 | 571 | 'TEIHDR' => FALSE |
| 572 | 572 | ); |
@@ -585,12 +585,12 @@ discard block |
||
| 585 | 585 | } |
| 586 | 586 | |
| 587 | 587 | // Build data array. |
| 588 | - $data = array (); |
|
| 588 | + $data = array(); |
|
| 589 | 589 | |
| 590 | 590 | // Add MODS namespace. |
| 591 | 591 | if (!$nsDefined['MODS']) { |
| 592 | 592 | |
| 593 | - $data['tx_dlf_formats'][uniqid('NEW')] = array ( |
|
| 593 | + $data['tx_dlf_formats'][uniqid('NEW')] = array( |
|
| 594 | 594 | 'pid' => 0, |
| 595 | 595 | 'type' => 'MODS', |
| 596 | 596 | 'root' => 'mods', |
@@ -603,7 +603,7 @@ discard block |
||
| 603 | 603 | // Add TEIHDR namespace. |
| 604 | 604 | if (!$nsDefined['TEIHDR']) { |
| 605 | 605 | |
| 606 | - $data['tx_dlf_formats'][uniqid('NEW')] = array ( |
|
| 606 | + $data['tx_dlf_formats'][uniqid('NEW')] = array( |
|
| 607 | 607 | 'pid' => 0, |
| 608 | 608 | 'type' => 'TEIHDR', |
| 609 | 609 | 'root' => 'teiHeader', |
@@ -131,8 +131,8 @@ discard block |
||
| 131 | 131 | // Trim path and append trailing slash. |
| 132 | 132 | $path = (trim($conf['solrPath'], '/') ? trim($conf['solrPath'], '/').'/' : ''); |
| 133 | 133 | |
| 134 | - $context = stream_context_create(array ( |
|
| 135 | - 'http' => array ( |
|
| 134 | + $context = stream_context_create(array( |
|
| 135 | + 'http' => array( |
|
| 136 | 136 | 'method' => 'GET', |
| 137 | 137 | 'user_agent' => ($conf['useragent'] ? $conf['useragent'] : ini_get('user_agent')) |
| 138 | 138 | ) |
@@ -166,7 +166,7 @@ discard block |
||
| 166 | 166 | } |
| 167 | 167 | |
| 168 | 168 | // Solr core could not be created, thus unset field array. |
| 169 | - $fieldArray = array (); |
|
| 169 | + $fieldArray = array(); |
|
| 170 | 170 | |
| 171 | 171 | break; |
| 172 | 172 | |
@@ -244,7 +244,7 @@ discard block |
||
| 244 | 244 | if (count($fieldArray) < 2) { |
| 245 | 245 | |
| 246 | 246 | // Unset the whole field array. |
| 247 | - $fieldArray = array (); |
|
| 247 | + $fieldArray = array(); |
|
| 248 | 248 | |
| 249 | 249 | } else { |
| 250 | 250 | |
@@ -337,7 +337,7 @@ discard block |
||
| 337 | 337 | } else { |
| 338 | 338 | |
| 339 | 339 | // Reindex document. |
| 340 | - $doc =& tx_dlf_document::getInstance($id); |
|
| 340 | + $doc = & tx_dlf_document::getInstance($id); |
|
| 341 | 341 | |
| 342 | 342 | if ($doc->ready) { |
| 343 | 343 | |
@@ -382,7 +382,7 @@ discard block |
||
| 382 | 382 | */ |
| 383 | 383 | public function processCmdmap_postProcess($command, $table, $id, $value, $pObj) { |
| 384 | 384 | |
| 385 | - if (in_array($command, array ('move', 'delete', 'undelete')) && $table == 'tx_dlf_documents') { |
|
| 385 | + if (in_array($command, array('move', 'delete', 'undelete')) && $table == 'tx_dlf_documents') { |
|
| 386 | 386 | |
| 387 | 387 | // Get Solr core. |
| 388 | 388 | $result = $GLOBALS['TYPO3_DB']->exec_SELECTquery( |
@@ -422,7 +422,7 @@ discard block |
||
| 422 | 422 | case 'undelete': |
| 423 | 423 | |
| 424 | 424 | // Reindex document. |
| 425 | - $doc =& tx_dlf_document::getInstance($id); |
|
| 425 | + $doc = & tx_dlf_document::getInstance($id); |
|
| 426 | 426 | |
| 427 | 427 | if ($doc->ready) { |
| 428 | 428 | |
@@ -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 |
@@ -161,7 +161,7 @@ discard block |
||
| 161 | 161 | if (!empty($this->piVars['id'])) { |
| 162 | 162 | |
| 163 | 163 | // Get instance of tx_dlf_document. |
| 164 | - $this->doc =& tx_dlf_document::getInstance($this->piVars['id']); |
|
| 164 | + $this->doc = & tx_dlf_document::getInstance($this->piVars['id']); |
|
| 165 | 165 | |
| 166 | 166 | if (!$this->doc->ready) { |
| 167 | 167 | |
@@ -402,7 +402,7 @@ |
||
| 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 | |