• Модуль: security
  • Путь к файлу: ~/bitrix/modules/security/lib/filter/request.php
  • Класс: BitrixSecurityFilterRequest
  • Вызов: Request::filter
public function filter(array $values, $isReturnChangedOnly = true)
{
	$this->onFilterStarted();

	foreach ($values as $key => &$val)
	{
		if (!isset($this->filteringMap[$key]))
		{
			continue;
		}

		if (!is_array($val))
		{
			continue;
		}

		$val = $this->filterArray(
			$key,
			$val,
			$this->filteringMap[$key]['Name'],
			$this->filteringMap[$key]['SkipRegExp'] ?? ''
		);
	}
	unset($val);

	$this->onFilterFinished();

	if ($isReturnChangedOnly)
	{
		return array_intersect_key($values, $this->changedContext);
	}
	return $values;
}