Some general static methods for instantiating TTMServer and helpers.
More...
Some general static methods for instantiating TTMServer and helpers.
- Since
- 2012-01-28 Rewritten in 2012-06-27.
Definition at line 19 of file TTMServer.php.
◆ __construct()
TTMServer::__construct |
( |
array | $config | ) |
|
◆ getMirrors()
TTMServer::getMirrors |
( |
| ) |
|
◆ levenshtein()
static TTMServer::levenshtein |
( |
| $str1, |
|
|
| $str2, |
|
|
| $length1, |
|
|
| $length2 ) |
|
static |
PHP implementation of Levenshtein edit distance algorithm.
Uses the native PHP implementation when possible for speed. The native levenshtein is limited to 255 bytes.
- Parameters
-
string | $str1 | |
string | $str2 | |
int | $length1 | |
int | $length2 | |
- Returns
- int
Definition at line 51 of file TTMServer.php.
◆ onChange()
Called from TranslateEditAddons::onSave.
- Parameters
-
Definition at line 102 of file TTMServer.php.
◆ onDelete()
static TTMServer::onDelete |
( |
WikiPage | $wikipage | ) |
|
|
static |
Hook: ArticleDeleteComplete.
- Parameters
-
Definition at line 92 of file TTMServer.php.
◆ onGroupChange()
◆ sortSuggestions()
static TTMServer::sortSuggestions |
( |
array | $suggestions | ) |
|
|
static |
◆ $config
The documentation for this class was generated from the following file: