Interface for TTMServer that can be updated. More...
Public Member Functions | |
update (MessageHandle $handle, $targetText) | |
Shovels the new translation into translation memory. | |
beginBootstrap () | |
Called when starting to fill the translation memory. | |
beginBatch () | |
Called before every batch (MessageGroup). | |
batchInsertDefinitions (array $batch) | |
Called multiple times per batch if necessary. | |
batchInsertTranslations (array $batch) | |
Called multiple times per batch if necessary. | |
endBatch () | |
Called before every batch (MessageGroup). | |
endBootstrap () | |
Do any cleanup, optimizing etc. |
Interface for TTMServer that can be updated.
Definition at line 54 of file Interfaces.php.
WritableTTMServer::batchInsertDefinitions | ( | array $ | batch | ) |
Called multiple times per batch if necessary.
Implemented in DatabaseTTMServer, FakeTTMServer, and SolrTTMServer.
WritableTTMServer::batchInsertTranslations | ( | array $ | batch | ) |
Called multiple times per batch if necessary.
Implemented in DatabaseTTMServer, FakeTTMServer, and SolrTTMServer.
WritableTTMServer::beginBatch | ( | ) |
Called before every batch (MessageGroup).
Implemented in DatabaseTTMServer, FakeTTMServer, and SolrTTMServer.
WritableTTMServer::beginBootstrap | ( | ) |
Called when starting to fill the translation memory.
Set up necessary variables and remove old content from the server.
Implemented in DatabaseTTMServer, FakeTTMServer, and SolrTTMServer.
WritableTTMServer::endBatch | ( | ) |
Called before every batch (MessageGroup).
Implemented in DatabaseTTMServer, FakeTTMServer, and SolrTTMServer.
WritableTTMServer::endBootstrap | ( | ) |
Do any cleanup, optimizing etc.
Implemented in DatabaseTTMServer, FakeTTMServer, and SolrTTMServer.
WritableTTMServer::update | ( | MessageHandle $ | handle, | |
$ | targetText | |||
) |
Shovels the new translation into translation memory.
Use this for single updates (=after message edit). If no text is provided, entry will be removed from the translation memory.
MessageHandle | $handle | |
string|null | $targetText Use null to only delete. |
Implemented in DatabaseTTMServer, FakeTTMServer, and SolrTTMServer.