@@ -74,7 +74,7 @@ discard block |
||
| 74 | 74 | |
| 75 | 75 | // Load document with current plugin parameters. |
| 76 | 76 | $doc = $this->loadDocument($queryParams[$this->prefixId]); |
| 77 | - if ($doc === null) { |
|
| 77 | + if ($doc === NULL) { |
|
| 78 | 78 | return $type; |
| 79 | 79 | } |
| 80 | 80 | // Set PID for metadata definitions. |
@@ -85,7 +85,7 @@ discard block |
||
| 85 | 85 | // Calendar plugin does not support IIIF (yet). Abort for all newspaper related types. |
| 86 | 86 | if ( |
| 87 | 87 | $doc instanceof IiifManifest |
| 88 | - && array_search($metadata['type'][0], ['newspaper', 'ephemera', 'year', 'issue']) !== false |
|
| 88 | + && array_search($metadata['type'][0], ['newspaper', 'ephemera', 'year', 'issue']) !== FALSE |
|
| 89 | 89 | ) { |
| 90 | 90 | return $type; |
| 91 | 91 | } |
@@ -75,21 +75,21 @@ discard block |
||
| 75 | 75 | { |
| 76 | 76 | // We need to do some bootstrapping manually as of TYPO3 9. |
| 77 | 77 | // Load table configuration array into $GLOBALS['TCA']. |
| 78 | - ExtensionManagementUtility::loadBaseTca(false); |
|
| 78 | + ExtensionManagementUtility::loadBaseTca(FALSE); |
|
| 79 | 79 | // Get extension configuration from dlf/ext_localconf.php. |
| 80 | - ExtensionManagementUtility::loadExtLocalconf(false); |
|
| 80 | + ExtensionManagementUtility::loadExtLocalconf(FALSE); |
|
| 81 | 81 | // Initialize backend user into $GLOBALS['BE_USER']. |
| 82 | 82 | Bootstrap::initializeBackendUser(); |
| 83 | 83 | // Initialize backend and ensure authenticated access. |
| 84 | 84 | Bootstrap::initializeBackendAuthentication(); |
| 85 | 85 | |
| 86 | 86 | $nsDefined = [ |
| 87 | - 'MODS' => false, |
|
| 88 | - 'TEIHDR' => false, |
|
| 89 | - 'ALTO' => false, |
|
| 90 | - 'IIIF1' => false, |
|
| 91 | - 'IIIF2' => false, |
|
| 92 | - 'IIIF3' => false |
|
| 87 | + 'MODS' => FALSE, |
|
| 88 | + 'TEIHDR' => FALSE, |
|
| 89 | + 'ALTO' => FALSE, |
|
| 90 | + 'IIIF1' => FALSE, |
|
| 91 | + 'IIIF2' => FALSE, |
|
| 92 | + 'IIIF3' => FALSE |
|
| 93 | 93 | ]; |
| 94 | 94 | $queryBuilder = GeneralUtility::makeInstance(ConnectionPool::class) |
| 95 | 95 | ->getQueryBuilderForTable('tx_dlf_formats'); |
@@ -104,7 +104,7 @@ discard block |
||
| 104 | 104 | ->execute(); |
| 105 | 105 | |
| 106 | 106 | while ($resArray = $result->fetch()) { |
| 107 | - $nsDefined[$resArray['type']] = true; |
|
| 107 | + $nsDefined[$resArray['type']] = TRUE; |
|
| 108 | 108 | } |
| 109 | 109 | // Build data array. |
| 110 | 110 | $data = []; |
@@ -37,8 +37,8 @@ discard block |
||
| 37 | 37 | public $prefixId = 'tx_dlf'; |
| 38 | 38 | public $scriptRelPath = 'Classes/Common/AbstractPlugin.php'; |
| 39 | 39 | // Plugins are cached by default (@see setCache()). |
| 40 | - public $pi_USER_INT_obj = false; |
|
| 41 | - public $pi_checkCHash = true; |
|
| 40 | + public $pi_USER_INT_obj = FALSE; |
|
| 41 | + public $pi_checkCHash = TRUE; |
|
| 42 | 42 | |
| 43 | 43 | /** |
| 44 | 44 | * This holds the current document |
@@ -150,7 +150,7 @@ discard block |
||
| 150 | 150 | $this->doc = Document::getInstance($this->piVars['id'], $pid); |
| 151 | 151 | if (!$this->doc->ready) { |
| 152 | 152 | // Destroy the incomplete object. |
| 153 | - $this->doc = null; |
|
| 153 | + $this->doc = NULL; |
|
| 154 | 154 | $this->logger->error('Failed to load document with UID ' . $this->piVars['id']); |
| 155 | 155 | } else { |
| 156 | 156 | // Set configuration PID. |
@@ -229,14 +229,14 @@ discard block |
||
| 229 | 229 | * |
| 230 | 230 | * @return string The input string wrapped in <a> tags |
| 231 | 231 | */ |
| 232 | - public function pi_linkTP($str, $urlParameters = [], $cache = false, $altPageId = 0) |
|
| 232 | + public function pi_linkTP($str, $urlParameters = [], $cache = FALSE, $altPageId = 0) |
|
| 233 | 233 | { |
| 234 | 234 | $conf = []; |
| 235 | 235 | if (!$cache) { |
| 236 | - $conf['no_cache'] = true; |
|
| 236 | + $conf['no_cache'] = TRUE; |
|
| 237 | 237 | } |
| 238 | 238 | $conf['parameter'] = $altPageId ?: ($this->pi_tmpPageId ?: 'current'); |
| 239 | - $conf['additionalParams'] = $this->conf['parent.']['addParams'] . HttpUtility::buildQueryString($urlParameters, '&', true) . $this->pi_moreParams; |
|
| 239 | + $conf['additionalParams'] = $this->conf['parent.']['addParams'] . HttpUtility::buildQueryString($urlParameters, '&', TRUE) . $this->pi_moreParams; |
|
| 240 | 240 | // Add additional configuration for absolute URLs. |
| 241 | 241 | $conf['forceAbsoluteUrl'] = !empty($this->conf['forceAbsoluteUrl']) ? 1 : 0; |
| 242 | 242 | $conf['forceAbsoluteUrl.']['scheme'] = !empty($this->conf['forceAbsoluteUrl']) && !empty($this->conf['forceAbsoluteUrlHttps']) ? 'https' : 'http'; |
@@ -274,20 +274,20 @@ discard block |
||
| 274 | 274 | * |
| 275 | 275 | * @return void |
| 276 | 276 | */ |
| 277 | - protected function setCache($cache = true) |
|
| 277 | + protected function setCache($cache = TRUE) |
|
| 278 | 278 | { |
| 279 | 279 | if ($cache) { |
| 280 | 280 | // Set cObject type to "USER" (default). |
| 281 | - $this->pi_USER_INT_obj = false; |
|
| 282 | - $this->pi_checkCHash = true; |
|
| 281 | + $this->pi_USER_INT_obj = FALSE; |
|
| 282 | + $this->pi_checkCHash = TRUE; |
|
| 283 | 283 | if (count($this->piVars)) { |
| 284 | 284 | // Check cHash or disable caching. |
| 285 | 285 | $GLOBALS['TSFE']->reqCHash(); |
| 286 | 286 | } |
| 287 | 287 | } else { |
| 288 | 288 | // Set cObject type to "USER_INT". |
| 289 | - $this->pi_USER_INT_obj = true; |
|
| 290 | - $this->pi_checkCHash = false; |
|
| 289 | + $this->pi_USER_INT_obj = TRUE; |
|
| 290 | + $this->pi_checkCHash = FALSE; |
|
| 291 | 291 | // Plugins are of type "USER" by default, so convert it to "USER_INT". |
| 292 | 292 | $this->cObj->convertToUserIntObject(); |
| 293 | 293 | } |