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, FakeTTMServer, RemoteTTMServer, and SolrTTMServer.
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, FakeTTMServer, RemoteTTMServer, and SolrTTMServer.
ReadableTTMServer::query | ( | $ | sourceLanguage, | |
$ | targetLanguage, | |||
$ | text | |||
) |
Fetches all relevant suggestions for given text.
$sourceLanguage | String: language code for the provide text | |
$targetLanguage | String: language code for the suggestions | |
$text | String: the text for which to search suggestions |
Implemented in DatabaseTTMServer, FakeTTMServer, RemoteTTMServer, and SolrTTMServer.