PHP 클래스 Horde_SpellChecker, horde

저자: Chuck Hagenbuch ([email protected])
저자: Michael Slusarz ([email protected])
파일 보기 프로젝트 열기: horde/horde 1 사용 예제들

보호된 프로퍼티들

프로퍼티 타입 설명
$_params array Configuration parameters.

공개 메소드들

메소드 설명
__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.

보호된 메소드들

메소드 설명
_getWords ( string $text ) : array TODO
_inLocalDictionary ( string $word ) : boolean Determine if a word exists in the local dictionary.

메소드 상세

__construct() 공개 메소드

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

_getWords() 보호된 메소드

TODO
protected _getWords ( string $text ) : array
$text string TODO
리턴 array TODO

_inLocalDictionary() 보호된 메소드

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

factory() 공개 정적인 메소드

Attempts to return a concrete Horde_SpellChecker instance based on $driver.
사용 중단:
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.
리턴 Horde_SpellChecker The newly created instance.

setParams() 공개 메소드

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

spellCheck() 추상적인 공개 메소드

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

프로퍼티 상세

$_params 보호되어 있는 프로퍼티

Configuration parameters.
protected array $_params
리턴 array