WritableTTMServer Interface Reference
[The Translate extension translation memory interface]

Interface for TTMServer that can be updated. More...

Inheritance diagram for WritableTTMServer:
Inheritance graph
[legend]

List of all members.

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.

Detailed Description

Interface for TTMServer that can be updated.

Since:
2012-06-27

Definition at line 54 of file Interfaces.php.


Member Function Documentation

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.

Parameters:
MessageHandle $handle
string|null $targetText Use null to only delete.

Implemented in DatabaseTTMServer, FakeTTMServer, and SolrTTMServer.


The documentation for this interface was generated from the following file:
Generated on Tue Oct 29 00:00:57 2013 for MediaWiki Translate Extension by  doxygen 1.6.3