Class: SpellChecker
Source Location: /blogs/plugins/tinymce_plugin/tiny_mce/plugins/spellchecker/classes/SpellChecker.php
Class SpellChecker
Class Overview
|
$Id: SpellChecker.php,v 1.1 2009/08/07 01:59:36 sam2kb Exp $ Located in /blogs/plugins/tinymce_plugin/tiny_mce/plugins/spellchecker/classes/SpellChecker.php [line 9] Author(s):
|
[ Top ]
Direct descendents
| Child Class | Description |
|---|---|
| GoogleSpell | $Id: GoogleSpell.php,v 1.2 2009/08/09 03:08:08 sam2kb Exp $ |
| PSpellShell | $Id: PSpellShell.php,v 1.1 2009/08/07 01:59:36 sam2kb Exp $ |
| EnchantSpell | $Id: EnchantSpell.php,v 1.1 2009/08/07 01:59:36 sam2kb Exp $ |
| PSpell | $Id: PSpell.php,v 1.1 2009/08/07 01:59:36 sam2kb Exp $ |
[ Top ]
Method Summary
| SpellChecker | SpellChecker() | Constructor. |
| {Array} | &checkWords() | Spellchecks an array of words. |
| {Array} | &getSuggestions() | Returns suggestions of for a specific word. |
| {Array} | &loopback() | Simple loopback function everything that gets in will be send back. |
| void | throwError() | Throws an error message back to the user. This will stop all execution. |
[ Top ]
Methods
Constructor SpellChecker [line 15]
|
Constructor.
Parameters:| $config | &$config: | Configuration name/value array. |
[ Top ]
checkWords [line 36]
|
Spellchecks an array of words.
Parameters:| {String} | $lang: | Language code like sv or en. |
| {Array} | $words: | Array of words to spellcheck. |
API Tags:
| Return: | Array of misspelled words. |
Redefined in descendants as:
- GoogleSpell::checkWords() : Spellchecks an array of words.
- PSpellShell::checkWords() : Spellchecks an array of words.
- EnchantSpell::checkWords() : Spellchecks an array of words.
- PSpell::checkWords() : Spellchecks an array of words.
[ Top ]
getSuggestions [line 47]
|
Returns suggestions of for a specific word.
Parameters:| {String} | $lang: | Language code like sv or en. |
| {String} | $word: | Specific word to get suggestions for. |
API Tags:
| Return: | Array of suggestions for the specified word. |
Redefined in descendants as:
- GoogleSpell::getSuggestions() : Returns suggestions of for a specific word.
- PSpellShell::getSuggestions() : Returns suggestions of for a specific word.
- EnchantSpell::getSuggestions() : Returns suggestions for a specific word.
- PSpell::getSuggestions() : Returns suggestions of for a specific word.
[ Top ]
loopback [line 25]
|
Simple loopback function everything that gets in will be send back.
Parameters:| $args.. | 0: | Arguments. |
API Tags:
| Return: | Array of all input arguments. |
[ Top ]
