Moodle PHP Documentation 4.1
Moodle 4.1.11 (Build: 20240610) (c8c84b4af18)
PSpellShell Class Reference
Inheritance diagram for PSpellShell:
SpellChecker

Public Member Functions

 _getCMD ($lang)
 
checkWords ($lang, $words)
 Spellchecks an array of words.
 
getSuggestions ($lang, $word)
 Returns suggestions of for a specific word.
 
loopback ()
 Simple loopback function everything that gets in will be send back.
 
 SpellChecker (&$config)
 Old syntax of class constructor.
 
 throwError ($str)
 Throws an error message back to the user.
 

Member Function Documentation

◆ checkWords()

& PSpellShell::checkWords ( $lang,
$words )

Spellchecks an array of words.

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

Reimplemented from SpellChecker.

◆ getSuggestions()

& PSpellShell::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.
Return values
{Array}Array of suggestions for the specified word.

Reimplemented from SpellChecker.

◆ loopback()

& SpellChecker::loopback ( )
inherited

Simple loopback function everything that gets in will be send back.

Parameters
$args..Arguments.
Return values
{Array}Array of all input arguments.

◆ SpellChecker()

SpellChecker::SpellChecker ( & $config)
inherited

Old syntax of class constructor.

Deprecated in PHP7.

Deprecated
since Moodle 3.1

◆ throwError()

SpellChecker::throwError ( $str)
inherited

Throws an error message back to the user.

This will stop all execution.

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

The documentation for this class was generated from the following file: