‪TYPO3CMS  9.5
PluginHook.php
Go to the documentation of this file.
1 <?php
3 
4 /*
5  * This file is part of the TYPO3 CMS project.
6  *
7  * It is free software; you can redistribute it and/or modify it under
8  * the terms of the GNU General Public License, either version 2
9  * of the License, or any later version.
10  *
11  * For the full copyright and license information, please read the
12  * LICENSE.txt file that was distributed with this source code.
13  *
14  * The TYPO3 project - inspiring people to share!
15  */
16 
27 {
33  public ‪$pObj;
34 
42  public function ‪initialize_postProc()
43  {
44  $this->pObj->optValues['order'] = array_reverse($this->pObj->optValues['order']);
45  }
46 
56  public function ‪getDisplayResults_postProc(array $result): array
57  {
58  if ($result['count'] > 0) {
59  foreach ($result['rows'] as $rowIndex => $row) {
60  $result['rows'][$rowIndex]['description'] = \str_replace('foo', 'bar', $row['description']);
61  }
62  }
63  return $result;
64  }
65 
71  public function ‪getResultRows($sWArr)
72  {
73  }
74 
84  public function ‪prepareResultRowTemplateData_postProc($tmplContent, $row, $headerOnly)
85  {
86  $tmplContent['description'] = '<em>' . $tmplContent['description'] . '</em>';
87  $tmplContent['path'] = '';
88  return $tmplContent;
89  }
90 }
‪TYPO3\CMS\IndexedSearch\Example\PluginHook\getResultRows
‪getResultRows($sWArr)
Definition: PluginHook.php:70
‪TYPO3\CMS\IndexedSearch\Example\PluginHook\prepareResultRowTemplateData_postProc
‪array prepareResultRowTemplateData_postProc($tmplContent, $row, $headerOnly)
Definition: PluginHook.php:83
‪TYPO3\CMS\IndexedSearch\Example\PluginHook\initialize_postProc
‪initialize_postProc()
Definition: PluginHook.php:41
‪TYPO3\CMS\IndexedSearch\Example\PluginHook\getDisplayResults_postProc
‪array getDisplayResults_postProc(array $result)
Definition: PluginHook.php:55
‪TYPO3\CMS\IndexedSearch\Example\PluginHook\$pObj
‪TYPO3 CMS IndexedSearch Controller SearchFormController $pObj
Definition: PluginHook.php:32
‪TYPO3\CMS\IndexedSearch\Example\PluginHook
Definition: PluginHook.php:27
‪TYPO3\CMS\IndexedSearch\Example
Definition: CrawlerHook.php:2