• Модуль: security
  • Путь к файлу: ~/bitrix/modules/security/lib/xscanresulttable.php
  • Класс: BitrixSecurityXScanResultTable
  • Вызов: XScanResultTable::deleteList
static function deleteList(array $filter)
{
	$entity = static::getEntity();
	$connection = $entity->getConnection();

	$where = Query::buildFilterSql($entity, $filter);
	$where = $where ? 'WHERE ' . $where : '';

	$sql = sprintf(
		'DELETE FROM %s %s',
		$connection->getSqlHelper()->quote($entity->getDbTableName()),
		$where
	);

	$res = $connection->query($sql);

	return $res;
}