TranslateDocumentSearchPreprocessor
class TranslateDocumentSearchPreprocessor extends SearchPreprocessor
Is triggered when a document_index is created or modified. Check if the translation API has to be called.
Class IndexEventDocumentIndexEvent
Constants
TRANSLATIONITEM_TAG |
|
Properties
TranslationController | $mod | ||
array | $_hook_info | Hook Information "id" => "4914" "instance_id" => "api_microsoft" "name" => "oauth_client" "hook" => "webservice.oauth_client" "type" => "object" "registry_name" => "oauth_client" "function_name" => "" "internal" => "no" "dep_mode" => "local" "active" => "yes" "title" => "Basic functions" "description" => "" "options" => "" |
from BaseHook |
Methods
Get Hook identifier consists of instance_id puncto separator and hook name Ex. instance_id.name
Return Hook information (ID, InstanceID, Name, Hook Type, Object Type, ...)
Determines if the translate search result config option is enabled
Maintenance Function which will be calls every time a scheduled Background Update should be run This function can be used to trigger mass-updates on the search
Check for possible translations for the SearchIndexRecord. Create translation jobs, if there are translations missing
Details
in
BaseHook at line 76
string
getHookDescription()
No description
in
BaseHook at line 55
string
getHookIdentifier()
Get Hook identifier consists of instance_id puncto separator and hook name Ex. instance_id.name
in
BaseHook at line 45
array
getHookInfoValue(bool $key = false)
Return Hook information (ID, InstanceID, Name, Hook Type, Object Type, ...)
in
BaseHook at line 69
string
getHookInstance()
No description
in
BaseHook at line 62
string
getHookName()
No description
in
BaseHook at line 83
string
getHookTitle()
No description
in
BaseHook at line 88
getObject()
No description
at line 29
bool
isAvailable()
Determines if the translate search result config option is enabled
in
SearchPreprocessor at line 29
bool
onBackgroundUpdate()
Maintenance Function which will be calls every time a scheduled Background Update should be run This function can be used to trigger mass-updates on the search
at line 87
SearchIndexRecord
preProcessDocument(SearchIndexRecord $searchDocument)
Check for possible translations for the SearchIndexRecord. Create translation jobs, if there are translations missing