PHP Class Horde_SpellChecker, horde

Author: Chuck Hagenbuch ([email protected])
Author: Michael Slusarz ([email protected])
Afficher le fichier Open project: horde/horde Class Usage Examples

Protected Properties

Свойство Type Description
$_params array Configuration parameters.

Méthodes publiques

Méthode Description
__construct ( array $params = [] ) Constructor.
factory ( string $driver, array $params = [] ) : Horde_SpellChecker Attempts to return a concrete Horde_SpellChecker instance based on $driver.
setParams ( array $params ) Set configuration parmeters.
spellCheck ( string $text ) : array Perform spellcheck.

Méthodes protégées

Méthode Description
_getWords ( string $text ) : array TODO
_inLocalDictionary ( string $word ) : boolean Determine if a word exists in the local dictionary.

Method Details

__construct() public méthode

Constructor.
public __construct ( array $params = [] )
$params array TODO

_getWords() protected méthode

TODO
protected _getWords ( string $text ) : array
$text string TODO
Résultat array TODO

_inLocalDictionary() protected méthode

Determine if a word exists in the local dictionary.
protected _inLocalDictionary ( string $word ) : boolean
$word string The word to check.
Résultat boolean True if the word appears in the local dictionary.

factory() public static méthode

Attempts to return a concrete Horde_SpellChecker instance based on $driver.
Deprecation:
public static factory ( string $driver, array $params = [] ) : Horde_SpellChecker
$driver string The type of concrete subclass to return.
$params array A hash containing any additional configuration or connection parameters a subclass might need.
Résultat Horde_SpellChecker The newly created instance.

setParams() public méthode

Set configuration parmeters.
public setParams ( array $params )
$params array Parameters to set.

spellCheck() abstract public méthode

Perform spellcheck.
abstract public spellCheck ( string $text ) : array
$text string Text to spellcheck.
Résultat array TODO

Property Details

$_params protected_oe property

Configuration parameters.
protected array $_params
Résultat array