We could not synchronize checks via GitHub's checks API since Scrutinizer's GitHub App is not installed for this repository.
@@ -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'] = !empty($entry['label']) ? $entry['label'] : $entry['orderlabel']; |
@@ -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 | |
@@ -134,7 +134,7 @@ discard block |
||
| 134 | 134 | } |
| 135 | 135 | |
| 136 | 136 | // Append "IFSUB" to "ITEM_STATE" if this entry has sub-entries. |
| 137 | - $entryArray['ITEM_STATE'] = ($entryArray['ITEM_STATE'] == 'NO' ? 'IFSUB' : $entryArray['ITEM_STATE'].'IFSUB'); |
|
| 137 | + $entryArray['ITEM_STATE'] = ($entryArray['ITEM_STATE'] == 'NO' ? 'IFSUB' : $entryArray['ITEM_STATE'] . 'IFSUB'); |
|
| 138 | 138 | |
| 139 | 139 | } |
| 140 | 140 | |
@@ -161,7 +161,7 @@ discard block |
||
| 161 | 161 | |
| 162 | 162 | if (TYPO3_DLOG) { |
| 163 | 163 | |
| 164 | - \TYPO3\CMS\Core\Utility\GeneralUtility::devLog('[tx_dlf_toc->main('.$content.', [data])] Incomplete plugin configuration', $this->extKey, SYSLOG_SEVERITY_WARNING, $conf); |
|
| 164 | + \TYPO3\CMS\Core\Utility\GeneralUtility::devLog('[tx_dlf_toc->main(' . $content . ', [data])] Incomplete plugin configuration', $this->extKey, SYSLOG_SEVERITY_WARNING, $conf); |
|
| 165 | 165 | |
| 166 | 166 | } |
| 167 | 167 | |
@@ -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)) { |
@@ -279,11 +279,11 @@ discard block |
||
| 279 | 279 | } |
| 280 | 280 | |
| 281 | 281 | // Get all child documents from database. |
| 282 | - $whereClause = 'tx_dlf_documents.partof='.intval($this->doc->uid).' AND tx_dlf_documents.structure=tx_dlf_structures.uid AND tx_dlf_structures.pid='.$this->doc->pid.tx_dlf_helper::whereClause('tx_dlf_documents').tx_dlf_helper::whereClause('tx_dlf_structures'); |
|
| 282 | + $whereClause = 'tx_dlf_documents.partof=' . intval($this->doc->uid) . ' AND tx_dlf_documents.structure=tx_dlf_structures.uid AND tx_dlf_structures.pid=' . $this->doc->pid . tx_dlf_helper::whereClause('tx_dlf_documents') . tx_dlf_helper::whereClause('tx_dlf_structures'); |
|
| 283 | 283 | |
| 284 | 284 | if ($this->conf['excludeOther']) { |
| 285 | 285 | |
| 286 | - $whereClause .= ' AND tx_dlf_documents.pid='.intval($this->conf['pages']); |
|
| 286 | + $whereClause .= ' AND tx_dlf_documents.pid=' . intval($this->conf['pages']); |
|
| 287 | 287 | |
| 288 | 288 | } |
| 289 | 289 | |
@@ -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'], |
@@ -62,7 +62,7 @@ discard block |
||
| 62 | 62 | $result = $GLOBALS['TYPO3_DB']->exec_SELECTquery( |
| 63 | 63 | 'tx_dlf_libraries.label AS label', |
| 64 | 64 | 'tx_dlf_libraries', |
| 65 | - 'tx_dlf_libraries.pid='.intval($this->conf['pages']).' AND tx_dlf_libraries.uid='.intval($this->conf['library']).tx_dlf_helper::whereClause('tx_dlf_libraries'), |
|
| 65 | + 'tx_dlf_libraries.pid=' . intval($this->conf['pages']) . ' AND tx_dlf_libraries.uid=' . intval($this->conf['library']) . tx_dlf_helper::whereClause('tx_dlf_libraries'), |
|
| 66 | 66 | '', |
| 67 | 67 | '', |
| 68 | 68 | '1' |
@@ -88,11 +88,11 @@ discard block |
||
| 88 | 88 | // Check for pre-selected collections. |
| 89 | 89 | if (!empty($this->piVars['collection'])) { |
| 90 | 90 | |
| 91 | - $additionalWhere = ' AND tx_dlf_collections.uid='.intval($this->piVars['collection']); |
|
| 91 | + $additionalWhere = ' AND tx_dlf_collections.uid=' . intval($this->piVars['collection']); |
|
| 92 | 92 | |
| 93 | 93 | } elseif (!empty($this->conf['collections'])) { |
| 94 | 94 | |
| 95 | - $additionalWhere = ' AND tx_dlf_collections.uid IN ('.$GLOBALS['TYPO3_DB']->cleanIntList($this->conf['collections']).')'; |
|
| 95 | + $additionalWhere = ' AND tx_dlf_collections.uid IN (' . $GLOBALS['TYPO3_DB']->cleanIntList($this->conf['collections']) . ')'; |
|
| 96 | 96 | |
| 97 | 97 | } |
| 98 | 98 | |
@@ -101,7 +101,7 @@ discard block |
||
| 101 | 101 | 'tx_dlf_documents', |
| 102 | 102 | 'tx_dlf_relations', |
| 103 | 103 | 'tx_dlf_collections', |
| 104 | - 'AND tx_dlf_documents.pid='.intval($this->conf['pages']).' AND tx_dlf_relations.ident='.$GLOBALS['TYPO3_DB']->fullQuoteStr('docs_colls', 'tx_dlf_relations').' AND tx_dlf_collections.pid='.intval($this->conf['pages']).$additionalWhere.tx_dlf_helper::whereClause('tx_dlf_documents').tx_dlf_helper::whereClause('tx_dlf_collections'), |
|
| 104 | + 'AND tx_dlf_documents.pid=' . intval($this->conf['pages']) . ' AND tx_dlf_relations.ident=' . $GLOBALS['TYPO3_DB']->fullQuoteStr('docs_colls', 'tx_dlf_relations') . ' AND tx_dlf_collections.pid=' . intval($this->conf['pages']) . $additionalWhere . tx_dlf_helper::whereClause('tx_dlf_documents') . tx_dlf_helper::whereClause('tx_dlf_collections'), |
|
| 105 | 105 | 'tx_dlf_documents.uid', |
| 106 | 106 | 'tx_dlf_documents.tstamp DESC', |
| 107 | 107 | intval($this->conf['limit']) |
@@ -123,7 +123,7 @@ discard block |
||
| 123 | 123 | |
| 124 | 124 | if (!empty($superiorTitle)) { |
| 125 | 125 | |
| 126 | - $title .= '['.$superiorTitle.']'; |
|
| 126 | + $title .= '[' . $superiorTitle . ']'; |
|
| 127 | 127 | |
| 128 | 128 | } |
| 129 | 129 | |
@@ -132,7 +132,7 @@ discard block |
||
| 132 | 132 | // Get title of document. |
| 133 | 133 | if (!empty($resArray['title'])) { |
| 134 | 134 | |
| 135 | - $title .= ' '.$resArray['title']; |
|
| 135 | + $title .= ' ' . $resArray['title']; |
|
| 136 | 136 | |
| 137 | 137 | } |
| 138 | 138 | |
@@ -146,28 +146,28 @@ discard block |
||
| 146 | 146 | // Append volume information. |
| 147 | 147 | if (!empty($resArray['volume'])) { |
| 148 | 148 | |
| 149 | - $title .= ', '.$this->pi_getLL('volume').' '.$resArray['volume']; |
|
| 149 | + $title .= ', ' . $this->pi_getLL('volume') . ' ' . $resArray['volume']; |
|
| 150 | 150 | |
| 151 | 151 | } |
| 152 | 152 | |
| 153 | 153 | // Is this document new or updated? |
| 154 | 154 | if ($resArray['crdate'] == $resArray['tstamp']) { |
| 155 | 155 | |
| 156 | - $title = $this->pi_getLL('new').' '.trim($title); |
|
| 156 | + $title = $this->pi_getLL('new') . ' ' . trim($title); |
|
| 157 | 157 | |
| 158 | 158 | } else { |
| 159 | 159 | |
| 160 | - $title = $this->pi_getLL('update').' '.trim($title); |
|
| 160 | + $title = $this->pi_getLL('update') . ' ' . trim($title); |
|
| 161 | 161 | |
| 162 | 162 | } |
| 163 | 163 | |
| 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'))); |
@@ -208,13 +208,13 @@ discard block |
||
| 208 | 208 | |
| 209 | 209 | header('Cache-Control: no-cache'); |
| 210 | 210 | |
| 211 | - header('Content-Length: '.strlen($content)); |
|
| 211 | + header('Content-Length: ' . strlen($content)); |
|
| 212 | 212 | |
| 213 | 213 | header('Content-Type: application/rss+xml; charset=utf-8'); |
| 214 | 214 | |
| 215 | - header('Date: '.date('r', $GLOBALS['EXEC_TIME'])); |
|
| 215 | + header('Date: ' . date('r', $GLOBALS['EXEC_TIME'])); |
|
| 216 | 216 | |
| 217 | - header('Expires: '.date('r', $GLOBALS['EXEC_TIME'])); |
|
| 217 | + header('Expires: ' . date('r', $GLOBALS['EXEC_TIME'])); |
|
| 218 | 218 | |
| 219 | 219 | echo $content; |
| 220 | 220 | |
@@ -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'])); |
@@ -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 | ); |