Interface for TTMServer that can be queried (=all of them). More...
Public Member Functions | |
query ( $sourceLanguage, $targetLanguage, $text) | |
Fetches all relevant suggestions for given text. | |
isLocalSuggestion (array $suggestion) | |
Determines if the suggestion returned by this TTMServer comes from this wiki or any other wiki. | |
expandLocation (array $suggestion) | |
Given suggestion returned by this TTMServer, constructs fully qualified URL to the location of the translation. | |
Interface for TTMServer that can be queried (=all of them).
Definition at line 17 of file Interfaces.php.
ReadableTTMServer::expandLocation | ( | array | $suggestion | ) |
Given suggestion returned by this TTMServer, constructs fully qualified URL to the location of the translation.
array | $suggestion |
Implemented in DatabaseTTMServer, ElasticSearchTTMServer, FakeTTMServer, and RemoteTTMServer.
ReadableTTMServer::isLocalSuggestion | ( | array | $suggestion | ) |
Determines if the suggestion returned by this TTMServer comes from this wiki or any other wiki.
array | $suggestion |
Implemented in DatabaseTTMServer, ElasticSearchTTMServer, FakeTTMServer, and RemoteTTMServer.
ReadableTTMServer::query | ( | $sourceLanguage, | |
$targetLanguage, | |||
$text ) |
Fetches all relevant suggestions for given text.
string | $sourceLanguage | language code for the provide text |
string | $targetLanguage | language code for the suggestions |
string | $text | the text for which to search suggestions |
Implemented in DatabaseTTMServer, ElasticSearchTTMServer, FakeTTMServer, and RemoteTTMServer.