\FAA\Plugin\EmployeeSearchHandler

Summary

Methods
Properties
Constants
SetupTemplate()
RegisterHooks()
OnIndex()
OnNewIndex()
OnSyncronize()
OnAddOrUpdateContent()
OnDeleteContent()
DoSearch()
BuildEntry()
No public properties found
No constants found
No protected methods found
No protected properties found
N/A
No private methods found
No private properties found
N/A

Methods

SetupTemplate()

SetupTemplate(  $data = null)

Parameters

$data

RegisterHooks()

RegisterHooks(): array

register system hooks Register a set of handler functions to be called in certain positions.

Returns

array —

The list of registered hooks

OnIndex()

OnIndex(  $reference)

Parameters

$reference

OnNewIndex()

OnNewIndex(  $reference)

Parameters

$reference

OnSyncronize()

OnSyncronize(  $reference)

Parameters

$reference

OnAddOrUpdateContent()

OnAddOrUpdateContent(\FAA\Obj\Sys\HookArgument  $reference)

Parameters

\FAA\Obj\Sys\HookArgument $reference

A hook argument

OnDeleteContent()

OnDeleteContent(  $reference)

Parameters

$reference

DoSearch()

DoSearch(string  $language,array  $payload): \FAA\Obj\Result

Do search Execute the search by given arguments

Parameters

string $language

The language to search in

array $payload

The search request

Returns

\FAA\Obj\Result —

A system result

BuildEntry()

BuildEntry(\stdClass  $doc,string  $language,array|null  $extra = null): \FAA\Obj\Search\Response\Employee

Build entry of search

Parameters

\stdClass $doc

The search response

string $language

The request language

array|null $extra

Additional fields

Returns

\FAA\Obj\Search\Response\Employee