- Модуль: seo
- Путь к файлу: ~/bitrix/modules/seo/classes/general/seo_page_checker.php
- Класс: CSeoPageChecker
- Вызов: CSeoPageChecker::CheckKeyword
function CheckKeyword($keyword, $bStemmed = false)
{
if (!is_array($this->__index))
return false;
if (is_array($keyword))
{
$arResult = array();
foreach ($keyword as $key => $word)
{
$arResult[$key] = $this->CheckKeyword($bStemmed ? $key : $word, $bStemmed);
}
return $arResult;
}
if (!$bStemmed && $this->bSearch)
$keyword = stemming($keyword, $this->__lang);
if (is_array($keyword))
return $this->CheckKeyword($keyword, true);
$arResult = array(
'TOTAL' => intval($this->__index['TOTAL'][$keyword]),
'BOLD' => intval($this->__index['BOLD'][$keyword]),
'ITALIC' => intval($this->__index['ITALIC'][$keyword]),
'LINK' => intval($this->__index['LINK'][$keyword]),
'LINK_EXTERNAL' => intval($this->__index['LINK_EXTERNAL'][$keyword]),
'DESCRIPTION' => intval($this->__index['DESCRIPTION'][$keyword]),
'KEYWORDS' => intval($this->__index['KEYWORDS'][$keyword]),
'TITLE' => intval($this->__index['TITLE'][$keyword]),
'H1' => intval($this->__index['H1'][$keyword]),
'CONTRAST' => $this->_GetContrast($keyword),
);
return $arResult;
}