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