• Модуль: catalog
  • Путь к файлу: ~/bitrix/modules/catalog/lib/controller/product.php
  • Класс: Bitrix\Catalog\Controller\Product
  • Вызов: Product::checkFieldsDownload
protected function checkFieldsDownload($fields)
{
	$name = $fields['NAME'];
	$iblockId = $fields['IBLOCK_ID'];

	if ($name === "DETAIL_PICTURE")
		return true;
	elseif ($name === "PREVIEW_PICTURE")
		return true;
	elseif ($name === "PICTURE")
		return true;
	elseif (!preg_match("/^PROPERTY_(.+)\$/", $name, $match))
		return false;
	else
	{
		$db_prop = \CIBlockProperty::GetPropertyArray($match[1], $iblockId);
		if(is_array($db_prop) && $db_prop["PROPERTY_TYPE"] === "F")
			return true;
	}
	return false;
}