• Модуль: fileman
  • Путь к файлу: ~/bitrix/modules/fileman/classes/general/spellchecker.php
  • Класс: CSpellchecker
  • Вызов: CSpellchecker::checkWord
function checkWord($word)
{
	//pspell
	if ($this->pspell)
	{
		return pspell_check($this->pspell_link, $word);
	}
	//custom
//		elseif($this->custom_spell)
//		{
//			if ($this->lang == 'ru')
//			{
//				$word = $APPLICATION->ConvertCharset($word, "UTF-8", "Windows-1251");
//			}
//
//			if (strlen($word) <= $this->skip_len)
//			{
//				return true;
//			}
//
//			$first_let = $this->codeLetter(strtolower($word{0}));
//
//			if (!isset($this->dic[$first_let]))
//			{
//				$this->loadDic($first_let);
//			}
//			//check if word exist in array
//			if (isset($this->dic[$first_let][strtolower($word)]))
//			{
//				return true;
//			}
//			return false;
//		}
}