TYPO3  7.6
Public Member Functions | Public Attributes | List of all members
PluginHook Class Reference

Public Member Functions

 initialize_postProc ()
 
 getResultRows ($sWArr)
 
 prepareResultRowTemplateData_postProc ($tmplContent, $row, $headerOnly)
 

Public Attributes

 $pObj
 

Detailed Description

Index search frontend example hook Index search frontend - EXAMPLE hook for alternative searching / display etc. Hooks are configured in ext_localconf.php as key => hook-reference pairs in $TYPO3_CONF_VARS['EXTCONF']['indexed_search']['pi1_hooks']. See example in ext_localconf.php for "indexed_search" Each hook must have an entry, the key must match the hook-key in class.tx_indexed_search.php and generally the key equals the function name in the hook object (a convension used)

Definition at line 25 of file PluginHook.php.

Member Function Documentation

getResultRows (   $sWArr)

Providing an alternative search algorithm!

Parameters
array$sWArrArray of search words
Returns
array Array of first row, result rows, count

Definition at line 54 of file PluginHook.php.

initialize_postProc ( )

EXAMPLE of how you can post process the initialized values in the frontend plugin. The example reverses the order of elements in the ranking selector box. You can modify other values like this or add / remove items.

This hook is activated by this key / value pair in ext_localconf.php 'initialize_postProc' => ::class,

Returns
void

Definition at line 43 of file PluginHook.php.

prepareResultRowTemplateData_postProc (   $tmplContent,
  $row,
  $headerOnly 
)

Example of how the content displayed in the result rows can be post processed before rendered into HTML. This example simply shows how the description field is wrapped in italics and the path is hidden by setting it blank.

Parameters
array$tmplContentTemplate Content (generated from result row) being processed.
array$rowResult row
bool$headerOnlyIf set, the result row is a sub-row.
Returns
array Template Content returned.

Definition at line 67 of file PluginHook.php.

Member Data Documentation

$pObj

Definition at line 32 of file PluginHook.php.