Translate extension for MediaWiki
Loading...
Searching...
No Matches
ReadableTtmServer.php
1
<?php
2
declare( strict_types = 1 );
3
4
namespace
MediaWiki\Extension\Translate\TtmServer;
5
10
interface
ReadableTtmServer
{
23
public
function
query
(
string
$sourceLanguage,
string
$targetLanguage,
string
$text ): array;
24
29
public
function
isLocalSuggestion
( array $suggestion ): bool;
30
36
public
function
expandLocation
( array $suggestion ): string;
37
}
MediaWiki\Extension\Translate\TtmServer\ReadableTtmServer
Interface for TTMServer that can be queried (=all of them).
Definition
ReadableTtmServer.php:10
MediaWiki\Extension\Translate\TtmServer\ReadableTtmServer\expandLocation
expandLocation(array $suggestion)
Given suggestion returned by this TTMServer, constructs fully qualified URL to the location of the tr...
MediaWiki\Extension\Translate\TtmServer\ReadableTtmServer\query
query(string $sourceLanguage, string $targetLanguage, string $text)
Fetches all relevant suggestions for given text.
MediaWiki\Extension\Translate\TtmServer\ReadableTtmServer\isLocalSuggestion
isLocalSuggestion(array $suggestion)
Determines if the suggestion returned by this TTMServer comes from this wiki or any other wiki.
src
TtmServer
ReadableTtmServer.php
Generated by
1.10.0