We could not synchronize checks via GitHub's checks API since Scrutinizer's GitHub App is not installed for this repository.
@@ -18,7 +18,8 @@ |
||
| 18 | 18 | * @access public |
| 19 | 19 | * @abstract |
| 20 | 20 | */ |
| 21 | -interface tx_dlf_format { |
|
| 21 | +interface tx_dlf_format |
|
| 22 | +{ |
|
| 22 | 23 | |
| 23 | 24 | /** |
| 24 | 25 | * This extracts metadata from XML |
@@ -17,7 +17,8 @@ discard block |
||
| 17 | 17 | * @subpackage tx_dlf |
| 18 | 18 | * @access public |
| 19 | 19 | */ |
| 20 | -class tx_dlf_indexing { |
|
| 20 | +class tx_dlf_indexing |
|
| 21 | +{ |
|
| 21 | 22 | |
| 22 | 23 | /** |
| 23 | 24 | * The extension key |
@@ -79,7 +80,8 @@ discard block |
||
| 79 | 80 | * |
| 80 | 81 | * @return integer 0 on success or 1 on failure |
| 81 | 82 | */ |
| 82 | - public static function add(tx_dlf_document &$doc, $core = 0) { |
|
| 83 | + public static function add(tx_dlf_document &$doc, $core = 0) |
|
| 84 | + { |
|
| 83 | 85 | |
| 84 | 86 | if (in_array($doc->uid, self::$processedDocs)) { |
| 85 | 87 | |
@@ -266,7 +268,8 @@ discard block |
||
| 266 | 268 | * |
| 267 | 269 | * @return integer 0 on success or 1 on failure |
| 268 | 270 | */ |
| 269 | - public static function delete($uid) { |
|
| 271 | + public static function delete($uid) |
|
| 272 | + { |
|
| 270 | 273 | |
| 271 | 274 | // Save parameter for logging purposes. |
| 272 | 275 | $_uid = $uid; |
@@ -391,7 +394,8 @@ discard block |
||
| 391 | 394 | * |
| 392 | 395 | * @return string The field's dynamic index name |
| 393 | 396 | */ |
| 394 | - public static function getIndexFieldName($index_name, $pid = 0) { |
|
| 397 | + public static function getIndexFieldName($index_name, $pid = 0) |
|
| 398 | + { |
|
| 395 | 399 | |
| 396 | 400 | // Save parameter for logging purposes. |
| 397 | 401 | $_pid = $pid; |
@@ -436,7 +440,8 @@ discard block |
||
| 436 | 440 | * |
| 437 | 441 | * @return void |
| 438 | 442 | */ |
| 439 | - protected static function loadIndexConf($pid) { |
|
| 443 | + protected static function loadIndexConf($pid) |
|
| 444 | + { |
|
| 440 | 445 | |
| 441 | 446 | if (!self::$fieldsLoaded) { |
| 442 | 447 | |
@@ -516,7 +521,8 @@ discard block |
||
| 516 | 521 | * |
| 517 | 522 | * @return integer 0 on success or 1 on failure |
| 518 | 523 | */ |
| 519 | - protected static function processLogical(tx_dlf_document &$doc, array $logicalUnit) { |
|
| 524 | + protected static function processLogical(tx_dlf_document &$doc, array $logicalUnit) |
|
| 525 | + { |
|
| 520 | 526 | |
| 521 | 527 | $errors = 0; |
| 522 | 528 | |
@@ -695,7 +701,8 @@ discard block |
||
| 695 | 701 | * |
| 696 | 702 | * @return integer 0 on success or 1 on failure |
| 697 | 703 | */ |
| 698 | - protected static function processPhysical(tx_dlf_document &$doc, $page, array $physicalUnit) { |
|
| 704 | + protected static function processPhysical(tx_dlf_document &$doc, $page, array $physicalUnit) |
|
| 705 | + { |
|
| 699 | 706 | |
| 700 | 707 | $errors = 0; |
| 701 | 708 | |
@@ -841,7 +848,8 @@ discard block |
||
| 841 | 848 | * |
| 842 | 849 | * @return boolean TRUE on success or FALSE on failure |
| 843 | 850 | */ |
| 844 | - protected static function solrConnect($core, $pid = 0) { |
|
| 851 | + protected static function solrConnect($core, $pid = 0) |
|
| 852 | + { |
|
| 845 | 853 | |
| 846 | 854 | // Get Solr instance. |
| 847 | 855 | if (!self::$solr) { |
@@ -873,6 +881,8 @@ discard block |
||
| 873 | 881 | * |
| 874 | 882 | * @access private |
| 875 | 883 | */ |
| 876 | - private function __construct() {} |
|
| 884 | + private function __construct() |
|
| 885 | + { |
|
| 886 | +} |
|
| 877 | 887 | |
| 878 | 888 | } |
@@ -17,7 +17,8 @@ discard block |
||
| 17 | 17 | * @subpackage tx_dlf |
| 18 | 18 | * @access public |
| 19 | 19 | */ |
| 20 | -class tx_dlf_modIndexing extends tx_dlf_module { |
|
| 20 | +class tx_dlf_modIndexing extends tx_dlf_module |
|
| 21 | +{ |
|
| 21 | 22 | |
| 22 | 23 | protected $modPath = 'indexing/'; |
| 23 | 24 | |
@@ -46,7 +47,8 @@ discard block |
||
| 46 | 47 | * |
| 47 | 48 | * @return string The HTML output |
| 48 | 49 | */ |
| 49 | - protected function getCollList() { |
|
| 50 | + protected function getCollList() |
|
| 51 | + { |
|
| 50 | 52 | |
| 51 | 53 | // Get all available Solr cores. |
| 52 | 54 | $_cores = $GLOBALS['TYPO3_DB']->exec_SELECTquery( |
@@ -110,7 +112,8 @@ discard block |
||
| 110 | 112 | * |
| 111 | 113 | * @return string The HTML output |
| 112 | 114 | */ |
| 113 | - protected function getFileForm() { |
|
| 115 | + protected function getFileForm() |
|
| 116 | + { |
|
| 114 | 117 | |
| 115 | 118 | // Get all available Solr cores. |
| 116 | 119 | $_cores = $GLOBALS['TYPO3_DB']->exec_SELECTquery( |
@@ -154,7 +157,8 @@ discard block |
||
| 154 | 157 | * |
| 155 | 158 | * @return void |
| 156 | 159 | */ |
| 157 | - protected function indexLoop() { |
|
| 160 | + protected function indexLoop() |
|
| 161 | + { |
|
| 158 | 162 | |
| 159 | 163 | // Get document from list. |
| 160 | 164 | list ($uid,) = $this->list->remove(0); |
@@ -195,7 +199,8 @@ discard block |
||
| 195 | 199 | * |
| 196 | 200 | * @return void |
| 197 | 201 | */ |
| 198 | - public function main() { |
|
| 202 | + public function main() |
|
| 203 | + { |
|
| 199 | 204 | |
| 200 | 205 | // Is the user allowed to access this page? |
| 201 | 206 | $access = is_array($this->pageInfo) || $GLOBALS['BE_USER']->isAdmin(); |
@@ -364,7 +369,8 @@ discard block |
||
| 364 | 369 | * |
| 365 | 370 | * @return void |
| 366 | 371 | */ |
| 367 | - protected function setMOD_MENU() { |
|
| 372 | + protected function setMOD_MENU() |
|
| 373 | + { |
|
| 368 | 374 | |
| 369 | 375 | $this->MOD_MENU = array ( |
| 370 | 376 | 'function' => array ( |
@@ -17,7 +17,8 @@ discard block |
||
| 17 | 17 | * @subpackage tx_dlf |
| 18 | 18 | * @access public |
| 19 | 19 | */ |
| 20 | -class tx_dlf_modNewclient extends tx_dlf_module { |
|
| 20 | +class tx_dlf_modNewclient extends tx_dlf_module |
|
| 21 | +{ |
|
| 21 | 22 | |
| 22 | 23 | protected $modPath = 'newclient/'; |
| 23 | 24 | |
@@ -38,7 +39,8 @@ discard block |
||
| 38 | 39 | * |
| 39 | 40 | * @return void |
| 40 | 41 | */ |
| 41 | - protected function cmdAddAccessRights() { |
|
| 42 | + protected function cmdAddAccessRights() |
|
| 43 | + { |
|
| 42 | 44 | |
| 43 | 45 | // Get command line indexer's usergroup. |
| 44 | 46 | $result = $GLOBALS['TYPO3_DB']->exec_SELECTquery( |
@@ -82,7 +84,8 @@ discard block |
||
| 82 | 84 | * |
| 83 | 85 | * @return void |
| 84 | 86 | */ |
| 85 | - protected function cmdAddMetadata() { |
|
| 87 | + protected function cmdAddMetadata() |
|
| 88 | + { |
|
| 86 | 89 | |
| 87 | 90 | // Include metadata definition file. |
| 88 | 91 | include_once(\TYPO3\CMS\Core\Utility\ExtensionManagementUtility::extPath($this->extKey).'modules/'.$this->modPath.'metadata.inc.php'); |
@@ -165,7 +168,8 @@ discard block |
||
| 165 | 168 | * |
| 166 | 169 | * @return void |
| 167 | 170 | */ |
| 168 | - protected function cmdAddSolrCore() { |
|
| 171 | + protected function cmdAddSolrCore() |
|
| 172 | + { |
|
| 169 | 173 | |
| 170 | 174 | // Build data array. |
| 171 | 175 | $data['tx_dlf_solrcores'][uniqid('NEW')] = array ( |
@@ -212,7 +216,8 @@ discard block |
||
| 212 | 216 | * |
| 213 | 217 | * @return void |
| 214 | 218 | */ |
| 215 | - protected function cmdAddStructure() { |
|
| 219 | + protected function cmdAddStructure() |
|
| 220 | + { |
|
| 216 | 221 | |
| 217 | 222 | // Include structure definition file. |
| 218 | 223 | include_once(\TYPO3\CMS\Core\Utility\ExtensionManagementUtility::extPath($this->extKey).'modules/'.$this->modPath.'structures.inc.php'); |
@@ -269,7 +274,8 @@ discard block |
||
| 269 | 274 | * |
| 270 | 275 | * @return void |
| 271 | 276 | */ |
| 272 | - public function main() { |
|
| 277 | + public function main() |
|
| 278 | + { |
|
| 273 | 279 | |
| 274 | 280 | // Is the user allowed to access this page? |
| 275 | 281 | $access = is_array($this->pageInfo) && $GLOBALS['BE_USER']->isAdmin(); |
@@ -17,7 +17,8 @@ discard block |
||
| 17 | 17 | * @subpackage tx_dlf |
| 18 | 18 | * @access public |
| 19 | 19 | */ |
| 20 | -class tx_dlf_basket extends tx_dlf_plugin { |
|
| 20 | +class tx_dlf_basket extends tx_dlf_plugin |
|
| 21 | +{ |
|
| 21 | 22 | |
| 22 | 23 | public $scriptRelPath = 'plugins/basket/class.tx_dlf_basket.php'; |
| 23 | 24 | |
@@ -31,7 +32,8 @@ discard block |
||
| 31 | 32 | * |
| 32 | 33 | * @return string The content that is displayed on the website |
| 33 | 34 | */ |
| 34 | - public function main($content, $conf) { |
|
| 35 | + public function main($content, $conf) |
|
| 36 | + { |
|
| 35 | 37 | |
| 36 | 38 | $this->init($conf); |
| 37 | 39 | |
@@ -315,7 +317,8 @@ discard block |
||
| 315 | 317 | * @param array $template Template information |
| 316 | 318 | * @return string |
| 317 | 319 | */ |
| 318 | - public function getEntry($data, $template) { |
|
| 320 | + public function getEntry($data, $template) |
|
| 321 | + { |
|
| 319 | 322 | |
| 320 | 323 | if (is_object($data)) { |
| 321 | 324 | |
@@ -392,7 +395,8 @@ discard block |
||
| 392 | 395 | * @param array $_piVars piVars |
| 393 | 396 | * @param array $basketData basket data |
| 394 | 397 | */ |
| 395 | - public function addToBasket($_piVars, $basketData) { |
|
| 398 | + public function addToBasket($_piVars, $basketData) |
|
| 399 | + { |
|
| 396 | 400 | |
| 397 | 401 | $output = ''; |
| 398 | 402 | |
@@ -535,7 +539,8 @@ discard block |
||
| 535 | 539 | * @param array $basketData array with document information |
| 536 | 540 | * @return array basket data |
| 537 | 541 | */ |
| 538 | - public function removeFromBasket($_piVars, $basketData) { |
|
| 542 | + public function removeFromBasket($_piVars, $basketData) |
|
| 543 | + { |
|
| 539 | 544 | |
| 540 | 545 | if (!empty($basketData['doc_ids'])) { |
| 541 | 546 | |
@@ -597,7 +602,8 @@ discard block |
||
| 597 | 602 | * @param array $basketData array with document information |
| 598 | 603 | * @return array basket data |
| 599 | 604 | */ |
| 600 | - public function openFromBasket($_piVars, $basketData) { |
|
| 605 | + public function openFromBasket($_piVars, $basketData) |
|
| 606 | + { |
|
| 601 | 607 | |
| 602 | 608 | $pdfUrl = $this->conf['pdfgenerate']; |
| 603 | 609 | |
@@ -626,7 +632,8 @@ discard block |
||
| 626 | 632 | * @param integer $id Document id |
| 627 | 633 | * @return mixed download url or false |
| 628 | 634 | */ |
| 629 | - public function getDocumentData($id, $data) { |
|
| 635 | + public function getDocumentData($id, $data) |
|
| 636 | + { |
|
| 630 | 637 | |
| 631 | 638 | // get document instance to load further information |
| 632 | 639 | $document = tx_dlf_document::getInstance($id, 0); |
@@ -721,7 +728,8 @@ discard block |
||
| 721 | 728 | /** |
| 722 | 729 | * Send mail with pdf download url |
| 723 | 730 | */ |
| 724 | - public function sendMail() { |
|
| 731 | + public function sendMail() |
|
| 732 | + { |
|
| 725 | 733 | |
| 726 | 734 | // send mail |
| 727 | 735 | $mailId = $this->piVars['mail_action']; |
@@ -847,7 +855,8 @@ discard block |
||
| 847 | 855 | /** |
| 848 | 856 | * Sends document information to an external printer (url) |
| 849 | 857 | */ |
| 850 | - public function printDocument() { |
|
| 858 | + public function printDocument() |
|
| 859 | + { |
|
| 851 | 860 | |
| 852 | 861 | $pdfUrl = $this->conf['pdfprint']; |
| 853 | 862 | |
@@ -17,7 +17,8 @@ discard block |
||
| 17 | 17 | * @subpackage tx_dlf |
| 18 | 18 | * @access public |
| 19 | 19 | */ |
| 20 | -class tx_dlf_oai extends tx_dlf_plugin { |
|
| 20 | +class tx_dlf_oai extends tx_dlf_plugin |
|
| 21 | +{ |
|
| 21 | 22 | |
| 22 | 23 | public $scriptRelPath = 'plugins/oai/class.tx_dlf_oai.php'; |
| 23 | 24 | |
@@ -68,7 +69,8 @@ discard block |
||
| 68 | 69 | * |
| 69 | 70 | * @return void |
| 70 | 71 | */ |
| 71 | - protected function deleteExpiredTokens() { |
|
| 72 | + protected function deleteExpiredTokens() |
|
| 73 | + { |
|
| 72 | 74 | |
| 73 | 75 | // Delete expired resumption tokens. |
| 74 | 76 | $result = $GLOBALS['TYPO3_DB']->exec_DELETEquery( |
@@ -91,7 +93,8 @@ discard block |
||
| 91 | 93 | * |
| 92 | 94 | * @return DOMElement XML node to add to the OAI response |
| 93 | 95 | */ |
| 94 | - protected function error($type) { |
|
| 96 | + protected function error($type) |
|
| 97 | + { |
|
| 95 | 98 | $this->error = TRUE; |
| 96 | 99 | |
| 97 | 100 | $error = $this->oai->createElementNS('http://www.openarchives.org/OAI/2.0/', 'error', htmlspecialchars($this->pi_getLL($type, $type, FALSE), ENT_NOQUOTES, 'UTF-8')); |
@@ -107,7 +110,8 @@ discard block |
||
| 107 | 110 | * |
| 108 | 111 | * @return void |
| 109 | 112 | */ |
| 110 | - protected function getUrlParams() { |
|
| 113 | + protected function getUrlParams() |
|
| 114 | + { |
|
| 111 | 115 | |
| 112 | 116 | $allowedParams = array ( |
| 113 | 117 | 'verb', |
@@ -140,7 +144,8 @@ discard block |
||
| 140 | 144 | * |
| 141 | 145 | * @return DOMElement XML node to add to the OAI response |
| 142 | 146 | */ |
| 143 | - protected function getDcData(array $metadata) { |
|
| 147 | + protected function getDcData(array $metadata) |
|
| 148 | + { |
|
| 144 | 149 | |
| 145 | 150 | $oai_dc = $this->oai->createElementNS($this->formats['oai_dc']['namespace'], 'oai_dc:dc'); |
| 146 | 151 | |
@@ -207,7 +212,8 @@ discard block |
||
| 207 | 212 | * |
| 208 | 213 | * @return DOMElement XML node to add to the OAI response |
| 209 | 214 | */ |
| 210 | - protected function getEpicurData(array $metadata) { |
|
| 215 | + protected function getEpicurData(array $metadata) |
|
| 216 | + { |
|
| 211 | 217 | |
| 212 | 218 | // Define all XML elements with or without qualified namespace. |
| 213 | 219 | if (empty($this->conf['unqualified_epicur'])) { |
@@ -306,7 +312,8 @@ discard block |
||
| 306 | 312 | * |
| 307 | 313 | * @return DOMElement XML node to add to the OAI response |
| 308 | 314 | */ |
| 309 | - protected function getMetsData(array $metadata) { |
|
| 315 | + protected function getMetsData(array $metadata) |
|
| 316 | + { |
|
| 310 | 317 | |
| 311 | 318 | $mets = NULL; |
| 312 | 319 | |
@@ -344,7 +351,8 @@ discard block |
||
| 344 | 351 | * |
| 345 | 352 | * @return void |
| 346 | 353 | */ |
| 347 | - public function main($content, $conf) { |
|
| 354 | + public function main($content, $conf) |
|
| 355 | + { |
|
| 348 | 356 | |
| 349 | 357 | // Initialize plugin. |
| 350 | 358 | $this->init($conf); |
@@ -468,7 +476,8 @@ discard block |
||
| 468 | 476 | * |
| 469 | 477 | * @return string Substitution for subpart "###RESPONSE###" |
| 470 | 478 | */ |
| 471 | - protected function resume() { |
|
| 479 | + protected function resume() |
|
| 480 | + { |
|
| 472 | 481 | // Get resumption token. |
| 473 | 482 | $result = $GLOBALS['TYPO3_DB']->exec_SELECTquery( |
| 474 | 483 | 'tx_dlf_tokens.options AS options', |
@@ -499,7 +508,8 @@ discard block |
||
| 499 | 508 | * |
| 500 | 509 | * @return string Substitution for subpart "###RESPONSE###" |
| 501 | 510 | */ |
| 502 | - protected function verbGetRecord() { |
|
| 511 | + protected function verbGetRecord() |
|
| 512 | + { |
|
| 503 | 513 | |
| 504 | 514 | if (count($this->piVars) != 3 || empty($this->piVars['metadataPrefix']) || empty($this->piVars['identifier'])) { |
| 505 | 515 | return $this->error('badArgument'); |
@@ -592,7 +602,8 @@ discard block |
||
| 592 | 602 | * |
| 593 | 603 | * @return DOMElement XML node to add to the OAI response |
| 594 | 604 | */ |
| 595 | - protected function verbIdentify() { |
|
| 605 | + protected function verbIdentify() |
|
| 606 | + { |
|
| 596 | 607 | |
| 597 | 608 | // Check for invalid arguments. |
| 598 | 609 | if (count($this->piVars) > 1) { |
@@ -670,7 +681,8 @@ discard block |
||
| 670 | 681 | * |
| 671 | 682 | * @return string Substitution for subpart "###RESPONSE###" |
| 672 | 683 | */ |
| 673 | - protected function verbListIdentifiers() { |
|
| 684 | + protected function verbListIdentifiers() |
|
| 685 | + { |
|
| 674 | 686 | |
| 675 | 687 | // If we have a resumption token we can continue our work |
| 676 | 688 | if (!empty($this->piVars['resumptionToken'])) { |
@@ -717,7 +729,8 @@ discard block |
||
| 717 | 729 | * |
| 718 | 730 | * @return DOMElement XML node to add to the OAI response |
| 719 | 731 | */ |
| 720 | - protected function verbListMetadataFormats() { |
|
| 732 | + protected function verbListMetadataFormats() |
|
| 733 | + { |
|
| 721 | 734 | |
| 722 | 735 | $resArray = array (); |
| 723 | 736 | |
@@ -777,7 +790,8 @@ discard block |
||
| 777 | 790 | * |
| 778 | 791 | * @return string Substitution for subpart "###RESPONSE###" |
| 779 | 792 | */ |
| 780 | - protected function verbListRecords() { |
|
| 793 | + protected function verbListRecords() |
|
| 794 | + { |
|
| 781 | 795 | |
| 782 | 796 | // Check for invalid arguments. |
| 783 | 797 | if (!empty($this->piVars['resumptionToken'])) { |
@@ -825,7 +839,8 @@ discard block |
||
| 825 | 839 | * |
| 826 | 840 | * @return string Substitution for subpart "###RESPONSE###" |
| 827 | 841 | */ |
| 828 | - protected function verbListSets() { |
|
| 842 | + protected function verbListSets() |
|
| 843 | + { |
|
| 829 | 844 | |
| 830 | 845 | // Check for invalid arguments. |
| 831 | 846 | if (count($this->piVars) > 1) { |
@@ -876,7 +891,8 @@ discard block |
||
| 876 | 891 | * @return array |
| 877 | 892 | * @throws Exception |
| 878 | 893 | */ |
| 879 | - private function fetchDocumentUIDs() { |
|
| 894 | + private function fetchDocumentUIDs() |
|
| 895 | + { |
|
| 880 | 896 | $solr_query = ''; |
| 881 | 897 | |
| 882 | 898 | if (!$this->conf['show_userdefined']) { |
@@ -1006,7 +1022,8 @@ discard block |
||
| 1006 | 1022 | * @param tx_dlf_list $documentListSet |
| 1007 | 1023 | * @return DOMElement |
| 1008 | 1024 | */ |
| 1009 | - private function generateOutputForDocumentList($documentListSet) { |
|
| 1025 | + private function generateOutputForDocumentList($documentListSet) |
|
| 1026 | + { |
|
| 1010 | 1027 | |
| 1011 | 1028 | $documentsToProcess = $documentListSet->removeRange(0, intval($this->conf['limit'])); |
| 1012 | 1029 | $verb = $this->piVars['verb']; |
@@ -1101,7 +1118,8 @@ discard block |
||
| 1101 | 1118 | * @param tx_dlf_list $documentListSet |
| 1102 | 1119 | * @return DOMElement |
| 1103 | 1120 | */ |
| 1104 | - private function generateResumptionTokenForDocumentListSet($documentListSet) { |
|
| 1121 | + private function generateResumptionTokenForDocumentListSet($documentListSet) |
|
| 1122 | + { |
|
| 1105 | 1123 | |
| 1106 | 1124 | if ($documentListSet->count() != 0) { |
| 1107 | 1125 | |
@@ -1137,7 +1155,8 @@ discard block |
||
| 1137 | 1155 | return $resumptionToken; |
| 1138 | 1156 | } |
| 1139 | 1157 | |
| 1140 | - private function devLog($message, $severity, $data = NULL) { |
|
| 1158 | + private function devLog($message, $severity, $data = NULL) |
|
| 1159 | + { |
|
| 1141 | 1160 | if (TYPO3_DLOG) { |
| 1142 | 1161 | \TYPO3\CMS\Core\Utility\GeneralUtility::devLog($message, $this->extKey, $severity, $data); |
| 1143 | 1162 | } |
@@ -19,7 +19,8 @@ discard block |
||
| 19 | 19 | * @subpackage tx_dlf |
| 20 | 20 | * @access public |
| 21 | 21 | */ |
| 22 | -class tx_dlf_search extends tx_dlf_plugin { |
|
| 22 | +class tx_dlf_search extends tx_dlf_plugin |
|
| 23 | +{ |
|
| 23 | 24 | |
| 24 | 25 | public $scriptRelPath = 'plugins/search/class.tx_dlf_search.php'; |
| 25 | 26 | |
@@ -30,7 +31,8 @@ discard block |
||
| 30 | 31 | * |
| 31 | 32 | * @return void |
| 32 | 33 | */ |
| 33 | - protected function addAutocompleteJS() { |
|
| 34 | + protected function addAutocompleteJS() |
|
| 35 | + { |
|
| 34 | 36 | |
| 35 | 37 | // Check if there are any metadata to suggest. |
| 36 | 38 | $result = $GLOBALS['TYPO3_DB']->exec_SELECTquery( |
@@ -65,7 +67,8 @@ discard block |
||
| 65 | 67 | * |
| 66 | 68 | * @return string HTML input fields with current document's UID and parent ID |
| 67 | 69 | */ |
| 68 | - protected function addCurrentCollection() { |
|
| 70 | + protected function addCurrentCollection() |
|
| 71 | + { |
|
| 69 | 72 | |
| 70 | 73 | // Load current collection. |
| 71 | 74 | $list = \TYPO3\CMS\Core\Utility\GeneralUtility::makeInstance('tx_dlf_list'); |
@@ -105,7 +108,8 @@ discard block |
||
| 105 | 108 | * |
| 106 | 109 | * @return string HTML input fields with current document's UID and parent ID |
| 107 | 110 | */ |
| 108 | - protected function addCurrentDocument() { |
|
| 111 | + protected function addCurrentDocument() |
|
| 112 | + { |
|
| 109 | 113 | |
| 110 | 114 | // Load current list object. |
| 111 | 115 | $list = \TYPO3\CMS\Core\Utility\GeneralUtility::makeInstance('tx_dlf_list'); |
@@ -152,7 +156,8 @@ discard block |
||
| 152 | 156 | * |
| 153 | 157 | * @return string HTML input fields with encrypted core name and hash |
| 154 | 158 | */ |
| 155 | - protected function addEncryptedCoreName() { |
|
| 159 | + protected function addEncryptedCoreName() |
|
| 160 | + { |
|
| 156 | 161 | |
| 157 | 162 | // Get core name. |
| 158 | 163 | $name = tx_dlf_helper::getIndexName($this->conf['solrcore'], 'tx_dlf_solrcores'); |
@@ -184,7 +189,8 @@ discard block |
||
| 184 | 189 | * |
| 185 | 190 | * @return string The extended search form or an empty string |
| 186 | 191 | */ |
| 187 | - protected function addExtendedSearch() { |
|
| 192 | + protected function addExtendedSearch() |
|
| 193 | + { |
|
| 188 | 194 | |
| 189 | 195 | $extendedSearch = ''; |
| 190 | 196 | |
@@ -238,7 +244,8 @@ discard block |
||
| 238 | 244 | * |
| 239 | 245 | * @return string HTML output of facets menu |
| 240 | 246 | */ |
| 241 | - protected function addFacetsMenu() { |
|
| 247 | + protected function addFacetsMenu() |
|
| 248 | + { |
|
| 242 | 249 | |
| 243 | 250 | // Check for typoscript configuration to prevent fatal error. |
| 244 | 251 | if (empty($this->conf['facetsConf.'])) { |
@@ -295,7 +302,8 @@ discard block |
||
| 295 | 302 | * |
| 296 | 303 | * @return string HTML output of fulltext switch |
| 297 | 304 | */ |
| 298 | - protected function addFulltextSwitch($isFulltextSearch = 0) { |
|
| 305 | + protected function addFulltextSwitch($isFulltextSearch = 0) |
|
| 306 | + { |
|
| 299 | 307 | |
| 300 | 308 | $output = ''; |
| 301 | 309 | |
@@ -323,7 +331,8 @@ discard block |
||
| 323 | 331 | * |
| 324 | 332 | * @return string HTML output of logical page field |
| 325 | 333 | */ |
| 326 | - protected function addLogicalPage() { |
|
| 334 | + protected function addLogicalPage() |
|
| 335 | + { |
|
| 327 | 336 | |
| 328 | 337 | $output = ''; |
| 329 | 338 | |
@@ -351,7 +360,8 @@ discard block |
||
| 351 | 360 | * |
| 352 | 361 | * @return array The array for the facet's menu entry |
| 353 | 362 | */ |
| 354 | - protected function getFacetsMenuEntry($field, $value, $count, $search, &$state) { |
|
| 363 | + protected function getFacetsMenuEntry($field, $value, $count, $search, &$state) |
|
| 364 | + { |
|
| 355 | 365 | |
| 356 | 366 | $entryArray = array (); |
| 357 | 367 | |
@@ -435,7 +445,8 @@ discard block |
||
| 435 | 445 | * |
| 436 | 446 | * @return string The content that is displayed on the website |
| 437 | 447 | */ |
| 438 | - public function main($content, $conf) { |
|
| 448 | + public function main($content, $conf) |
|
| 449 | + { |
|
| 439 | 450 | |
| 440 | 451 | $this->init($conf); |
| 441 | 452 | |
@@ -750,7 +761,8 @@ discard block |
||
| 750 | 761 | * |
| 751 | 762 | * @return array HMENU array |
| 752 | 763 | */ |
| 753 | - public function makeFacetsMenuArray($content, $conf) { |
|
| 764 | + public function makeFacetsMenuArray($content, $conf) |
|
| 765 | + { |
|
| 754 | 766 | |
| 755 | 767 | $this->init($conf); |
| 756 | 768 | |
@@ -18,7 +18,8 @@ discard block |
||
| 18 | 18 | * @subpackage tx_dlf |
| 19 | 19 | * @access public |
| 20 | 20 | */ |
| 21 | -class tx_dlf_search_suggest extends \TYPO3\CMS\Frontend\Plugin\AbstractPlugin { |
|
| 21 | +class tx_dlf_search_suggest extends \TYPO3\CMS\Frontend\Plugin\AbstractPlugin |
|
| 22 | +{ |
|
| 22 | 23 | |
| 23 | 24 | public $scriptRelPath = 'plugins/search/class.tx_dlf_search_suggest.php'; |
| 24 | 25 | |
@@ -32,7 +33,8 @@ discard block |
||
| 32 | 33 | * |
| 33 | 34 | * @return void |
| 34 | 35 | */ |
| 35 | - public function main($content = '', $conf = array ()) { |
|
| 36 | + public function main($content = '', $conf = array ()) |
|
| 37 | + { |
|
| 36 | 38 | |
| 37 | 39 | if (\TYPO3\CMS\Core\Utility\GeneralUtility::_GP('encrypted') != '' && \TYPO3\CMS\Core\Utility\GeneralUtility::_GP('hashed') != '') { |
| 38 | 40 | |
@@ -17,7 +17,8 @@ discard block |
||
| 17 | 17 | * @subpackage tx_dlf |
| 18 | 18 | * @access public |
| 19 | 19 | */ |
| 20 | -class tx_dlf_collection extends tx_dlf_plugin { |
|
| 20 | +class tx_dlf_collection extends tx_dlf_plugin |
|
| 21 | +{ |
|
| 21 | 22 | |
| 22 | 23 | public $scriptRelPath = 'plugins/collection/class.tx_dlf_collection.php'; |
| 23 | 24 | |
@@ -39,7 +40,8 @@ discard block |
||
| 39 | 40 | * |
| 40 | 41 | * @return string The content that is displayed on the website |
| 41 | 42 | */ |
| 42 | - public function main($content, $conf) { |
|
| 43 | + public function main($content, $conf) |
|
| 44 | + { |
|
| 43 | 45 | |
| 44 | 46 | $this->init($conf); |
| 45 | 47 | |
@@ -94,7 +96,8 @@ discard block |
||
| 94 | 96 | * |
| 95 | 97 | * @return string The list of collections ready to output |
| 96 | 98 | */ |
| 97 | - protected function showCollectionList() { |
|
| 99 | + protected function showCollectionList() |
|
| 100 | + { |
|
| 98 | 101 | |
| 99 | 102 | $selectedCollections = 'tx_dlf_collections.uid != 0'; |
| 100 | 103 | |
@@ -334,7 +337,8 @@ discard block |
||
| 334 | 337 | * |
| 335 | 338 | * @return void |
| 336 | 339 | */ |
| 337 | - protected function showSingleCollection($id) { |
|
| 340 | + protected function showSingleCollection($id) |
|
| 341 | + { |
|
| 338 | 342 | |
| 339 | 343 | $additionalWhere = ''; |
| 340 | 344 | |