Moodle  2.2.1
http://www.collinsharper.com
SpellChecker Class Reference
Inheritance diagram for SpellChecker:

Public Member Functions

 SpellChecker (&$config)
loopback ()
checkWords ($lang, $words)
getSuggestions ($lang, $word)
 throwError ($str)

Detailed Description

Definition at line 10 of file SpellChecker.php.


Member Function Documentation

& checkWords ( lang,
words 
)

Spellchecks an array of words.

Parameters:
{String}$lang Language code like sv or en.
{Array}$words Array of words to spellcheck.
Returns:
{Array} Array of misspelled words.

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.

Parameters:
{String}$lang Language code like sv or en.
{String}$word Specific word to get suggestions for.
Returns:
{Array} Array of suggestions for the specified word.

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.

Parameters:
$args..Arguments.
Returns:
{Array} Array of all input arguments.

Definition at line 26 of file SpellChecker.php.

SpellChecker ( &$  config)

Constructor.

Parameters:
$configConfiguration 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.

Parameters:
{String}$str Message to send back to user.

Definition at line 57 of file SpellChecker.php.

Here is the caller graph for this function:


The documentation for this class was generated from the following file:
 All Data Structures Namespaces Files Functions Variables Enumerations