public function __construct($config = array()) { parent::__construct($config); if (!function_exists('enchant_broker_init')) { exit('Enchant library not found'); } $this->broker = enchant_broker_init(); $this->dictionary = enchant_broker_request_dict($this->broker, $this->_config['lang']); if (!enchant_broker_dict_exists($this->broker, $this->_config['lang'])) { exit('Enchant dictionary not found for lang: ' . $this->_config['lang']); } }
public function __construct($config = array()) { parent::__construct($config); $this->pspell_link = pspell_new($this->_config['lang'], '', '', 'utf-8'); }