Свойство | Type | Description | |
---|---|---|---|
$_params | array | Configuration parameters. |
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éthode | Description | |
---|---|---|
_getWords ( string $text ) : array | TODO | |
_inLocalDictionary ( string $word ) : boolean | Determine if a word exists in the local dictionary. |
public __construct ( array $params = [] ) | ||
$params | array | TODO |
protected _inLocalDictionary ( string $word ) : boolean | ||
$word | string | The word to check. |
Résultat | boolean | True if the word appears in the local dictionary. |
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. |
abstract public spellCheck ( string $text ) : array | ||
$text | string | Text to spellcheck. |
Résultat | array | TODO |