• Модуль: sale
  • Путь к файлу: ~/bitrix/modules/sale/lib/location/search/finder.php
  • Класс: BitrixSaleLocationSearchFinder
  • Вызов: Finder::getIndexedTypes
static function getIndexedTypes()
{
	$types = Option::get('sale', self::SALE_LOCATION_INDEXED_TYPES_OPT, '', '');
	$typesFromDb = static::getTypesFromDb();

	if($types == '') // means "all"
		return array_keys($typesFromDb);

	$types = explode(':', $types);
	$result = array();

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

	return array_unique($result);
}