• Модуль: security
  • Путь к файлу: ~/bitrix/modules/security/lib/controller/xscan.php
  • Класс: BitrixSecurityControllerXscan
  • Вызов: Xscan::hideAction
public function hideAction(string $file)
{
	$file = '/' . trim($file, '/');
	$msg = '';

	$ent = XScanResultTable::getList(['select' => ['id'], 'filter' => ['src' => $file]])->fetch();

	if ($ent)
	{
		XScanResultTable::delete($ent['id']);
		$msg = CBitrixXscan::ShowMsg(Loc::getMessage("BITRIX_XSCAN_HIDED") . htmlspecialcharsbx($file));
	}

	return $msg;
}