We could not synchronize checks via GitHub's checks API since Scrutinizer's GitHub App is not installed for this repository.
@@ -29,7 +29,7 @@ discard block |
||
| 29 | 29 | * @var array |
| 30 | 30 | * @access private |
| 31 | 31 | */ |
| 32 | - private $fieldwrap = array (); |
|
| 32 | + private $fieldwrap = array(); |
|
| 33 | 33 | |
| 34 | 34 | /** |
| 35 | 35 | * This holds the list |
@@ -45,7 +45,7 @@ discard block |
||
| 45 | 45 | * @var array |
| 46 | 46 | * @access protected |
| 47 | 47 | */ |
| 48 | - protected $metadata = array (); |
|
| 48 | + protected $metadata = array(); |
|
| 49 | 49 | |
| 50 | 50 | /** |
| 51 | 51 | * Array of sortable metadata |
@@ -53,7 +53,7 @@ discard block |
||
| 53 | 53 | * @var array |
| 54 | 54 | * @access protected |
| 55 | 55 | */ |
| 56 | - protected $sortables = array (); |
|
| 56 | + protected $sortables = array(); |
|
| 57 | 57 | |
| 58 | 58 | /** |
| 59 | 59 | * Renders the page browser |
@@ -80,11 +80,11 @@ discard block |
||
| 80 | 80 | // Add link to previous page. |
| 81 | 81 | if ($this->piVars['pointer'] > 0) { |
| 82 | 82 | |
| 83 | - $output = $this->pi_linkTP_keepPIvars($this->pi_getLL('prevPage', '<', TRUE), array ('pointer' => $this->piVars['pointer'] - 1), TRUE).$separator; |
|
| 83 | + $output = $this->pi_linkTP_keepPIvars($this->pi_getLL('prevPage', '<', TRUE), array('pointer' => $this->piVars['pointer'] - 1), TRUE) . $separator; |
|
| 84 | 84 | |
| 85 | 85 | } else { |
| 86 | 86 | |
| 87 | - $output = $this->pi_getLL('prevPage', '<', TRUE).$separator; |
|
| 87 | + $output = $this->pi_getLL('prevPage', '<', TRUE) . $separator; |
|
| 88 | 88 | |
| 89 | 89 | } |
| 90 | 90 | |
@@ -99,11 +99,11 @@ discard block |
||
| 99 | 99 | |
| 100 | 100 | if ($this->piVars['pointer'] != $i) { |
| 101 | 101 | |
| 102 | - $output .= $this->pi_linkTP_keepPIvars(sprintf($this->pi_getLL('page', '%d', TRUE), $i + 1), array ('pointer' => $i), TRUE).$separator; |
|
| 102 | + $output .= $this->pi_linkTP_keepPIvars(sprintf($this->pi_getLL('page', '%d', TRUE), $i + 1), array('pointer' => $i), TRUE) . $separator; |
|
| 103 | 103 | |
| 104 | 104 | } else { |
| 105 | 105 | |
| 106 | - $output .= sprintf($this->pi_getLL('page', '%d', TRUE), $i + 1).$separator; |
|
| 106 | + $output .= sprintf($this->pi_getLL('page', '%d', TRUE), $i + 1) . $separator; |
|
| 107 | 107 | |
| 108 | 108 | } |
| 109 | 109 | |
@@ -111,7 +111,7 @@ discard block |
||
| 111 | 111 | |
| 112 | 112 | } elseif ($skip === TRUE) { |
| 113 | 113 | |
| 114 | - $output .= $this->pi_getLL('skip', '...', TRUE).$separator; |
|
| 114 | + $output .= $this->pi_getLL('skip', '...', TRUE) . $separator; |
|
| 115 | 115 | |
| 116 | 116 | $skip = FALSE; |
| 117 | 117 | |
@@ -124,7 +124,7 @@ discard block |
||
| 124 | 124 | // Add link to next page. |
| 125 | 125 | if ($this->piVars['pointer'] < $maxPages - 1) { |
| 126 | 126 | |
| 127 | - $output .= $this->pi_linkTP_keepPIvars($this->pi_getLL('nextPage', '>', TRUE), array ('pointer' => $this->piVars['pointer'] + 1), TRUE); |
|
| 127 | + $output .= $this->pi_linkTP_keepPIvars($this->pi_getLL('nextPage', '>', TRUE), array('pointer' => $this->piVars['pointer'] + 1), TRUE); |
|
| 128 | 128 | |
| 129 | 129 | } else { |
| 130 | 130 | |
@@ -184,7 +184,7 @@ discard block |
||
| 184 | 184 | |
| 185 | 185 | if (!empty($superiorTitle)) { |
| 186 | 186 | |
| 187 | - $value = '['.$superiorTitle.']'; |
|
| 187 | + $value = '[' . $superiorTitle . ']'; |
|
| 188 | 188 | |
| 189 | 189 | } |
| 190 | 190 | |
@@ -199,7 +199,7 @@ discard block |
||
| 199 | 199 | |
| 200 | 200 | $imgAlt = htmlspecialchars($value); |
| 201 | 201 | |
| 202 | - $additionalParams = array ( |
|
| 202 | + $additionalParams = array( |
|
| 203 | 203 | 'id' => $this->list[$number]['uid'], |
| 204 | 204 | 'page' => $this->list[$number]['page'] |
| 205 | 205 | ); |
@@ -210,7 +210,7 @@ discard block |
||
| 210 | 210 | |
| 211 | 211 | } |
| 212 | 212 | |
| 213 | - $conf = array ( |
|
| 213 | + $conf = array( |
|
| 214 | 214 | 'useCacheHash' => 1, |
| 215 | 215 | 'parameter' => $this->conf['targetPid'], |
| 216 | 216 | 'additionalParams' => \TYPO3\CMS\Core\Utility\GeneralUtility::implodeArrayForUrl($this->prefixId, $additionalParams, '', TRUE, FALSE) |
@@ -264,7 +264,7 @@ discard block |
||
| 264 | 264 | // Add thumbnail. |
| 265 | 265 | if (!empty($this->list[$number]['thumbnail'])) { |
| 266 | 266 | |
| 267 | - $markerArray['###THUMBNAIL###'] = '<img alt="'.$imgAlt.'" src="'.$this->list[$number]['thumbnail'].'" />'; |
|
| 267 | + $markerArray['###THUMBNAIL###'] = '<img alt="' . $imgAlt . '" src="' . $this->list[$number]['thumbnail'] . '" />'; |
|
| 268 | 268 | |
| 269 | 269 | } |
| 270 | 270 | |
@@ -286,9 +286,9 @@ discard block |
||
| 286 | 286 | |
| 287 | 287 | if (!empty($this->conf['basketButton']) && !empty($this->conf['targetBasket'])) { |
| 288 | 288 | |
| 289 | - $additionalParams = array ('id' => $this->list[$number]['uid'], 'startpage' => $this->list[$number]['page'], 'addToBasket' => 'list'); |
|
| 289 | + $additionalParams = array('id' => $this->list[$number]['uid'], 'startpage' => $this->list[$number]['page'], 'addToBasket' => 'list'); |
|
| 290 | 290 | |
| 291 | - $conf = array ( |
|
| 291 | + $conf = array( |
|
| 292 | 292 | 'useCacheHash' => 1, |
| 293 | 293 | 'parameter' => $this->conf['targetBasket'], |
| 294 | 294 | 'additionalParams' => \TYPO3\CMS\Core\Utility\GeneralUtility::implodeArrayForUrl($this->prefixId, $additionalParams, '', TRUE, FALSE) |
@@ -348,57 +348,57 @@ discard block |
||
| 348 | 348 | $prefix = str_replace('_', '-', get_class($this)); |
| 349 | 349 | |
| 350 | 350 | // Configure @action URL for form. |
| 351 | - $linkConf = array ( |
|
| 351 | + $linkConf = array( |
|
| 352 | 352 | 'parameter' => $GLOBALS['TSFE']->id |
| 353 | 353 | ); |
| 354 | 354 | |
| 355 | 355 | if (!empty($this->piVars['logicalPage'])) { |
| 356 | 356 | |
| 357 | - $linkConf['additionalParams'] = \TYPO3\CMS\Core\Utility\GeneralUtility::implodeArrayForUrl($this->prefixId, array ('logicalPage' => $this->piVars['logicalPage']), '', TRUE, FALSE); |
|
| 357 | + $linkConf['additionalParams'] = \TYPO3\CMS\Core\Utility\GeneralUtility::implodeArrayForUrl($this->prefixId, array('logicalPage' => $this->piVars['logicalPage']), '', TRUE, FALSE); |
|
| 358 | 358 | |
| 359 | 359 | } |
| 360 | 360 | |
| 361 | 361 | // Build HTML form. |
| 362 | - $sorting = '<form action="'.$this->cObj->typoLink_URL($linkConf).'" method="get"><div><input type="hidden" name="id" value="'.$GLOBALS['TSFE']->id.'" />'; |
|
| 362 | + $sorting = '<form action="' . $this->cObj->typoLink_URL($linkConf) . '" method="get"><div><input type="hidden" name="id" value="' . $GLOBALS['TSFE']->id . '" />'; |
|
| 363 | 363 | |
| 364 | 364 | foreach ($this->piVars as $piVar => $value) { |
| 365 | 365 | |
| 366 | 366 | if ($piVar != 'order' && $piVar != 'DATA' && !empty($value)) { |
| 367 | 367 | |
| 368 | - $sorting .= '<input type="hidden" name="'.$this->prefixId.'['.$piVar.']" value="'.$value.'" />'; |
|
| 368 | + $sorting .= '<input type="hidden" name="' . $this->prefixId . '[' . $piVar . ']" value="' . $value . '" />'; |
|
| 369 | 369 | |
| 370 | 370 | } |
| 371 | 371 | |
| 372 | 372 | } |
| 373 | 373 | |
| 374 | 374 | // Select sort field. |
| 375 | - $uniqId = uniqid($prefix.'-'); |
|
| 375 | + $uniqId = uniqid($prefix . '-'); |
|
| 376 | 376 | |
| 377 | - $sorting .= '<label for="'.$uniqId.'">'.$this->pi_getLL('orderBy', '', TRUE).'</label><select id="'.$uniqId.'" name="'.$this->prefixId.'[order]" onchange="javascript:this.form.submit();">'; |
|
| 377 | + $sorting .= '<label for="' . $uniqId . '">' . $this->pi_getLL('orderBy', '', TRUE) . '</label><select id="' . $uniqId . '" name="' . $this->prefixId . '[order]" onchange="javascript:this.form.submit();">'; |
|
| 378 | 378 | |
| 379 | 379 | // Add relevance sorting if this is a search result list. |
| 380 | 380 | if ($this->list->metadata['options']['source'] == 'search') { |
| 381 | 381 | |
| 382 | - $sorting .= '<option value="score"'.(($this->list->metadata['options']['order'] == 'score') ? ' selected="selected"' : '').'>'.$this->pi_getLL('relevance', '', TRUE).'</option>'; |
|
| 382 | + $sorting .= '<option value="score"' . (($this->list->metadata['options']['order'] == 'score') ? ' selected="selected"' : '') . '>' . $this->pi_getLL('relevance', '', TRUE) . '</option>'; |
|
| 383 | 383 | |
| 384 | 384 | } |
| 385 | 385 | |
| 386 | 386 | foreach ($this->sortables as $index_name => $label) { |
| 387 | 387 | |
| 388 | - $sorting .= '<option value="'.$index_name.'"'.(($this->list->metadata['options']['order'] == $index_name) ? ' selected="selected"' : '').'>'.htmlspecialchars($label).'</option>'; |
|
| 388 | + $sorting .= '<option value="' . $index_name . '"' . (($this->list->metadata['options']['order'] == $index_name) ? ' selected="selected"' : '') . '>' . htmlspecialchars($label) . '</option>'; |
|
| 389 | 389 | |
| 390 | 390 | } |
| 391 | 391 | |
| 392 | 392 | $sorting .= '</select>'; |
| 393 | 393 | |
| 394 | 394 | // Select sort direction. |
| 395 | - $uniqId = uniqid($prefix.'-'); |
|
| 395 | + $uniqId = uniqid($prefix . '-'); |
|
| 396 | 396 | |
| 397 | - $sorting .= '<label for="'.$uniqId.'">'.$this->pi_getLL('direction', '', TRUE).'</label><select id="'.$uniqId.'" name="'.$this->prefixId.'[asc]" onchange="javascript:this.form.submit();">'; |
|
| 397 | + $sorting .= '<label for="' . $uniqId . '">' . $this->pi_getLL('direction', '', TRUE) . '</label><select id="' . $uniqId . '" name="' . $this->prefixId . '[asc]" onchange="javascript:this.form.submit();">'; |
|
| 398 | 398 | |
| 399 | - $sorting .= '<option value="1" '.($this->list->metadata['options']['order.asc'] ? ' selected="selected"' : '').'>'.$this->pi_getLL('direction.asc', '', TRUE).'</option>'; |
|
| 399 | + $sorting .= '<option value="1" ' . ($this->list->metadata['options']['order.asc'] ? ' selected="selected"' : '') . '>' . $this->pi_getLL('direction.asc', '', TRUE) . '</option>'; |
|
| 400 | 400 | |
| 401 | - $sorting .= '<option value="0" '.(!$this->list->metadata['options']['order.asc'] ? ' selected="selected"' : '').'>'.$this->pi_getLL('direction.desc', '', TRUE).'</option>'; |
|
| 401 | + $sorting .= '<option value="0" ' . (!$this->list->metadata['options']['order.asc'] ? ' selected="selected"' : '') . '>' . $this->pi_getLL('direction.desc', '', TRUE) . '</option>'; |
|
| 402 | 402 | |
| 403 | 403 | $sorting .= '</select></div></form>'; |
| 404 | 404 | |
@@ -454,7 +454,7 @@ discard block |
||
| 454 | 454 | |
| 455 | 455 | if (!empty($superiorTitle)) { |
| 456 | 456 | |
| 457 | - $value = '['.$superiorTitle.']'; |
|
| 457 | + $value = '[' . $superiorTitle . ']'; |
|
| 458 | 458 | |
| 459 | 459 | } |
| 460 | 460 | |
@@ -469,7 +469,7 @@ discard block |
||
| 469 | 469 | |
| 470 | 470 | $imgAlt = htmlspecialchars($value); |
| 471 | 471 | |
| 472 | - $additionalParams = array ( |
|
| 472 | + $additionalParams = array( |
|
| 473 | 473 | 'id' => $subpart['uid'], |
| 474 | 474 | 'page' => $subpart['page'], |
| 475 | 475 | 'highlight_word' => $highlight_word |
@@ -481,7 +481,7 @@ discard block |
||
| 481 | 481 | |
| 482 | 482 | } |
| 483 | 483 | |
| 484 | - $conf = array ( |
|
| 484 | + $conf = array( |
|
| 485 | 485 | // we don't want cHash in case of search parameters |
| 486 | 486 | 'useCacheHash' => empty($this->list->metadata['searchString']) ? 1 : 0, |
| 487 | 487 | 'parameter' => $this->conf['targetPid'], |
@@ -505,7 +505,7 @@ discard block |
||
| 505 | 505 | // Add page number for single pages. |
| 506 | 506 | if ($_value == 'page') { |
| 507 | 507 | |
| 508 | - $value .= ' '.intval($subpart['page']); |
|
| 508 | + $value .= ' ' . intval($subpart['page']); |
|
| 509 | 509 | |
| 510 | 510 | } |
| 511 | 511 | |
@@ -545,7 +545,7 @@ discard block |
||
| 545 | 545 | // Add thumbnail. |
| 546 | 546 | if (!empty($subpart['thumbnail'])) { |
| 547 | 547 | |
| 548 | - $markerArray['###SUBTHUMBNAIL###'] = '<img alt="'.$imgAlt.'" src="'.$subpart['thumbnail'].'" />'; |
|
| 548 | + $markerArray['###SUBTHUMBNAIL###'] = '<img alt="' . $imgAlt . '" src="' . $subpart['thumbnail'] . '" />'; |
|
| 549 | 549 | |
| 550 | 550 | } |
| 551 | 551 | |
@@ -561,9 +561,9 @@ discard block |
||
| 561 | 561 | |
| 562 | 562 | if (!empty($this->conf['basketButton']) && !empty($this->conf['targetBasket'])) { |
| 563 | 563 | |
| 564 | - $additionalParams = array ('id' => $this->list[$number]['uid'], 'startpage' => $subpart['page'], 'endpage' => $subpart['page'], 'logId' => $subpart['sid'], 'addToBasket' => 'subentry'); |
|
| 564 | + $additionalParams = array('id' => $this->list[$number]['uid'], 'startpage' => $subpart['page'], 'endpage' => $subpart['page'], 'logId' => $subpart['sid'], 'addToBasket' => 'subentry'); |
|
| 565 | 565 | |
| 566 | - $conf = array ( |
|
| 566 | + $conf = array( |
|
| 567 | 567 | 'useCacheHash' => 1, |
| 568 | 568 | 'parameter' => $this->conf['targetBasket'], |
| 569 | 569 | 'additionalParams' => \TYPO3\CMS\Core\Utility\GeneralUtility::implodeArrayForUrl($this->prefixId, $additionalParams, '', TRUE, FALSE) |
@@ -595,7 +595,7 @@ discard block |
||
| 595 | 595 | $result = $GLOBALS['TYPO3_DB']->exec_SELECTquery( |
| 596 | 596 | 'tx_dlf_metadata.index_name AS index_name,tx_dlf_metadata.wrap AS wrap,tx_dlf_metadata.is_listed AS is_listed,tx_dlf_metadata.is_sortable AS is_sortable', |
| 597 | 597 | 'tx_dlf_metadata', |
| 598 | - '(tx_dlf_metadata.is_listed=1 OR tx_dlf_metadata.is_sortable=1) AND tx_dlf_metadata.pid='.intval($this->conf['pages']).tx_dlf_helper::whereClause('tx_dlf_metadata'), |
|
| 598 | + '(tx_dlf_metadata.is_listed=1 OR tx_dlf_metadata.is_sortable=1) AND tx_dlf_metadata.pid=' . intval($this->conf['pages']) . tx_dlf_helper::whereClause('tx_dlf_metadata'), |
|
| 599 | 599 | '', |
| 600 | 600 | 'tx_dlf_metadata.sorting ASC', |
| 601 | 601 | '' |
@@ -605,7 +605,7 @@ discard block |
||
| 605 | 605 | |
| 606 | 606 | if ($resArray['is_listed']) { |
| 607 | 607 | |
| 608 | - $this->metadata[$resArray['index_name']] = array ( |
|
| 608 | + $this->metadata[$resArray['index_name']] = array( |
|
| 609 | 609 | 'wrap' => $resArray['wrap'], |
| 610 | 610 | 'label' => tx_dlf_helper::translate($resArray['index_name'], 'tx_dlf_metadata', $this->conf['pages']) |
| 611 | 611 | ); |
@@ -678,7 +678,7 @@ discard block |
||
| 678 | 678 | || (isset($this->piVars['asc']) && $this->piVars['asc'] != $listMetadata['options']['order.asc'])) { |
| 679 | 679 | |
| 680 | 680 | // Update list's metadata. |
| 681 | - $listMetadata['options']['params']['sort'] = array ($this->piVars['order']."_sorting" => (boolean) $this->piVars['asc']?'asc':'desc'); |
|
| 681 | + $listMetadata['options']['params']['sort'] = array($this->piVars['order'] . "_sorting" => (boolean) $this->piVars['asc'] ? 'asc' : 'desc'); |
|
| 682 | 682 | |
| 683 | 683 | $listMetadata['options']['order'] = $this->piVars['order']; |
| 684 | 684 | $listMetadata['options']['order.asc'] = (boolean) $this->piVars['asc']; |
@@ -702,7 +702,7 @@ discard block |
||
| 702 | 702 | |
| 703 | 703 | if (TYPO3_DLOG) { |
| 704 | 704 | |
| 705 | - \TYPO3\CMS\Core\Utility\GeneralUtility::devLog('[tx_dlf_listview->main('.$content.', [data])] Apache Solr not available', $this->extKey, SYSLOG_SEVERITY_ERROR, $conf); |
|
| 705 | + \TYPO3\CMS\Core\Utility\GeneralUtility::devLog('[tx_dlf_listview->main(' . $content . ', [data])] Apache Solr not available', $this->extKey, SYSLOG_SEVERITY_ERROR, $conf); |
|
| 706 | 706 | |
| 707 | 707 | } |
| 708 | 708 | |
@@ -711,7 +711,7 @@ discard block |
||
| 711 | 711 | } |
| 712 | 712 | |
| 713 | 713 | // Set search parameters. |
| 714 | - $solr->cPid = $listMetadata['options']['pid']; |
|
| 714 | + $solr->cPid = $listMetadata['options']['pid']; |
|
| 715 | 715 | $solr->params = $listMetadata['options']['params']; |
| 716 | 716 | |
| 717 | 717 | // Perform search. |
@@ -720,7 +720,7 @@ discard block |
||
| 720 | 720 | } |
| 721 | 721 | |
| 722 | 722 | // Add list description |
| 723 | - $listMetadata['description'] = '<p class="tx-dlf-search-numHits">'.htmlspecialchars(sprintf($this->pi_getLL('hits', ''), $this->list->metadata['options']['numberOfHits'], $this->list->metadata['options']['numberOfToplevelHits'])).'</p>'; |
|
| 723 | + $listMetadata['description'] = '<p class="tx-dlf-search-numHits">' . htmlspecialchars(sprintf($this->pi_getLL('hits', ''), $this->list->metadata['options']['numberOfHits'], $this->list->metadata['options']['numberOfToplevelHits'])) . '</p>'; |
|
| 724 | 724 | $this->list->metadata = $listMetadata; |
| 725 | 725 | |
| 726 | 726 | // Save updated list. |
@@ -780,7 +780,7 @@ discard block |
||
| 780 | 780 | |
| 781 | 781 | if (!empty($this->list->metadata['thumbnail'])) { |
| 782 | 782 | |
| 783 | - $markerArray['###LISTTHUMBNAIL###'] = '<img alt="" src="'.$this->list->metadata['thumbnail'].'" />'; |
|
| 783 | + $markerArray['###LISTTHUMBNAIL###'] = '<img alt="" src="' . $this->list->metadata['thumbnail'] . '" />'; |
|
| 784 | 784 | |
| 785 | 785 | } else { |
| 786 | 786 | |
@@ -790,7 +790,7 @@ discard block |
||
| 790 | 790 | |
| 791 | 791 | if ($currentEntry) { |
| 792 | 792 | |
| 793 | - $currentEntry = ($this->piVars['pointer'] * $this->conf['limit']) + 1; |
|
| 793 | + $currentEntry = ($this->piVars['pointer'] * $this->conf['limit']) + 1; |
|
| 794 | 794 | $lastEntry = ($this->piVars['pointer'] * $this->conf['limit']) + $this->conf['limit']; |
| 795 | 795 | |
| 796 | 796 | $markerArray['###COUNT###'] = htmlspecialchars(sprintf($this->pi_getLL('count'), $currentEntry, $lastEntry < $this->list->metadata['options']['numberOfToplevelHits'] ? $lastEntry : $this->list->metadata['options']['numberOfToplevelHits'], $this->list->metadata['options']['numberOfToplevelHits'])); |
@@ -19,7 +19,8 @@ discard block |
||
| 19 | 19 | * @subpackage tx_dlf |
| 20 | 20 | * @access public |
| 21 | 21 | */ |
| 22 | -class tx_dlf_listview extends tx_dlf_plugin { |
|
| 22 | +class tx_dlf_listview extends tx_dlf_plugin |
|
| 23 | +{ |
|
| 23 | 24 | |
| 24 | 25 | public $scriptRelPath = 'plugins/listview/class.tx_dlf_listview.php'; |
| 25 | 26 | |
@@ -62,7 +63,8 @@ discard block |
||
| 62 | 63 | * |
| 63 | 64 | * @return string The rendered page browser ready for output |
| 64 | 65 | */ |
| 65 | - protected function getPageBrowser() { |
|
| 66 | + protected function getPageBrowser() |
|
| 67 | + { |
|
| 66 | 68 | |
| 67 | 69 | // Get overall number of pages. |
| 68 | 70 | $maxPages = intval(ceil($this->list->metadata['options']['numberOfToplevelHits'] / $this->conf['limit'])); |
@@ -146,7 +148,8 @@ discard block |
||
| 146 | 148 | * |
| 147 | 149 | * @return string The rendered entry ready for output |
| 148 | 150 | */ |
| 149 | - protected function getEntry($number, $template) { |
|
| 151 | + protected function getEntry($number, $template) |
|
| 152 | + { |
|
| 150 | 153 | |
| 151 | 154 | $markerArray['###NUMBER###'] = $number + 1; |
| 152 | 155 | |
@@ -314,7 +317,8 @@ discard block |
||
| 314 | 317 | * |
| 315 | 318 | * @return array The parsed fieldwrap |
| 316 | 319 | */ |
| 317 | - private function getFieldWrap($index_name, $wrap) { |
|
| 320 | + private function getFieldWrap($index_name, $wrap) |
|
| 321 | + { |
|
| 318 | 322 | |
| 319 | 323 | if (isset($this->fieldwrap[$index_name])) { |
| 320 | 324 | |
@@ -335,7 +339,8 @@ discard block |
||
| 335 | 339 | * |
| 336 | 340 | * @return string The rendered sorting dialog ready for output |
| 337 | 341 | */ |
| 338 | - protected function getSortingForm() { |
|
| 342 | + protected function getSortingForm() |
|
| 343 | + { |
|
| 339 | 344 | |
| 340 | 345 | // Return nothing if there are no sortable metadata fields. |
| 341 | 346 | if (!count($this->sortables)) { |
@@ -416,7 +421,8 @@ discard block |
||
| 416 | 421 | * |
| 417 | 422 | * @return string The rendered entries ready for output |
| 418 | 423 | */ |
| 419 | - protected function getSubEntries($number, $template) { |
|
| 424 | + protected function getSubEntries($number, $template) |
|
| 425 | + { |
|
| 420 | 426 | |
| 421 | 427 | $content = ''; |
| 422 | 428 | |
@@ -590,7 +596,8 @@ discard block |
||
| 590 | 596 | * |
| 591 | 597 | * @return void |
| 592 | 598 | */ |
| 593 | - protected function loadConfig() { |
|
| 599 | + protected function loadConfig() |
|
| 600 | + { |
|
| 594 | 601 | |
| 595 | 602 | $result = $GLOBALS['TYPO3_DB']->exec_SELECTquery( |
| 596 | 603 | 'tx_dlf_metadata.index_name AS index_name,tx_dlf_metadata.wrap AS wrap,tx_dlf_metadata.is_listed AS is_listed,tx_dlf_metadata.is_sortable AS is_sortable', |
@@ -632,7 +639,8 @@ discard block |
||
| 632 | 639 | * |
| 633 | 640 | * @return string The content that is displayed on the website |
| 634 | 641 | */ |
| 635 | - public function main($content, $conf) { |
|
| 642 | + public function main($content, $conf) |
|
| 643 | + { |
|
| 636 | 644 | |
| 637 | 645 | $this->init($conf); |
| 638 | 646 | |
@@ -75,22 +75,22 @@ discard block |
||
| 75 | 75 | } |
| 76 | 76 | |
| 77 | 77 | // Get separator. |
| 78 | - $separator = $this->pi_getLL('separator', ' - ', TRUE); |
|
| 78 | + $separator = $this->pi_getLL('separator', ' - ', true); |
|
| 79 | 79 | |
| 80 | 80 | // Add link to previous page. |
| 81 | 81 | if ($this->piVars['pointer'] > 0) { |
| 82 | 82 | |
| 83 | - $output = $this->pi_linkTP_keepPIvars($this->pi_getLL('prevPage', '<', TRUE), array ('pointer' => $this->piVars['pointer'] - 1), TRUE).$separator; |
|
| 83 | + $output = $this->pi_linkTP_keepPIvars($this->pi_getLL('prevPage', '<', true), array ('pointer' => $this->piVars['pointer'] - 1), true).$separator; |
|
| 84 | 84 | |
| 85 | 85 | } else { |
| 86 | 86 | |
| 87 | - $output = $this->pi_getLL('prevPage', '<', TRUE).$separator; |
|
| 87 | + $output = $this->pi_getLL('prevPage', '<', true).$separator; |
|
| 88 | 88 | |
| 89 | 89 | } |
| 90 | 90 | |
| 91 | 91 | $i = 0; |
| 92 | 92 | |
| 93 | - $skip = NULL; |
|
| 93 | + $skip = null; |
|
| 94 | 94 | |
| 95 | 95 | // Add links to pages. |
| 96 | 96 | while ($i < $maxPages) { |
@@ -99,21 +99,21 @@ discard block |
||
| 99 | 99 | |
| 100 | 100 | if ($this->piVars['pointer'] != $i) { |
| 101 | 101 | |
| 102 | - $output .= $this->pi_linkTP_keepPIvars(sprintf($this->pi_getLL('page', '%d', TRUE), $i + 1), array ('pointer' => $i), TRUE).$separator; |
|
| 102 | + $output .= $this->pi_linkTP_keepPIvars(sprintf($this->pi_getLL('page', '%d', true), $i + 1), array ('pointer' => $i), true).$separator; |
|
| 103 | 103 | |
| 104 | 104 | } else { |
| 105 | 105 | |
| 106 | - $output .= sprintf($this->pi_getLL('page', '%d', TRUE), $i + 1).$separator; |
|
| 106 | + $output .= sprintf($this->pi_getLL('page', '%d', true), $i + 1).$separator; |
|
| 107 | 107 | |
| 108 | 108 | } |
| 109 | 109 | |
| 110 | - $skip = TRUE; |
|
| 110 | + $skip = true; |
|
| 111 | 111 | |
| 112 | - } elseif ($skip === TRUE) { |
|
| 112 | + } elseif ($skip === true) { |
|
| 113 | 113 | |
| 114 | - $output .= $this->pi_getLL('skip', '...', TRUE).$separator; |
|
| 114 | + $output .= $this->pi_getLL('skip', '...', true).$separator; |
|
| 115 | 115 | |
| 116 | - $skip = FALSE; |
|
| 116 | + $skip = false; |
|
| 117 | 117 | |
| 118 | 118 | } |
| 119 | 119 | |
@@ -124,11 +124,11 @@ discard block |
||
| 124 | 124 | // Add link to next page. |
| 125 | 125 | if ($this->piVars['pointer'] < $maxPages - 1) { |
| 126 | 126 | |
| 127 | - $output .= $this->pi_linkTP_keepPIvars($this->pi_getLL('nextPage', '>', TRUE), array ('pointer' => $this->piVars['pointer'] + 1), TRUE); |
|
| 127 | + $output .= $this->pi_linkTP_keepPIvars($this->pi_getLL('nextPage', '>', true), array ('pointer' => $this->piVars['pointer'] + 1), true); |
|
| 128 | 128 | |
| 129 | 129 | } else { |
| 130 | 130 | |
| 131 | - $output .= $this->pi_getLL('nextPage', '>', TRUE); |
|
| 131 | + $output .= $this->pi_getLL('nextPage', '>', true); |
|
| 132 | 132 | |
| 133 | 133 | } |
| 134 | 134 | |
@@ -180,7 +180,7 @@ discard block |
||
| 180 | 180 | // Get title of parent document if needed. |
| 181 | 181 | if (empty($value) && $this->conf['getTitle']) { |
| 182 | 182 | |
| 183 | - $superiorTitle = tx_dlf_document::getTitle($this->list[$number]['uid'], TRUE); |
|
| 183 | + $superiorTitle = tx_dlf_document::getTitle($this->list[$number]['uid'], true); |
|
| 184 | 184 | |
| 185 | 185 | if (!empty($superiorTitle)) { |
| 186 | 186 | |
@@ -213,7 +213,7 @@ discard block |
||
| 213 | 213 | $conf = array ( |
| 214 | 214 | 'useCacheHash' => 1, |
| 215 | 215 | 'parameter' => $this->conf['targetPid'], |
| 216 | - 'additionalParams' => \TYPO3\CMS\Core\Utility\GeneralUtility::implodeArrayForUrl($this->prefixId, $additionalParams, '', TRUE, FALSE) |
|
| 216 | + 'additionalParams' => \TYPO3\CMS\Core\Utility\GeneralUtility::implodeArrayForUrl($this->prefixId, $additionalParams, '', true, false) |
|
| 217 | 217 | ); |
| 218 | 218 | |
| 219 | 219 | $value = $this->cObj->typoLink(htmlspecialchars($value), $conf); |
@@ -291,16 +291,16 @@ discard block |
||
| 291 | 291 | $conf = array ( |
| 292 | 292 | 'useCacheHash' => 1, |
| 293 | 293 | 'parameter' => $this->conf['targetBasket'], |
| 294 | - 'additionalParams' => \TYPO3\CMS\Core\Utility\GeneralUtility::implodeArrayForUrl($this->prefixId, $additionalParams, '', TRUE, FALSE) |
|
| 294 | + 'additionalParams' => \TYPO3\CMS\Core\Utility\GeneralUtility::implodeArrayForUrl($this->prefixId, $additionalParams, '', true, false) |
|
| 295 | 295 | ); |
| 296 | 296 | |
| 297 | - $link = $this->cObj->typoLink($this->pi_getLL('addBasket', '', TRUE), $conf); |
|
| 297 | + $link = $this->cObj->typoLink($this->pi_getLL('addBasket', '', true), $conf); |
|
| 298 | 298 | |
| 299 | 299 | $markerArray['###BASKETBUTTON###'] = $link; |
| 300 | 300 | |
| 301 | 301 | } |
| 302 | 302 | |
| 303 | - return $this->cObj->substituteMarkerArray($this->cObj->substituteSubpart($template['entry'], '###SUBTEMPLATE###', $subpart, TRUE), $markerArray); |
|
| 303 | + return $this->cObj->substituteMarkerArray($this->cObj->substituteSubpart($template['entry'], '###SUBTEMPLATE###', $subpart, true), $markerArray); |
|
| 304 | 304 | |
| 305 | 305 | } |
| 306 | 306 | |
@@ -354,7 +354,7 @@ discard block |
||
| 354 | 354 | |
| 355 | 355 | if (!empty($this->piVars['logicalPage'])) { |
| 356 | 356 | |
| 357 | - $linkConf['additionalParams'] = \TYPO3\CMS\Core\Utility\GeneralUtility::implodeArrayForUrl($this->prefixId, array ('logicalPage' => $this->piVars['logicalPage']), '', TRUE, FALSE); |
|
| 357 | + $linkConf['additionalParams'] = \TYPO3\CMS\Core\Utility\GeneralUtility::implodeArrayForUrl($this->prefixId, array ('logicalPage' => $this->piVars['logicalPage']), '', true, false); |
|
| 358 | 358 | |
| 359 | 359 | } |
| 360 | 360 | |
@@ -374,12 +374,12 @@ discard block |
||
| 374 | 374 | // Select sort field. |
| 375 | 375 | $uniqId = uniqid($prefix.'-'); |
| 376 | 376 | |
| 377 | - $sorting .= '<label for="'.$uniqId.'">'.$this->pi_getLL('orderBy', '', TRUE).'</label><select id="'.$uniqId.'" name="'.$this->prefixId.'[order]" onchange="javascript:this.form.submit();">'; |
|
| 377 | + $sorting .= '<label for="'.$uniqId.'">'.$this->pi_getLL('orderBy', '', true).'</label><select id="'.$uniqId.'" name="'.$this->prefixId.'[order]" onchange="javascript:this.form.submit();">'; |
|
| 378 | 378 | |
| 379 | 379 | // Add relevance sorting if this is a search result list. |
| 380 | 380 | if ($this->list->metadata['options']['source'] == 'search') { |
| 381 | 381 | |
| 382 | - $sorting .= '<option value="score"'.(($this->list->metadata['options']['order'] == 'score') ? ' selected="selected"' : '').'>'.$this->pi_getLL('relevance', '', TRUE).'</option>'; |
|
| 382 | + $sorting .= '<option value="score"'.(($this->list->metadata['options']['order'] == 'score') ? ' selected="selected"' : '').'>'.$this->pi_getLL('relevance', '', true).'</option>'; |
|
| 383 | 383 | |
| 384 | 384 | } |
| 385 | 385 | |
@@ -394,11 +394,11 @@ discard block |
||
| 394 | 394 | // Select sort direction. |
| 395 | 395 | $uniqId = uniqid($prefix.'-'); |
| 396 | 396 | |
| 397 | - $sorting .= '<label for="'.$uniqId.'">'.$this->pi_getLL('direction', '', TRUE).'</label><select id="'.$uniqId.'" name="'.$this->prefixId.'[asc]" onchange="javascript:this.form.submit();">'; |
|
| 397 | + $sorting .= '<label for="'.$uniqId.'">'.$this->pi_getLL('direction', '', true).'</label><select id="'.$uniqId.'" name="'.$this->prefixId.'[asc]" onchange="javascript:this.form.submit();">'; |
|
| 398 | 398 | |
| 399 | - $sorting .= '<option value="1" '.($this->list->metadata['options']['order.asc'] ? ' selected="selected"' : '').'>'.$this->pi_getLL('direction.asc', '', TRUE).'</option>'; |
|
| 399 | + $sorting .= '<option value="1" '.($this->list->metadata['options']['order.asc'] ? ' selected="selected"' : '').'>'.$this->pi_getLL('direction.asc', '', true).'</option>'; |
|
| 400 | 400 | |
| 401 | - $sorting .= '<option value="0" '.(!$this->list->metadata['options']['order.asc'] ? ' selected="selected"' : '').'>'.$this->pi_getLL('direction.desc', '', TRUE).'</option>'; |
|
| 401 | + $sorting .= '<option value="0" '.(!$this->list->metadata['options']['order.asc'] ? ' selected="selected"' : '').'>'.$this->pi_getLL('direction.desc', '', true).'</option>'; |
|
| 402 | 402 | |
| 403 | 403 | $sorting .= '</select></div></form>'; |
| 404 | 404 | |
@@ -450,7 +450,7 @@ discard block |
||
| 450 | 450 | // Get title of parent document if needed. |
| 451 | 451 | if (empty($value) && $this->conf['getTitle']) { |
| 452 | 452 | |
| 453 | - $superiorTitle = tx_dlf_document::getTitle($subpart['uid'], TRUE); |
|
| 453 | + $superiorTitle = tx_dlf_document::getTitle($subpart['uid'], true); |
|
| 454 | 454 | |
| 455 | 455 | if (!empty($superiorTitle)) { |
| 456 | 456 | |
@@ -485,7 +485,7 @@ discard block |
||
| 485 | 485 | // we don't want cHash in case of search parameters |
| 486 | 486 | 'useCacheHash' => empty($this->list->metadata['searchString']) ? 1 : 0, |
| 487 | 487 | 'parameter' => $this->conf['targetPid'], |
| 488 | - 'additionalParams' => \TYPO3\CMS\Core\Utility\GeneralUtility::implodeArrayForUrl($this->prefixId, $additionalParams, '', TRUE, FALSE) |
|
| 488 | + 'additionalParams' => \TYPO3\CMS\Core\Utility\GeneralUtility::implodeArrayForUrl($this->prefixId, $additionalParams, '', true, false) |
|
| 489 | 489 | ); |
| 490 | 490 | |
| 491 | 491 | $value = $this->cObj->typoLink(htmlspecialchars($value), $conf); |
@@ -566,10 +566,10 @@ discard block |
||
| 566 | 566 | $conf = array ( |
| 567 | 567 | 'useCacheHash' => 1, |
| 568 | 568 | 'parameter' => $this->conf['targetBasket'], |
| 569 | - 'additionalParams' => \TYPO3\CMS\Core\Utility\GeneralUtility::implodeArrayForUrl($this->prefixId, $additionalParams, '', TRUE, FALSE) |
|
| 569 | + 'additionalParams' => \TYPO3\CMS\Core\Utility\GeneralUtility::implodeArrayForUrl($this->prefixId, $additionalParams, '', true, false) |
|
| 570 | 570 | ); |
| 571 | 571 | |
| 572 | - $link = $this->cObj->typoLink($this->pi_getLL('addBasket', '', TRUE), $conf); |
|
| 572 | + $link = $this->cObj->typoLink($this->pi_getLL('addBasket', '', true), $conf); |
|
| 573 | 573 | |
| 574 | 574 | $markerArray['###SUBBASKETBUTTON###'] = $link; |
| 575 | 575 | |
@@ -579,7 +579,7 @@ discard block |
||
| 579 | 579 | |
| 580 | 580 | } |
| 581 | 581 | |
| 582 | - return $this->cObj->substituteSubpart($this->cObj->getSubpart($this->template, '###SUBTEMPLATE###'), '###SUBENTRY###', $content, TRUE); |
|
| 582 | + return $this->cObj->substituteSubpart($this->cObj->getSubpart($this->template, '###SUBTEMPLATE###'), '###SUBENTRY###', $content, true); |
|
| 583 | 583 | |
| 584 | 584 | } |
| 585 | 585 | |
@@ -637,7 +637,7 @@ discard block |
||
| 637 | 637 | $this->init($conf); |
| 638 | 638 | |
| 639 | 639 | // Don't cache the output. |
| 640 | - $this->setCache(FALSE); |
|
| 640 | + $this->setCache(false); |
|
| 641 | 641 | |
| 642 | 642 | // Load the list. |
| 643 | 643 | $this->list = \TYPO3\CMS\Core\Utility\GeneralUtility::makeInstance('tx_dlf_list'); |
@@ -797,7 +797,7 @@ discard block |
||
| 797 | 797 | |
| 798 | 798 | } else { |
| 799 | 799 | |
| 800 | - $markerArray['###COUNT###'] = $this->pi_getLL('nohits', '', TRUE); |
|
| 800 | + $markerArray['###COUNT###'] = $this->pi_getLL('nohits', '', true); |
|
| 801 | 801 | |
| 802 | 802 | } |
| 803 | 803 | |
@@ -805,7 +805,7 @@ discard block |
||
| 805 | 805 | |
| 806 | 806 | $markerArray['###SORTING###'] = $this->getSortingForm(); |
| 807 | 807 | |
| 808 | - $content = $this->cObj->substituteMarkerArray($this->cObj->substituteSubpart($this->template, '###ENTRY###', $content, TRUE), $markerArray); |
|
| 808 | + $content = $this->cObj->substituteMarkerArray($this->cObj->substituteSubpart($this->template, '###ENTRY###', $content, true), $markerArray); |
|
| 809 | 809 | |
| 810 | 810 | return $this->pi_wrapInBaseClass($content); |
| 811 | 811 | |
@@ -9,8 +9,8 @@ discard block |
||
| 9 | 9 | * LICENSE.txt file that was distributed with this source code. |
| 10 | 10 | */ |
| 11 | 11 | |
| 12 | -return array ( |
|
| 13 | - 'ctrl' => array ( |
|
| 12 | +return array( |
|
| 13 | + 'ctrl' => array( |
|
| 14 | 14 | 'title' => 'LLL:EXT:dlf/locallang.xml:tx_dlf_actionlog', |
| 15 | 15 | 'label' => 'label', |
| 16 | 16 | 'crdate' => 'crdate', |
@@ -22,54 +22,54 @@ discard block |
||
| 22 | 22 | 'dividers2tabs' => 2, |
| 23 | 23 | 'searchFields' => 'label,name,crdate', |
| 24 | 24 | ), |
| 25 | - 'interface' => array ( |
|
| 25 | + 'interface' => array( |
|
| 26 | 26 | 'showRecordFieldList' => 'label,name,crdate', |
| 27 | 27 | 'maxDBListItems' => 25, |
| 28 | 28 | 'maxSingleDBListItems' => 50, |
| 29 | 29 | ), |
| 30 | - 'feInterface' => array ( |
|
| 30 | + 'feInterface' => array( |
|
| 31 | 31 | 'fe_admin_fieldList' => '', |
| 32 | 32 | ), |
| 33 | - 'columns' => array ( |
|
| 34 | - 'label' => array ( |
|
| 33 | + 'columns' => array( |
|
| 34 | + 'label' => array( |
|
| 35 | 35 | 'label' => 'LLL:EXT:dlf/locallang.xml:tx_dlf_actionlog.label', |
| 36 | - 'config' => array ( |
|
| 36 | + 'config' => array( |
|
| 37 | 37 | 'type' => 'input', |
| 38 | 38 | 'size' => 30, |
| 39 | 39 | 'max' => 255, |
| 40 | 40 | 'eval' => 'required,trim', |
| 41 | 41 | ), |
| 42 | 42 | ), |
| 43 | - 'user_id' => array ( |
|
| 43 | + 'user_id' => array( |
|
| 44 | 44 | 'label' => 'LLL:EXT:dlf/locallang.xml:tx_dlf_actionlog.user_id', |
| 45 | - 'config' => array ( |
|
| 45 | + 'config' => array( |
|
| 46 | 46 | 'type' => 'input', |
| 47 | 47 | 'size' => 30, |
| 48 | 48 | 'max' => 255, |
| 49 | 49 | 'eval' => 'alphanum,unique', |
| 50 | 50 | ), |
| 51 | 51 | ), |
| 52 | - 'file_name' => array ( |
|
| 52 | + 'file_name' => array( |
|
| 53 | 53 | 'label' => 'LLL:EXT:dlf/locallang.xml:tx_dlf_actionlog.file_name', |
| 54 | - 'config' => array ( |
|
| 54 | + 'config' => array( |
|
| 55 | 55 | 'type' => 'input', |
| 56 | 56 | 'size' => 30, |
| 57 | 57 | 'max' => 255, |
| 58 | 58 | 'eval' => 'alphanum,unique', |
| 59 | 59 | ), |
| 60 | 60 | ), |
| 61 | - 'count_pages' => array ( |
|
| 61 | + 'count_pages' => array( |
|
| 62 | 62 | 'label' => 'LLL:EXT:dlf/locallang.xml:tx_dlf_actionlog.count_pages', |
| 63 | - 'config' => array ( |
|
| 63 | + 'config' => array( |
|
| 64 | 64 | 'type' => 'input', |
| 65 | 65 | 'size' => 30, |
| 66 | 66 | 'max' => 11, |
| 67 | 67 | 'eval' => 'trim', |
| 68 | 68 | ), |
| 69 | 69 | ), |
| 70 | - 'name' => array ( |
|
| 70 | + 'name' => array( |
|
| 71 | 71 | 'label' => 'LLL:EXT:dlf/locallang.xml:tx_dlf_actionlog.name', |
| 72 | - 'config' => array ( |
|
| 72 | + 'config' => array( |
|
| 73 | 73 | 'type' => 'input', |
| 74 | 74 | 'size' => 30, |
| 75 | 75 | 'max' => 255, |
@@ -77,10 +77,10 @@ discard block |
||
| 77 | 77 | ), |
| 78 | 78 | ) |
| 79 | 79 | ), |
| 80 | - 'types' => array ( |
|
| 81 | - '0' => array ('showitem' => '--div--;LLL:EXT:dlf/locallang.xml:tx_dlf_actionlog.tab1, label;;;;1-1-1, name;;;;2-2-2, file_name;;;;2-2-2, crdate;;;;2-2-2, count_pages;;;;2-2-2'), |
|
| 80 | + 'types' => array( |
|
| 81 | + '0' => array('showitem' => '--div--;LLL:EXT:dlf/locallang.xml:tx_dlf_actionlog.tab1, label;;;;1-1-1, name;;;;2-2-2, file_name;;;;2-2-2, crdate;;;;2-2-2, count_pages;;;;2-2-2'), |
|
| 82 | 82 | ), |
| 83 | - 'palettes' => array ( |
|
| 84 | - '1' => array ('showitem' => ''), |
|
| 83 | + 'palettes' => array( |
|
| 84 | + '1' => array('showitem' => ''), |
|
| 85 | 85 | ), |
| 86 | 86 | ); |
@@ -9,8 +9,8 @@ discard block |
||
| 9 | 9 | * LICENSE.txt file that was distributed with this source code. |
| 10 | 10 | */ |
| 11 | 11 | |
| 12 | -return array ( |
|
| 13 | - 'ctrl' => array ( |
|
| 12 | +return array( |
|
| 13 | + 'ctrl' => array( |
|
| 14 | 14 | 'title' => 'LLL:EXT:dlf/locallang.xml:tx_dlf_solrcores', |
| 15 | 15 | 'label' => 'label', |
| 16 | 16 | 'tstamp' => 'tstamp', |
@@ -23,25 +23,25 @@ discard block |
||
| 23 | 23 | 'dividers2tabs' => 2, |
| 24 | 24 | 'searchFields' => 'label,index_name', |
| 25 | 25 | ), |
| 26 | - 'feInterface' => array ( |
|
| 26 | + 'feInterface' => array( |
|
| 27 | 27 | 'fe_admin_fieldList' => '', |
| 28 | 28 | ), |
| 29 | - 'interface' => array ( |
|
| 29 | + 'interface' => array( |
|
| 30 | 30 | 'showRecordFieldList' => 'label,index_name', |
| 31 | 31 | ), |
| 32 | - 'columns' => array ( |
|
| 33 | - 'label' => array ( |
|
| 32 | + 'columns' => array( |
|
| 33 | + 'label' => array( |
|
| 34 | 34 | 'label' => 'LLL:EXT:dlf/locallang.xml:tx_dlf_solrcores.label', |
| 35 | - 'config' => array ( |
|
| 35 | + 'config' => array( |
|
| 36 | 36 | 'type' => 'input', |
| 37 | 37 | 'size' => 30, |
| 38 | 38 | 'max' => 255, |
| 39 | 39 | 'eval' => 'required,trim', |
| 40 | 40 | ), |
| 41 | 41 | ), |
| 42 | - 'index_name' => array ( |
|
| 42 | + 'index_name' => array( |
|
| 43 | 43 | 'label' => 'LLL:EXT:dlf/locallang.xml:tx_dlf_solrcores.index_name', |
| 44 | - 'config' => array ( |
|
| 44 | + 'config' => array( |
|
| 45 | 45 | 'type' => 'none', |
| 46 | 46 | 'size' => 30, |
| 47 | 47 | 'max' => 255, |
@@ -49,10 +49,10 @@ discard block |
||
| 49 | 49 | ), |
| 50 | 50 | ), |
| 51 | 51 | ), |
| 52 | - 'types' => array ( |
|
| 53 | - '0' => array ('showitem' => '--div--;LLL:EXT:dlf/locallang.xml:tx_dlf_solrcores.tab1, label;;;;1-1-1, index_name;;;;2-2-2'), |
|
| 52 | + 'types' => array( |
|
| 53 | + '0' => array('showitem' => '--div--;LLL:EXT:dlf/locallang.xml:tx_dlf_solrcores.tab1, label;;;;1-1-1, index_name;;;;2-2-2'), |
|
| 54 | 54 | ), |
| 55 | - 'palettes' => array ( |
|
| 56 | - '1' => array ('showitem' => ''), |
|
| 55 | + 'palettes' => array( |
|
| 56 | + '1' => array('showitem' => ''), |
|
| 57 | 57 | ), |
| 58 | 58 | ); |
@@ -9,8 +9,8 @@ discard block |
||
| 9 | 9 | * LICENSE.txt file that was distributed with this source code. |
| 10 | 10 | */ |
| 11 | 11 | |
| 12 | -return array ( |
|
| 13 | - 'ctrl' => array ( |
|
| 12 | +return array( |
|
| 13 | + 'ctrl' => array( |
|
| 14 | 14 | 'title' => 'LLL:EXT:dlf/locallang.xml:tx_dlf_metadataformat', |
| 15 | 15 | 'label' => 'encoded', |
| 16 | 16 | 'tstamp' => 'tstamp', |
@@ -24,22 +24,22 @@ discard block |
||
| 24 | 24 | 'searchFields' => 'encoded', |
| 25 | 25 | 'hideTable' => 1, |
| 26 | 26 | ), |
| 27 | - 'feInterface' => array ( |
|
| 27 | + 'feInterface' => array( |
|
| 28 | 28 | 'fe_admin_fieldList' => '', |
| 29 | 29 | ), |
| 30 | - 'interface' => array ( |
|
| 30 | + 'interface' => array( |
|
| 31 | 31 | 'showRecordFieldList' => 'parent_id,encoded,xpath,xpath_sorting', |
| 32 | 32 | ), |
| 33 | - 'columns' => array ( |
|
| 34 | - 'parent_id' => array ( |
|
| 35 | - 'config' => array ( |
|
| 33 | + 'columns' => array( |
|
| 34 | + 'parent_id' => array( |
|
| 35 | + 'config' => array( |
|
| 36 | 36 | 'type' => 'passthrough', |
| 37 | 37 | ), |
| 38 | 38 | ), |
| 39 | - 'encoded' => array ( |
|
| 39 | + 'encoded' => array( |
|
| 40 | 40 | 'exclude' => 1, |
| 41 | 41 | 'label' => 'LLL:EXT:dlf/locallang.xml:tx_dlf_metadataformat.encoded', |
| 42 | - 'config' => array ( |
|
| 42 | + 'config' => array( |
|
| 43 | 43 | 'type' => 'select', |
| 44 | 44 | 'renderType' => 'selectSingle', |
| 45 | 45 | 'foreign_table' => 'tx_dlf_formats', |
@@ -49,39 +49,39 @@ discard block |
||
| 49 | 49 | 'maxitems' => 1, |
| 50 | 50 | ), |
| 51 | 51 | ), |
| 52 | - 'xpath' => array ( |
|
| 52 | + 'xpath' => array( |
|
| 53 | 53 | 'exclude' => 1, |
| 54 | 54 | 'label' => 'LLL:EXT:dlf/locallang.xml:tx_dlf_metadataformat.xpath', |
| 55 | - 'config' => array ( |
|
| 55 | + 'config' => array( |
|
| 56 | 56 | 'type' => 'input', |
| 57 | 57 | 'size' => 30, |
| 58 | 58 | 'max' => 1024, |
| 59 | 59 | 'eval' => 'required,trim', |
| 60 | 60 | ), |
| 61 | 61 | ), |
| 62 | - 'xpath_sorting' => array ( |
|
| 62 | + 'xpath_sorting' => array( |
|
| 63 | 63 | 'exclude' => 1, |
| 64 | 64 | 'label' => 'LLL:EXT:dlf/locallang.xml:tx_dlf_metadataformat.xpath_sorting', |
| 65 | - 'config' => array ( |
|
| 65 | + 'config' => array( |
|
| 66 | 66 | 'type' => 'input', |
| 67 | 67 | 'size' => 30, |
| 68 | 68 | 'max' => 255, |
| 69 | 69 | 'eval' => 'trim', |
| 70 | 70 | ), |
| 71 | 71 | ), |
| 72 | - 'mandatory' => array ( |
|
| 72 | + 'mandatory' => array( |
|
| 73 | 73 | 'exclude' => 1, |
| 74 | 74 | 'label' => 'LLL:EXT:dlf/locallang.xml:tx_dlf_metadataformat.mandatory', |
| 75 | - 'config' => array ( |
|
| 75 | + 'config' => array( |
|
| 76 | 76 | 'type' => 'check', |
| 77 | 77 | 'default' => 0, |
| 78 | 78 | ), |
| 79 | 79 | ), |
| 80 | 80 | ), |
| 81 | - 'types' => array ( |
|
| 82 | - '0' => array ('showitem' => '--div--;LLL:EXT:dlf/locallang.xml:tx_dlf_metadataformat.tab1, encoded;;;;1-1-1, xpath;;;;2-2-2, xpath_sorting, mandatory;;;;3-3-3'), |
|
| 81 | + 'types' => array( |
|
| 82 | + '0' => array('showitem' => '--div--;LLL:EXT:dlf/locallang.xml:tx_dlf_metadataformat.tab1, encoded;;;;1-1-1, xpath;;;;2-2-2, xpath_sorting, mandatory;;;;3-3-3'), |
|
| 83 | 83 | ), |
| 84 | - 'palettes' => array ( |
|
| 85 | - '1' => array ('showitem' => ''), |
|
| 84 | + 'palettes' => array( |
|
| 85 | + '1' => array('showitem' => ''), |
|
| 86 | 86 | ), |
| 87 | 87 | ); |
@@ -9,8 +9,8 @@ discard block |
||
| 9 | 9 | * LICENSE.txt file that was distributed with this source code. |
| 10 | 10 | */ |
| 11 | 11 | |
| 12 | -return array ( |
|
| 13 | - 'ctrl' => array ( |
|
| 12 | +return array( |
|
| 13 | + 'ctrl' => array( |
|
| 14 | 14 | 'title' => 'LLL:EXT:dlf/locallang.xml:tx_dlf_formats', |
| 15 | 15 | 'label' => 'type', |
| 16 | 16 | 'tstamp' => 'tstamp', |
@@ -23,43 +23,43 @@ discard block |
||
| 23 | 23 | 'dividers2tabs' => 2, |
| 24 | 24 | 'searchFields' => 'type,class', |
| 25 | 25 | ), |
| 26 | - 'feInterface' => array ( |
|
| 26 | + 'feInterface' => array( |
|
| 27 | 27 | 'fe_admin_fieldList' => '', |
| 28 | 28 | ), |
| 29 | - 'interface' => array ( |
|
| 29 | + 'interface' => array( |
|
| 30 | 30 | 'showRecordFieldList' => 'type,class', |
| 31 | 31 | ), |
| 32 | - 'columns' => array ( |
|
| 33 | - 'type' => array ( |
|
| 32 | + 'columns' => array( |
|
| 33 | + 'type' => array( |
|
| 34 | 34 | 'label' => 'LLL:EXT:dlf/locallang.xml:tx_dlf_formats.type', |
| 35 | - 'config' => array ( |
|
| 35 | + 'config' => array( |
|
| 36 | 36 | 'type' => 'input', |
| 37 | 37 | 'size' => 30, |
| 38 | 38 | 'max' => 255, |
| 39 | 39 | 'eval' => 'required,nospace,alphanum_x,unique', |
| 40 | 40 | ), |
| 41 | 41 | ), |
| 42 | - 'root' => array ( |
|
| 42 | + 'root' => array( |
|
| 43 | 43 | 'label' => 'LLL:EXT:dlf/locallang.xml:tx_dlf_formats.root', |
| 44 | - 'config' => array ( |
|
| 44 | + 'config' => array( |
|
| 45 | 45 | 'type' => 'input', |
| 46 | 46 | 'size' => 30, |
| 47 | 47 | 'max' => 255, |
| 48 | 48 | 'eval' => 'required,nospace,alphanum_x,unique', |
| 49 | 49 | ), |
| 50 | 50 | ), |
| 51 | - 'namespace' => array ( |
|
| 51 | + 'namespace' => array( |
|
| 52 | 52 | 'label' => 'LLL:EXT:dlf/locallang.xml:tx_dlf_formats.namespace', |
| 53 | - 'config' => array ( |
|
| 53 | + 'config' => array( |
|
| 54 | 54 | 'type' => 'input', |
| 55 | 55 | 'size' => 30, |
| 56 | 56 | 'max' => 255, |
| 57 | 57 | 'eval' => 'required,nospace', |
| 58 | 58 | ), |
| 59 | 59 | ), |
| 60 | - 'class' => array ( |
|
| 60 | + 'class' => array( |
|
| 61 | 61 | 'label' => 'LLL:EXT:dlf/locallang.xml:tx_dlf_formats.class', |
| 62 | - 'config' => array ( |
|
| 62 | + 'config' => array( |
|
| 63 | 63 | 'type' => 'input', |
| 64 | 64 | 'size' => 30, |
| 65 | 65 | 'max' => 255, |
@@ -67,10 +67,10 @@ discard block |
||
| 67 | 67 | ), |
| 68 | 68 | ), |
| 69 | 69 | ), |
| 70 | - 'types' => array ( |
|
| 71 | - '0' => array ('showitem' => '--div--;LLL:EXT:dlf/locallang.xml:tx_dlf_formats.tab1, type;;;;1-1-1, root;;;;2-2-2, namespace, class;;;;3-3-3'), |
|
| 70 | + 'types' => array( |
|
| 71 | + '0' => array('showitem' => '--div--;LLL:EXT:dlf/locallang.xml:tx_dlf_formats.tab1, type;;;;1-1-1, root;;;;2-2-2, namespace, class;;;;3-3-3'), |
|
| 72 | 72 | ), |
| 73 | - 'palettes' => array ( |
|
| 74 | - '1' => array ('showitem' => ''), |
|
| 73 | + 'palettes' => array( |
|
| 74 | + '1' => array('showitem' => ''), |
|
| 75 | 75 | ), |
| 76 | 76 | ); |
@@ -9,8 +9,8 @@ discard block |
||
| 9 | 9 | * LICENSE.txt file that was distributed with this source code. |
| 10 | 10 | */ |
| 11 | 11 | |
| 12 | -return array ( |
|
| 13 | - 'ctrl' => array ( |
|
| 12 | +return array( |
|
| 13 | + 'ctrl' => array( |
|
| 14 | 14 | 'title' => 'LLL:EXT:dlf/locallang.xml:tx_dlf_mail', |
| 15 | 15 | 'label' => 'label', |
| 16 | 16 | 'sortby' => 'sorting', |
@@ -20,34 +20,34 @@ discard block |
||
| 20 | 20 | 'dividers2tabs' => 2, |
| 21 | 21 | 'searchFields' => 'label,name,mail', |
| 22 | 22 | ), |
| 23 | - 'interface' => array ( |
|
| 23 | + 'interface' => array( |
|
| 24 | 24 | 'showRecordFieldList' => 'label,name,mail', |
| 25 | 25 | ), |
| 26 | - 'feInterface' => array ( |
|
| 26 | + 'feInterface' => array( |
|
| 27 | 27 | 'fe_admin_fieldList' => '', |
| 28 | 28 | ), |
| 29 | - 'columns' => array ( |
|
| 30 | - 'label' => array ( |
|
| 29 | + 'columns' => array( |
|
| 30 | + 'label' => array( |
|
| 31 | 31 | 'label' => 'LLL:EXT:dlf/locallang.xml:tx_dlf_mail', |
| 32 | - 'config' => array ( |
|
| 32 | + 'config' => array( |
|
| 33 | 33 | 'type' => 'input', |
| 34 | 34 | 'size' => 30, |
| 35 | 35 | 'max' => 255, |
| 36 | 36 | 'eval' => 'required', |
| 37 | 37 | ), |
| 38 | 38 | ), |
| 39 | - 'name' => array ( |
|
| 39 | + 'name' => array( |
|
| 40 | 40 | 'label' => 'LLL:EXT:dlf/locallang.xml:tx_dlf_mail.name', |
| 41 | - 'config' => array ( |
|
| 41 | + 'config' => array( |
|
| 42 | 42 | 'type' => 'input', |
| 43 | 43 | 'size' => 30, |
| 44 | 44 | 'max' => 255, |
| 45 | 45 | 'eval' => '', |
| 46 | 46 | ), |
| 47 | 47 | ), |
| 48 | - 'mail' => array ( |
|
| 48 | + 'mail' => array( |
|
| 49 | 49 | 'label' => 'LLL:EXT:dlf/locallang.xml:tx_dlf_mail.mail', |
| 50 | - 'config' => array ( |
|
| 50 | + 'config' => array( |
|
| 51 | 51 | 'type' => 'input', |
| 52 | 52 | 'size' => 30, |
| 53 | 53 | 'max' => 255, |
@@ -55,10 +55,10 @@ discard block |
||
| 55 | 55 | ), |
| 56 | 56 | ), |
| 57 | 57 | ), |
| 58 | - 'types' => array ( |
|
| 59 | - '0' => array ('showitem' => '--div--;LLL:EXT:dlf/locallang.xml:tx_dlf_mail.tab1, label;;;;1-1-1, name;;;;2-2-2, mail;;;;2-2-2'), |
|
| 58 | + 'types' => array( |
|
| 59 | + '0' => array('showitem' => '--div--;LLL:EXT:dlf/locallang.xml:tx_dlf_mail.tab1, label;;;;1-1-1, name;;;;2-2-2, mail;;;;2-2-2'), |
|
| 60 | 60 | ), |
| 61 | - 'palettes' => array ( |
|
| 62 | - '1' => array ('showitem' => ''), |
|
| 61 | + 'palettes' => array( |
|
| 62 | + '1' => array('showitem' => ''), |
|
| 63 | 63 | ), |
| 64 | 64 | ); |
@@ -9,8 +9,8 @@ discard block |
||
| 9 | 9 | * LICENSE.txt file that was distributed with this source code. |
| 10 | 10 | */ |
| 11 | 11 | |
| 12 | -return array ( |
|
| 13 | - 'ctrl' => array ( |
|
| 12 | +return array( |
|
| 13 | + 'ctrl' => array( |
|
| 14 | 14 | 'title' => 'LLL:EXT:dlf/locallang.xml:tx_dlf_printer', |
| 15 | 15 | 'label' => 'label', |
| 16 | 16 | 'default_sortby' => 'ORDER BY label', |
@@ -20,25 +20,25 @@ discard block |
||
| 20 | 20 | 'dividers2tabs' => 2, |
| 21 | 21 | 'searchFields' => 'label,print', |
| 22 | 22 | ), |
| 23 | - 'interface' => array ( |
|
| 23 | + 'interface' => array( |
|
| 24 | 24 | 'showRecordFieldList' => 'label,name,address', |
| 25 | 25 | ), |
| 26 | - 'feInterface' => array ( |
|
| 26 | + 'feInterface' => array( |
|
| 27 | 27 | 'fe_admin_fieldList' => '', |
| 28 | 28 | ), |
| 29 | - 'columns' => array ( |
|
| 30 | - 'label' => array ( |
|
| 29 | + 'columns' => array( |
|
| 30 | + 'label' => array( |
|
| 31 | 31 | 'label' => 'LLL:EXT:dlf/locallang.xml:tx_dlf_printer.label', |
| 32 | - 'config' => array ( |
|
| 32 | + 'config' => array( |
|
| 33 | 33 | 'type' => 'input', |
| 34 | 34 | 'size' => 30, |
| 35 | 35 | 'max' => 255, |
| 36 | 36 | 'eval' => 'required,trim', |
| 37 | 37 | ), |
| 38 | 38 | ), |
| 39 | - 'print' => array ( |
|
| 39 | + 'print' => array( |
|
| 40 | 40 | 'label' => 'LLL:EXT:dlf/locallang.xml:tx_dlf_printer.printcommand', |
| 41 | - 'config' => array ( |
|
| 41 | + 'config' => array( |
|
| 42 | 42 | 'type' => 'input', |
| 43 | 43 | 'size' => 30, |
| 44 | 44 | 'max' => 255, |
@@ -46,10 +46,10 @@ discard block |
||
| 46 | 46 | ), |
| 47 | 47 | ), |
| 48 | 48 | ), |
| 49 | - 'types' => array ( |
|
| 50 | - '0' => array ('showitem' => '--div--;LLL:EXT:dlf/locallang.xml:tx_dlf_printer.tab1, label;;;;1-1-1, print;;;;2-2-2'), |
|
| 49 | + 'types' => array( |
|
| 50 | + '0' => array('showitem' => '--div--;LLL:EXT:dlf/locallang.xml:tx_dlf_printer.tab1, label;;;;1-1-1, print;;;;2-2-2'), |
|
| 51 | 51 | ), |
| 52 | - 'palettes' => array ( |
|
| 53 | - '1' => array ('showitem' => ''), |
|
| 52 | + 'palettes' => array( |
|
| 53 | + '1' => array('showitem' => ''), |
|
| 54 | 54 | ), |
| 55 | 55 | ); |
@@ -9,8 +9,8 @@ discard block |
||
| 9 | 9 | * LICENSE.txt file that was distributed with this source code. |
| 10 | 10 | */ |
| 11 | 11 | |
| 12 | -return array ( |
|
| 13 | - 'ctrl' => array ( |
|
| 12 | +return array( |
|
| 13 | + 'ctrl' => array( |
|
| 14 | 14 | 'title' => 'LLL:EXT:dlf/locallang.xml:tx_dlf_libraries', |
| 15 | 15 | 'label' => 'label', |
| 16 | 16 | 'tstamp' => 'tstamp', |
@@ -26,91 +26,91 @@ discard block |
||
| 26 | 26 | 'dividers2tabs' => 2, |
| 27 | 27 | 'searchFields' => 'label,website,contact', |
| 28 | 28 | ), |
| 29 | - 'feInterface' => array ( |
|
| 29 | + 'feInterface' => array( |
|
| 30 | 30 | 'fe_admin_fieldList' => '', |
| 31 | 31 | ), |
| 32 | - 'interface' => array ( |
|
| 32 | + 'interface' => array( |
|
| 33 | 33 | 'showRecordFieldList' => 'label,website,contact', |
| 34 | 34 | ), |
| 35 | - 'columns' => array ( |
|
| 36 | - 'sys_language_uid' => array ( |
|
| 35 | + 'columns' => array( |
|
| 36 | + 'sys_language_uid' => array( |
|
| 37 | 37 | 'exclude' => 1, |
| 38 | 38 | 'label' => 'LLL:EXT:lang/locallang_general.xml:LGL.language', |
| 39 | - 'config' => array ( |
|
| 39 | + 'config' => array( |
|
| 40 | 40 | 'type' => 'select', |
| 41 | 41 | 'renderType' => 'selectSingle', |
| 42 | 42 | 'foreign_table' => 'sys_language', |
| 43 | 43 | 'foreign_table_where' => 'ORDER BY sys_language.title', |
| 44 | - 'items' => array ( |
|
| 45 | - array ('LLL:EXT:lang/locallang_general.xml:LGL.allLanguages', -1), |
|
| 46 | - array ('LLL:EXT:lang/locallang_general.xml:LGL.default_value', 0), |
|
| 44 | + 'items' => array( |
|
| 45 | + array('LLL:EXT:lang/locallang_general.xml:LGL.allLanguages', -1), |
|
| 46 | + array('LLL:EXT:lang/locallang_general.xml:LGL.default_value', 0), |
|
| 47 | 47 | ), |
| 48 | 48 | 'default' => 0 |
| 49 | 49 | ), |
| 50 | 50 | ), |
| 51 | - 'l18n_parent' => array ( |
|
| 51 | + 'l18n_parent' => array( |
|
| 52 | 52 | 'displayCond' => 'FIELD:sys_language_uid:>:0', |
| 53 | 53 | 'exclude' => 1, |
| 54 | 54 | 'label' => 'LLL:EXT:lang/locallang_general.xml:LGL.l18n_parent', |
| 55 | - 'config' => array ( |
|
| 55 | + 'config' => array( |
|
| 56 | 56 | 'type' => 'select', |
| 57 | 57 | 'renderType' => 'selectSingle', |
| 58 | - 'items' => array ( |
|
| 59 | - array ('', 0), |
|
| 58 | + 'items' => array( |
|
| 59 | + array('', 0), |
|
| 60 | 60 | ), |
| 61 | 61 | 'foreign_table' => 'tx_dlf_libraries', |
| 62 | 62 | 'foreign_table_where' => 'AND tx_dlf_libraries.pid=###CURRENT_PID### AND tx_dlf_libraries.sys_language_uid IN (-1,0)', |
| 63 | 63 | ), |
| 64 | 64 | ), |
| 65 | - 'l18n_diffsource' => array ( |
|
| 66 | - 'config' => array ( |
|
| 65 | + 'l18n_diffsource' => array( |
|
| 66 | + 'config' => array( |
|
| 67 | 67 | 'type' => 'passthrough' |
| 68 | 68 | ), |
| 69 | 69 | ), |
| 70 | - 'label' => array ( |
|
| 70 | + 'label' => array( |
|
| 71 | 71 | 'exclude' => 1, |
| 72 | 72 | 'label' => 'LLL:EXT:dlf/locallang.xml:tx_dlf_libraries.label', |
| 73 | - 'config' => array ( |
|
| 73 | + 'config' => array( |
|
| 74 | 74 | 'type' => 'input', |
| 75 | 75 | 'size' => 30, |
| 76 | 76 | 'max' => 255, |
| 77 | 77 | 'eval' => 'required,trim', |
| 78 | 78 | ), |
| 79 | 79 | ), |
| 80 | - 'index_name' => array ( |
|
| 80 | + 'index_name' => array( |
|
| 81 | 81 | 'exclude' => 1, |
| 82 | 82 | 'label' => 'LLL:EXT:dlf/locallang.xml:tx_dlf_libraries.index_name', |
| 83 | - 'config' => array ( |
|
| 83 | + 'config' => array( |
|
| 84 | 84 | 'type' => 'none', |
| 85 | 85 | 'size' => 30, |
| 86 | 86 | 'max' => 255, |
| 87 | 87 | 'eval' => 'required,uniqueInPid', |
| 88 | 88 | ), |
| 89 | 89 | ), |
| 90 | - 'website' => array ( |
|
| 90 | + 'website' => array( |
|
| 91 | 91 | 'exclude' => 1, |
| 92 | 92 | 'label' => 'LLL:EXT:dlf/locallang.xml:tx_dlf_libraries.website', |
| 93 | - 'config' => array ( |
|
| 93 | + 'config' => array( |
|
| 94 | 94 | 'type' => 'input', |
| 95 | 95 | 'size' => 30, |
| 96 | 96 | 'max' => 255, |
| 97 | 97 | 'eval' => 'nospace', |
| 98 | 98 | ), |
| 99 | 99 | ), |
| 100 | - 'contact' => array ( |
|
| 100 | + 'contact' => array( |
|
| 101 | 101 | 'exclude' => 1, |
| 102 | 102 | 'label' => 'LLL:EXT:dlf/locallang.xml:tx_dlf_libraries.contact', |
| 103 | - 'config' => array ( |
|
| 103 | + 'config' => array( |
|
| 104 | 104 | 'type' => 'input', |
| 105 | 105 | 'size' => 30, |
| 106 | 106 | 'max' => 255, |
| 107 | 107 | 'eval' => 'nospace', |
| 108 | 108 | ), |
| 109 | 109 | ), |
| 110 | - 'image' => array ( |
|
| 110 | + 'image' => array( |
|
| 111 | 111 | 'exclude' => 1, |
| 112 | 112 | 'label' => 'LLL:EXT:dlf/locallang.xml:tx_dlf_libraries.image', |
| 113 | - 'config' => array ( |
|
| 113 | + 'config' => array( |
|
| 114 | 114 | 'type' => 'group', |
| 115 | 115 | 'internal_type' => 'file', |
| 116 | 116 | 'allowed' => $GLOBALS['TYPO3_CONF_VARS']['GFX']['imagefile_ext'], |
@@ -122,19 +122,19 @@ discard block |
||
| 122 | 122 | 'maxitems' => 1, |
| 123 | 123 | ), |
| 124 | 124 | ), |
| 125 | - 'oai_label' => array ( |
|
| 125 | + 'oai_label' => array( |
|
| 126 | 126 | 'exclude' => 1, |
| 127 | 127 | 'label' => 'LLL:EXT:dlf/locallang.xml:tx_dlf_libraries.oai_label', |
| 128 | - 'config' => array ( |
|
| 128 | + 'config' => array( |
|
| 129 | 129 | 'type' => 'input', |
| 130 | 130 | 'size' => 30, |
| 131 | 131 | 'max' => 255, |
| 132 | 132 | ), |
| 133 | 133 | ), |
| 134 | - 'oai_base' => array ( |
|
| 134 | + 'oai_base' => array( |
|
| 135 | 135 | 'exclude' => 1, |
| 136 | 136 | 'label' => 'LLL:EXT:dlf/locallang.xml:tx_dlf_libraries.oai_base', |
| 137 | - 'config' => array ( |
|
| 137 | + 'config' => array( |
|
| 138 | 138 | 'type' => 'group', |
| 139 | 139 | 'internal_type' => 'db', |
| 140 | 140 | 'allowed' => 'pages', |
@@ -143,38 +143,38 @@ discard block |
||
| 143 | 143 | 'maxitems' => 1, |
| 144 | 144 | ), |
| 145 | 145 | ), |
| 146 | - 'opac_label' => array ( |
|
| 146 | + 'opac_label' => array( |
|
| 147 | 147 | 'exclude' => 1, |
| 148 | 148 | 'label' => 'LLL:EXT:dlf/locallang.xml:tx_dlf_libraries.opac_label', |
| 149 | - 'config' => array ( |
|
| 149 | + 'config' => array( |
|
| 150 | 150 | 'type' => 'input', |
| 151 | 151 | 'size' => 30, |
| 152 | 152 | 'max' => 255, |
| 153 | 153 | ), |
| 154 | 154 | ), |
| 155 | - 'opac_base' => array ( |
|
| 155 | + 'opac_base' => array( |
|
| 156 | 156 | 'exclude' => 1, |
| 157 | 157 | 'label' => 'LLL:EXT:dlf/locallang.xml:tx_dlf_libraries.opac_base', |
| 158 | - 'config' => array ( |
|
| 158 | + 'config' => array( |
|
| 159 | 159 | 'type' => 'input', |
| 160 | 160 | 'size' => 30, |
| 161 | 161 | 'max' => 255, |
| 162 | 162 | 'eval' => 'nospace', |
| 163 | 163 | ), |
| 164 | 164 | ), |
| 165 | - 'union_label' => array ( |
|
| 165 | + 'union_label' => array( |
|
| 166 | 166 | 'exclude' => 1, |
| 167 | 167 | 'label' => 'LLL:EXT:dlf/locallang.xml:tx_dlf_libraries.union_label', |
| 168 | - 'config' => array ( |
|
| 168 | + 'config' => array( |
|
| 169 | 169 | 'type' => 'input', |
| 170 | 170 | 'size' => 30, |
| 171 | 171 | 'max' => 255, |
| 172 | 172 | ), |
| 173 | 173 | ), |
| 174 | - 'union_base' => array ( |
|
| 174 | + 'union_base' => array( |
|
| 175 | 175 | 'exclude' => 1, |
| 176 | 176 | 'label' => 'LLL:EXT:dlf/locallang.xml:tx_dlf_libraries.union_base', |
| 177 | - 'config' => array ( |
|
| 177 | + 'config' => array( |
|
| 178 | 178 | 'type' => 'input', |
| 179 | 179 | 'size' => 30, |
| 180 | 180 | 'max' => 255, |
@@ -182,13 +182,13 @@ discard block |
||
| 182 | 182 | ), |
| 183 | 183 | ), |
| 184 | 184 | ), |
| 185 | - 'types' => array ( |
|
| 186 | - '0' => array ('showitem' => '--div--;LLL:EXT:dlf/locallang.xml:tx_dlf_libraries.tab1, label,--palette--;;1;;1-1-1, website;;;;2-2-2, contact, image;;;;3-3-3, --div--;LLL:EXT:dlf/locallang.xml:tx_dlf_libraries.tab2, sys_language_uid;;;;1-1-1, l18n_parent, l18n_diffsource, --div--;LLL:EXT:dlf/locallang.xml:tx_dlf_libraries.tab3, oai_label,--palette--;;2;;1-1-1, opac_label,--palette--;;3;;2-2-2, union_label,--palette--;;4;;3-3-3'), |
|
| 185 | + 'types' => array( |
|
| 186 | + '0' => array('showitem' => '--div--;LLL:EXT:dlf/locallang.xml:tx_dlf_libraries.tab1, label,--palette--;;1;;1-1-1, website;;;;2-2-2, contact, image;;;;3-3-3, --div--;LLL:EXT:dlf/locallang.xml:tx_dlf_libraries.tab2, sys_language_uid;;;;1-1-1, l18n_parent, l18n_diffsource, --div--;LLL:EXT:dlf/locallang.xml:tx_dlf_libraries.tab3, oai_label,--palette--;;2;;1-1-1, opac_label,--palette--;;3;;2-2-2, union_label,--palette--;;4;;3-3-3'), |
|
| 187 | 187 | ), |
| 188 | - 'palettes' => array ( |
|
| 189 | - '1' => array ('showitem' => 'index_name', 'canNotCollapse' => 1), |
|
| 190 | - '2' => array ('showitem' => 'oai_base', 'canNotCollapse' => 1), |
|
| 191 | - '3' => array ('showitem' => 'opac_base', 'canNotCollapse' => 1), |
|
| 192 | - '4' => array ('showitem' => 'union_base', 'canNotCollapse' => 1), |
|
| 188 | + 'palettes' => array( |
|
| 189 | + '1' => array('showitem' => 'index_name', 'canNotCollapse' => 1), |
|
| 190 | + '2' => array('showitem' => 'oai_base', 'canNotCollapse' => 1), |
|
| 191 | + '3' => array('showitem' => 'opac_base', 'canNotCollapse' => 1), |
|
| 192 | + '4' => array('showitem' => 'union_base', 'canNotCollapse' => 1), |
|
| 193 | 193 | ), |
| 194 | 194 | ); |
@@ -9,8 +9,8 @@ discard block |
||
| 9 | 9 | * LICENSE.txt file that was distributed with this source code. |
| 10 | 10 | */ |
| 11 | 11 | |
| 12 | -return array ( |
|
| 13 | - 'ctrl' => array ( |
|
| 12 | +return array( |
|
| 13 | + 'ctrl' => array( |
|
| 14 | 14 | 'title' => 'LLL:EXT:dlf/locallang.xml:tx_dlf_metadata', |
| 15 | 15 | 'label' => 'label', |
| 16 | 16 | 'tstamp' => 'tstamp', |
@@ -21,7 +21,7 @@ discard block |
||
| 21 | 21 | 'transOrigDiffSourceField' => 'l18n_diffsource', |
| 22 | 22 | 'sortby' => 'sorting', |
| 23 | 23 | 'delete' => 'deleted', |
| 24 | - 'enablecolumns' => array ( |
|
| 24 | + 'enablecolumns' => array( |
|
| 25 | 25 | 'disabled' => 'hidden', |
| 26 | 26 | ), |
| 27 | 27 | 'iconfile' => 'EXT:dlf/res/icons/txdlfmetadata.png', |
@@ -29,89 +29,89 @@ discard block |
||
| 29 | 29 | 'dividers2tabs' => 2, |
| 30 | 30 | 'searchFields' => 'label,index_name', |
| 31 | 31 | ), |
| 32 | - 'feInterface' => array ( |
|
| 32 | + 'feInterface' => array( |
|
| 33 | 33 | 'fe_admin_fieldList' => '', |
| 34 | 34 | ), |
| 35 | - 'interface' => array ( |
|
| 35 | + 'interface' => array( |
|
| 36 | 36 | 'showRecordFieldList' => 'label,index_name,is_sortable,is_facet,is_listed,index_autocomplete', |
| 37 | 37 | ), |
| 38 | - 'columns' => array ( |
|
| 39 | - 'sys_language_uid' => array ( |
|
| 38 | + 'columns' => array( |
|
| 39 | + 'sys_language_uid' => array( |
|
| 40 | 40 | 'exclude' => 1, |
| 41 | 41 | 'label' => 'LLL:EXT:lang/locallang_general.xml:LGL.language', |
| 42 | - 'config' => array ( |
|
| 42 | + 'config' => array( |
|
| 43 | 43 | 'type' => 'select', |
| 44 | 44 | 'renderType' => 'selectSingle', |
| 45 | 45 | 'foreign_table' => 'sys_language', |
| 46 | 46 | 'foreign_table_where' => 'ORDER BY sys_language.title', |
| 47 | - 'items' => array ( |
|
| 48 | - array ('LLL:EXT:lang/locallang_general.xml:LGL.allLanguages', -1), |
|
| 49 | - array ('LLL:EXT:lang/locallang_general.xml:LGL.default_value', 0), |
|
| 47 | + 'items' => array( |
|
| 48 | + array('LLL:EXT:lang/locallang_general.xml:LGL.allLanguages', -1), |
|
| 49 | + array('LLL:EXT:lang/locallang_general.xml:LGL.default_value', 0), |
|
| 50 | 50 | ), |
| 51 | 51 | 'default' => 0 |
| 52 | 52 | ), |
| 53 | 53 | ), |
| 54 | - 'l18n_parent' => array ( |
|
| 54 | + 'l18n_parent' => array( |
|
| 55 | 55 | 'displayCond' => 'FIELD:sys_language_uid:>:0', |
| 56 | 56 | 'exclude' => 1, |
| 57 | 57 | 'label' => 'LLL:EXT:lang/locallang_general.xml:LGL.l18n_parent', |
| 58 | - 'config' => array ( |
|
| 58 | + 'config' => array( |
|
| 59 | 59 | 'type' => 'select', |
| 60 | 60 | 'renderType' => 'selectSingle', |
| 61 | - 'items' => array ( |
|
| 62 | - array ('', 0), |
|
| 61 | + 'items' => array( |
|
| 62 | + array('', 0), |
|
| 63 | 63 | ), |
| 64 | 64 | 'foreign_table' => 'tx_dlf_metadata', |
| 65 | 65 | 'foreign_table_where' => 'AND tx_dlf_metadata.pid=###CURRENT_PID### AND tx_dlf_metadata.sys_language_uid IN (-1,0) ORDER BY label ASC', |
| 66 | 66 | ), |
| 67 | 67 | ), |
| 68 | - 'l18n_diffsource' => array ( |
|
| 69 | - 'config' => array ( |
|
| 68 | + 'l18n_diffsource' => array( |
|
| 69 | + 'config' => array( |
|
| 70 | 70 | 'type' => 'passthrough' |
| 71 | 71 | ), |
| 72 | 72 | ), |
| 73 | - 'hidden' => array ( |
|
| 73 | + 'hidden' => array( |
|
| 74 | 74 | 'exclude' => 1, |
| 75 | 75 | 'label' => 'LLL:EXT:lang/locallang_general.xml:LGL.hidden', |
| 76 | - 'config' => array ( |
|
| 76 | + 'config' => array( |
|
| 77 | 77 | 'type' => 'check', |
| 78 | 78 | 'default' => 0, |
| 79 | 79 | ), |
| 80 | 80 | ), |
| 81 | - 'label' => array ( |
|
| 81 | + 'label' => array( |
|
| 82 | 82 | 'exclude' => 1, |
| 83 | 83 | 'label' => 'LLL:EXT:dlf/locallang.xml:tx_dlf_metadata.label', |
| 84 | - 'config' => array ( |
|
| 84 | + 'config' => array( |
|
| 85 | 85 | 'type' => 'input', |
| 86 | 86 | 'size' => 30, |
| 87 | 87 | 'max' => 255, |
| 88 | 88 | 'eval' => 'required,trim', |
| 89 | 89 | ), |
| 90 | 90 | ), |
| 91 | - 'index_name' => array ( |
|
| 91 | + 'index_name' => array( |
|
| 92 | 92 | 'exclude' => 1, |
| 93 | 93 | 'l10n_mode' => 'exclude', |
| 94 | 94 | 'label' => 'LLL:EXT:dlf/locallang.xml:tx_dlf_metadata.index_name', |
| 95 | - 'config' => array ( |
|
| 95 | + 'config' => array( |
|
| 96 | 96 | 'type' => 'input', |
| 97 | 97 | 'size' => 30, |
| 98 | 98 | 'max' => 255, |
| 99 | 99 | 'eval' => 'required,nospace,alphanum_x,uniqueInPid', |
| 100 | 100 | ), |
| 101 | 101 | ), |
| 102 | - 'format' => array ( |
|
| 102 | + 'format' => array( |
|
| 103 | 103 | 'exclude' => 1, |
| 104 | 104 | 'l10n_mode' => 'exclude', |
| 105 | 105 | 'label' => 'LLL:EXT:dlf/locallang.xml:tx_dlf_metadata.format', |
| 106 | - 'config' => array ( |
|
| 106 | + 'config' => array( |
|
| 107 | 107 | 'type' => 'inline', |
| 108 | 108 | 'foreign_table' => 'tx_dlf_metadataformat', |
| 109 | 109 | 'foreign_field' => 'parent_id', |
| 110 | 110 | 'foreign_unique' => 'encoded', |
| 111 | - 'appearance' => array ( |
|
| 111 | + 'appearance' => array( |
|
| 112 | 112 | 'expandSingle' => 1, |
| 113 | 113 | 'levelLinksPosition' => 'bottom', |
| 114 | - 'enabledControls' => array ( |
|
| 114 | + 'enabledControls' => array( |
|
| 115 | 115 | 'info' => 0, |
| 116 | 116 | 'new' => 1, |
| 117 | 117 | 'dragdrop' => 0, |
@@ -123,21 +123,21 @@ discard block |
||
| 123 | 123 | ), |
| 124 | 124 | ), |
| 125 | 125 | ), |
| 126 | - 'default_value' => array ( |
|
| 126 | + 'default_value' => array( |
|
| 127 | 127 | 'exclude' => 1, |
| 128 | 128 | 'label' => 'LLL:EXT:dlf/locallang.xml:tx_dlf_metadata.default_value', |
| 129 | - 'config' => array ( |
|
| 129 | + 'config' => array( |
|
| 130 | 130 | 'type' => 'input', |
| 131 | 131 | 'size' => 30, |
| 132 | 132 | 'max' => 255, |
| 133 | 133 | 'eval' => 'trim', |
| 134 | 134 | ), |
| 135 | 135 | ), |
| 136 | - 'wrap' => array ( |
|
| 136 | + 'wrap' => array( |
|
| 137 | 137 | 'exclude' => 1, |
| 138 | 138 | 'l10n_mode' => 'mergeIfNotBlank', |
| 139 | 139 | 'label' => 'LLL:EXT:dlf/locallang.xml:tx_dlf_metadata.wrap', |
| 140 | - 'config' => array ( |
|
| 140 | + 'config' => array( |
|
| 141 | 141 | 'type' => 'text', |
| 142 | 142 | 'cols' => 48, |
| 143 | 143 | 'rows' => 20, |
@@ -147,38 +147,38 @@ discard block |
||
| 147 | 147 | ), |
| 148 | 148 | 'defaultExtras' => 'nowrap:fixed-font:enable-tab', |
| 149 | 149 | ), |
| 150 | - 'index_tokenized' => array ( |
|
| 150 | + 'index_tokenized' => array( |
|
| 151 | 151 | 'exclude' => 1, |
| 152 | 152 | 'l10n_mode' => 'exclude', |
| 153 | 153 | 'label' => 'LLL:EXT:dlf/locallang.xml:tx_dlf_metadata.index_tokenized', |
| 154 | - 'config' => array ( |
|
| 154 | + 'config' => array( |
|
| 155 | 155 | 'type' => 'check', |
| 156 | 156 | 'default' => 0, |
| 157 | 157 | ), |
| 158 | 158 | ), |
| 159 | - 'index_stored' => array ( |
|
| 159 | + 'index_stored' => array( |
|
| 160 | 160 | 'exclude' => 1, |
| 161 | 161 | 'l10n_mode' => 'exclude', |
| 162 | 162 | 'label' => 'LLL:EXT:dlf/locallang.xml:tx_dlf_metadata.index_stored', |
| 163 | - 'config' => array ( |
|
| 163 | + 'config' => array( |
|
| 164 | 164 | 'type' => 'check', |
| 165 | 165 | 'default' => 0, |
| 166 | 166 | ), |
| 167 | 167 | ), |
| 168 | - 'index_indexed' => array ( |
|
| 168 | + 'index_indexed' => array( |
|
| 169 | 169 | 'exclude' => 1, |
| 170 | 170 | 'l10n_mode' => 'exclude', |
| 171 | 171 | 'label' => 'LLL:EXT:dlf/locallang.xml:tx_dlf_metadata.index_indexed', |
| 172 | - 'config' => array ( |
|
| 172 | + 'config' => array( |
|
| 173 | 173 | 'type' => 'check', |
| 174 | 174 | 'default' => 1, |
| 175 | 175 | ), |
| 176 | 176 | ), |
| 177 | - 'index_boost' => array ( |
|
| 177 | + 'index_boost' => array( |
|
| 178 | 178 | 'exclude' => 1, |
| 179 | 179 | 'l10n_mode' => 'exclude', |
| 180 | 180 | 'label' => 'LLL:EXT:dlf/locallang.xml:tx_dlf_metadata.index_boost', |
| 181 | - 'config' => array ( |
|
| 181 | + 'config' => array( |
|
| 182 | 182 | 'type' => 'input', |
| 183 | 183 | 'size' => 5, |
| 184 | 184 | 'max' => 5, |
@@ -186,51 +186,51 @@ discard block |
||
| 186 | 186 | 'eval' => 'double2', |
| 187 | 187 | ), |
| 188 | 188 | ), |
| 189 | - 'is_sortable' => array ( |
|
| 189 | + 'is_sortable' => array( |
|
| 190 | 190 | 'exclude' => 1, |
| 191 | 191 | 'l10n_mode' => 'exclude', |
| 192 | 192 | 'label' => 'LLL:EXT:dlf/locallang.xml:tx_dlf_metadata.is_sortable', |
| 193 | - 'config' => array ( |
|
| 193 | + 'config' => array( |
|
| 194 | 194 | 'type' => 'check', |
| 195 | 195 | 'default' => 0, |
| 196 | 196 | ), |
| 197 | 197 | ), |
| 198 | - 'is_facet' => array ( |
|
| 198 | + 'is_facet' => array( |
|
| 199 | 199 | 'exclude' => 1, |
| 200 | 200 | 'l10n_mode' => 'exclude', |
| 201 | 201 | 'label' => 'LLL:EXT:dlf/locallang.xml:tx_dlf_metadata.is_facet', |
| 202 | - 'config' => array ( |
|
| 202 | + 'config' => array( |
|
| 203 | 203 | 'type' => 'check', |
| 204 | 204 | 'default' => 0, |
| 205 | 205 | ), |
| 206 | 206 | ), |
| 207 | - 'is_listed' => array ( |
|
| 207 | + 'is_listed' => array( |
|
| 208 | 208 | 'exclude' => 1, |
| 209 | 209 | 'l10n_mode' => 'exclude', |
| 210 | 210 | 'label' => 'LLL:EXT:dlf/locallang.xml:tx_dlf_metadata.is_listed', |
| 211 | - 'config' => array ( |
|
| 211 | + 'config' => array( |
|
| 212 | 212 | 'type' => 'check', |
| 213 | 213 | 'default' => 0, |
| 214 | 214 | ), |
| 215 | 215 | ), |
| 216 | - 'index_autocomplete' => array ( |
|
| 216 | + 'index_autocomplete' => array( |
|
| 217 | 217 | 'exclude' => 1, |
| 218 | 218 | 'l10n_mode' => 'exclude', |
| 219 | 219 | 'label' => 'LLL:EXT:dlf/locallang.xml:tx_dlf_metadata.index_autocomplete', |
| 220 | - 'config' => array ( |
|
| 220 | + 'config' => array( |
|
| 221 | 221 | 'type' => 'check', |
| 222 | 222 | 'default' => 0, |
| 223 | 223 | ), |
| 224 | 224 | ), |
| 225 | - 'status' => array ( |
|
| 225 | + 'status' => array( |
|
| 226 | 226 | 'exclude' => 1, |
| 227 | 227 | 'l10n_mode' => 'exclude', |
| 228 | 228 | 'label' => 'LLL:EXT:dlf/locallang.xml:tx_dlf_metadata.status', |
| 229 | - 'config' => array ( |
|
| 229 | + 'config' => array( |
|
| 230 | 230 | 'type' => 'select', |
| 231 | 231 | 'renderType' => 'selectSingle', |
| 232 | - 'items' => array ( |
|
| 233 | - array ('LLL:EXT:dlf/locallang.xml:tx_dlf_metadata.status.default', 0), |
|
| 232 | + 'items' => array( |
|
| 233 | + array('LLL:EXT:dlf/locallang.xml:tx_dlf_metadata.status.default', 0), |
|
| 234 | 234 | ), |
| 235 | 235 | 'size' => 1, |
| 236 | 236 | 'minitems' => 1, |
@@ -239,10 +239,10 @@ discard block |
||
| 239 | 239 | ), |
| 240 | 240 | ), |
| 241 | 241 | ), |
| 242 | - 'types' => array ( |
|
| 243 | - '0' => array ('showitem' => '--div--;LLL:EXT:dlf/locallang.xml:tx_dlf_metadata.tab1, label,--palette--;;1;;1-1-1, format;;;;2-2-2, default_value;;;;3-3-3, wrap, --div--;LLL:EXT:dlf/locallang.xml:tx_dlf_metadata.tab2, sys_language_uid;;;;1-1-1, l18n_parent, l18n_diffsource, --div--;LLL:EXT:dlf/locallang.xml:tx_dlf_metadata.tab3, hidden;;;;1-1-1, status;;;;2-2-2'), |
|
| 242 | + 'types' => array( |
|
| 243 | + '0' => array('showitem' => '--div--;LLL:EXT:dlf/locallang.xml:tx_dlf_metadata.tab1, label,--palette--;;1;;1-1-1, format;;;;2-2-2, default_value;;;;3-3-3, wrap, --div--;LLL:EXT:dlf/locallang.xml:tx_dlf_metadata.tab2, sys_language_uid;;;;1-1-1, l18n_parent, l18n_diffsource, --div--;LLL:EXT:dlf/locallang.xml:tx_dlf_metadata.tab3, hidden;;;;1-1-1, status;;;;2-2-2'), |
|
| 244 | 244 | ), |
| 245 | - 'palettes' => array ( |
|
| 246 | - '1' => array ('showitem' => 'index_name, --linebreak--, index_tokenized, index_stored, index_indexed, index_boost, --linebreak--, is_sortable, is_facet, is_listed, index_autocomplete', 'canNotCollapse' => 1), |
|
| 245 | + 'palettes' => array( |
|
| 246 | + '1' => array('showitem' => 'index_name, --linebreak--, index_tokenized, index_stored, index_indexed, index_boost, --linebreak--, is_sortable, is_facet, is_listed, index_autocomplete', 'canNotCollapse' => 1), |
|
| 247 | 247 | ), |
| 248 | 248 | ); |