Page Menu
Home
WickedGov Phorge
Search
Configure Global Search
Log In
Files
F4140799
FakeTtmServer.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
FakeTtmServer.php
View Options
<?php
declare
(
strict_types
=
1
);
namespace
MediaWiki\Extension\Translate\TtmServer
;
use
MediaWiki\Extension\Translate\MessageLoading\MessageHandle
;
/**
* NO-OP version of TtmServer when it is disabled.
* Keeps other code simpler when they can just do
* TTMServer::primary()->update( ... );
*
* @author Niklas Laxström
* @copyright Copyright © 2012-2013, Niklas Laxström
* @license GPL-2.0-or-later
* @ingroup TTMServer
*/
class
FakeTtmServer
extends
TtmServer
implements
ReadableTtmServer
,
WritableTtmServer
{
public
function
__construct
()
{
parent
::
__construct
(
[]
);
}
public
function
query
(
string
$sourceLanguage
,
string
$targetLanguage
,
string
$text
):
array
{
return
[];
}
public
function
isLocalSuggestion
(
array
$suggestion
):
bool
{
return
false
;
}
public
function
expandLocation
(
array
$suggestion
):
string
{
return
''
;
}
public
function
update
(
MessageHandle
$handle
,
?
string
$targetText
):
bool
{
return
true
;
}
public
function
beginBootstrap
():
void
{
}
public
function
beginBatch
():
void
{
}
public
function
batchInsertDefinitions
(
array
$batch
):
void
{
}
public
function
batchInsertTranslations
(
array
$batch
):
void
{
}
public
function
endBatch
():
void
{
}
public
function
endBootstrap
():
void
{
}
public
function
setDoReIndex
():
void
{
}
}
File Metadata
Details
Attached
Mime Type
text/x-php
Expires
Wed, Aug 19, 15:40 (3 w, 5 d ago)
Storage Engine
local-disk
Storage Format
Raw Data
Storage Handle
ef/24/4380f6e48ee933c02acac5dbdc75
Default Alt Text
FakeTtmServer.php (1 KB)
Attached To
Mode
rMWPROD MediaWiki Production
Attached
Detach File
Event Timeline
Log In to Comment