PHP Class Horde_SpellChecker, horde

Author: Chuck Hagenbuch ([email protected])
Author: Michael Slusarz ([email protected])
Mostrar archivo Open project: horde/horde Class Usage Examples

Protected Properties

Property Type Description
$_params array Configuration parameters.

Public Methods

Method 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.

Protected Methods

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

Method Details

__construct() public method

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

_getWords() protected method

TODO
protected _getWords ( string $text ) : array
$text string TODO
return array TODO

_inLocalDictionary() protected method

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

factory() public static method

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.
return Horde_SpellChecker The newly created instance.

setParams() public method

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

spellCheck() abstract public method

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

Property Details

$_params protected_oe property

Configuration parameters.
protected array $_params
return array