• Модуль: landing
  • Путь к файлу: ~/bitrix/modules/landing/lib/publicaction/demos.php
  • Класс: BitrixLandingPublicActionDemos
  • Вызов: Demos::isItemSuitable
static function isItemSuitable(array $item, array $filter = [])
{
	if ($filter)
	{
		foreach ($item as $key => $value)
		{
			$key = mb_strtoupper($key);
			if (isset($filter[$key]))
			{
				$value = (array)$value;
				$filter[$key] = (array)$filter[$key];
				if (!array_intersect($value, $filter[$key]))
				{
					return false;
				}
			}
		}
	}

	return true;
}