30 public function query( $sourceLanguage, $targetLanguage, $text );
142 public function search( $queryString, $opts, $highlight );
Class for pointing to messages, like Title class is for titles.
Interface for TTMServer that can be queried (=all of them).
expandLocation(array $suggestion)
Given suggestion returned by this TTMServer, constructs fully qualified URL to the location of the tr...
query( $sourceLanguage, $targetLanguage, $text)
Fetches all relevant suggestions for given text.
isLocalSuggestion(array $suggestion)
Determines if the suggestion returned by this TTMServer comes from this wiki or any other wiki.
Interface for TTMServer that can act as backend for translation search.
getDocuments( $resultset)
search( $queryString, $opts, $highlight)
Performs a search in the translation database.
getTotalHits( $resultset)
Interface for TTMServer that can be updated.
endBatch()
Called before every batch (MessageGroup).
isFrozen()
Check if the service is frozen, attempting to write to a frozen service may lead to errors or unexpec...
getMirrors()
Get the list of services to duplicate writes to make them "mirrors" of this service.
setDoReIndex()
Instruct the service to fully wipe the index and start from scratch.
batchInsertDefinitions(array $batch)
Called multiple times per batch if necessary.
batchInsertTranslations(array $batch)
Called multiple times per batch if necessary.
beginBatch()
Called before every batch (MessageGroup).
update(MessageHandle $handle, $targetText)
Shovels the new translation into translation memory.
beginBootstrap()
Called when starting to fill the translation memory.
endBootstrap()
Do any cleanup, optimizing etc.