Page Menu
Home
WickedGov Phorge
Search
Configure Global Search
Log In
Files
F4112858
WritableTtmServer.php
No One
Temporary
Actions
Download File
Edit File
Delete File
View Transforms
Subscribe
Flag For Later
Award Token
Size
1 KB
Referenced Files
None
Subscribers
None
WritableTtmServer.php
View Options
<?php
declare
(
strict_types
=
1
);
namespace
MediaWiki\Extension\Translate\TtmServer
;
use
MediaWiki\Extension\Translate\MessageLoading\MessageHandle
;
/**
* Interface for TtmServer that can be updated.
* @ingroup TTMServer
*/
interface
WritableTtmServer
{
/**
* 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.
*
* @param MessageHandle $handle
* @param string|null $targetText Use null to only delete.
*/
public
function
update
(
MessageHandle
$handle
,
?
string
$targetText
):
bool
;
/**
* Called when starting to fill the translation memory.
* Set up necessary variables and remove old content
* from the server.
*/
public
function
beginBootstrap
():
void
;
/** Called before every batch (MessageGroup). */
public
function
beginBatch
():
void
;
/** Called multiple times per batch if necessary. */
public
function
batchInsertDefinitions
(
array
$batch
):
void
;
/** Called multiple times per batch if necessary. */
public
function
batchInsertTranslations
(
array
$batch
):
void
;
/** Called after every batch (MessageGroup). */
public
function
endBatch
():
void
;
/** Do any cleanup, optimizing etc. */
public
function
endBootstrap
():
void
;
/** Instruct the service to fully wipe the index and start from scratch. */
public
function
setDoReIndex
():
void
;
}
File Metadata
Details
Attached
Mime Type
text/x-php
Expires
Tue, Aug 18, 23:04 (1 d, 9 h)
Storage Engine
local-disk
Storage Format
Raw Data
Storage Handle
43/51/48f7bb14b641ac11729444704012
Default Alt Text
WritableTtmServer.php (1 KB)
Attached To
Mode
rMWPROD MediaWiki Production
Attached
Detach File
Event Timeline
Log In to Comment