PHP Class Phergie_Plugin_SpellCheck, phergie

Inheritance: extends Phergie_Plugin_Abstract
Show file Open project: phergie/phergie

Protected Properties

Property Type Description
$limit integer Limit on the number of potential correct spellings returned
$pspell resource Spell check dictionary handler

Public Methods

Method Description
onCommandSpell ( string $word ) : void Intercepts and handles requests for spell checks.
onLoad ( ) : void Check for dependencies.

Protected Methods

Method Description
loadDictionaryError ( integer $errno, string $errstr, string $errfile, integer $errline ) : void Handle any errors from loading dictionary

Method Details

loadDictionaryError() protected method

Handle any errors from loading dictionary
protected loadDictionaryError ( integer $errno, string $errstr, string $errfile, integer $errline ) : void
$errno integer Error code
$errstr string Error message
$errfile string File that errored
$errline integer Line where the error happened
return void

onCommandSpell() public method

Intercepts and handles requests for spell checks.
public onCommandSpell ( string $word ) : void
$word string the string to perform checks against
return void

onLoad() public method

Check for dependencies.
public onLoad ( ) : void
return void

Property Details

$limit protected property

Limit on the number of potential correct spellings returned
protected int $limit
return integer

$pspell protected property

Spell check dictionary handler
protected resource $pspell
return resource