Page Menu
Home
WickedGov Phorge
Search
Configure Global Search
Log In
Files
F4107249
RemoteTtmServer.php
No One
Temporary
Actions
Download File
Edit File
Delete File
View Transforms
Subscribe
Flag For Later
Award Token
Size
807 B
Referenced Files
None
Subscribers
None
RemoteTtmServer.php
View Options
<?php
declare
(
strict_types
=
1
);
namespace
MediaWiki\Extension\Translate\TtmServer
;
/**
* Class for handling remote TTMServers over MediaWiki API.
* Currently, querying is done in TranslationHelpers, and
* this class only handles location retrieval.
*
* @author Niklas Laxström
* @copyright Copyright © 2012-2013, Niklas Laxström
* @license GPL-2.0-or-later
* @ingroup TTMServer
*/
class
RemoteTtmServer
extends
TtmServer
implements
ReadableTtmServer
{
public
function
query
(
string
$sourceLanguage
,
string
$targetLanguage
,
string
$text
):
array
{
// @todo Implement some day perhaps?
return
[];
}
public
function
isLocalSuggestion
(
array
$suggestion
):
bool
{
return
false
;
}
public
function
expandLocation
(
array
$suggestion
):
string
{
return
$suggestion
[
'location'
];
}
}
File Metadata
Details
Attached
Mime Type
text/x-php
Expires
Tue, Aug 18, 19:58 (2 w, 3 d ago)
Storage Engine
local-disk
Storage Format
Raw Data
Storage Handle
35/29/db0e93d67290c68df423d6f2d6cc
Default Alt Text
RemoteTtmServer.php (807 B)
Attached To
Mode
rMWPROD MediaWiki Production
Attached
Detach File
Event Timeline
Log In to Comment