• Модуль: main
  • Путь к файлу: ~/bitrix/modules/main/classes/general/hot_keys.php
  • Класс: CHotKeys
  • Вызов: CHotKeys::GetByUrl
public function GetByUrl($url)
{
	$this->LoadToCache();

	if(!is_array($this->arList))
		return false;

	$url = $this->CleanUrl($url);

	$arRet = false;
	foreach ($this->arList as $arCode)
	{
		$codeUrl = $this->CleanUrl($arCode["URL"]);

		if(($codeUrl == mb_substr($url, 0, mb_strlen($codeUrl)) && $codeUrl) || (!$arCode["CLASS_NAME"] && (!$arCode["URL"] || $arCode["URL"] == "*")))
			$arRet[] = $arCode;
	}

	return $arRet;
}