|
Moodle
2.2.1
http://www.collinsharper.com
|

Public Member Functions | |
| SpellChecker (&$config) | |
| & | loopback () |
| & | checkWords ($lang, $words) |
| & | getSuggestions ($lang, $word) |
| throwError ($str) | |
Definition at line 10 of file SpellChecker.php.
| & checkWords | ( | $ | lang, |
| $ | words | ||
| ) |
Spellchecks an array of words.
| {String} | $lang Language code like sv or en. |
| {Array} | $words Array of words to spellcheck. |
Reimplemented in EnchantSpell, GoogleSpell, PSpell, and PSpellShell.
Definition at line 37 of file SpellChecker.php.
| & getSuggestions | ( | $ | lang, |
| $ | word | ||
| ) |
Returns suggestions of for a specific word.
| {String} | $lang Language code like sv or en. |
| {String} | $word Specific word to get suggestions for. |
Reimplemented in PSpellShell, EnchantSpell, PSpell, and GoogleSpell.
Definition at line 48 of file SpellChecker.php.
| & loopback | ( | ) |
Simple loopback function everything that gets in will be send back.
| $args.. | Arguments. |
Definition at line 26 of file SpellChecker.php.
| SpellChecker | ( | &$ | config | ) |
Constructor.
| $config | Configuration name/value array. |
Definition at line 16 of file SpellChecker.php.
| throwError | ( | $ | str | ) |
Throws an error message back to the user. This will stop all execution.
| {String} | $str Message to send back to user. |
Definition at line 57 of file SpellChecker.php.
