• Модуль: sale
  • Путь к файлу: ~/bitrix/modules/sale/lib/location/search/finder.php
  • Класс: BitrixSaleLocationSearchFinder
  • Вызов: Finder::setIndexedTypes
static function setIndexedTypes($types = array())
{
	$result = array();
	if(is_array($types) && !empty($types))
	{
		$typesFromDb = static::getTypesFromDb();

		foreach($types as $type)
		{
			$type = intval($type);
			if(isset($typesFromDb[$type]))
				$result[] = $type;
		}

		$result = array_unique($result);
	}

	Option::set('sale', self::SALE_LOCATION_INDEXED_TYPES_OPT, implode(':', $result), '');
}