Horde_Core_Factory_SpellChecker
extends Horde_Core_Factory_Base
in package
A Horde_Injector based spellchecker factory.
Tags
Table of Contents
Properties
- $_injector : Horde_Injector
- The injector.
Methods
- __construct() : mixed
- Constructor.
- create() : Horde_SpellChecker
- Returns the spellchecker instance.
- _getDriverName() : string
- Return the classname of the driver to load.
Properties
$_injector
The injector.
protected
Horde_Injector
$_injector
Methods
__construct()
Constructor.
public
__construct(Horde_Injector $injector) : mixed
Parameters
- $injector : Horde_Injector
-
The injector to use.
create()
Returns the spellchecker instance.
public
create([array<string|int, mixed> $args = array() ][, string $input = null ]) : Horde_SpellChecker
Parameters
- $args : array<string|int, mixed> = array()
-
Configuration arguments to override the defaults.
- $input : string = null
-
Input text. If set, allows language detection if not automatically set.
Tags
Return values
Horde_SpellChecker —The spellchecker instance.
_getDriverName()
Return the classname of the driver to load.
protected
_getDriverName(string $driver, string $base) : string
Parameters
- $driver : string
-
Driver name.
- $base : string
-
The base classname.
Tags
Return values
string —Classname.