• Модуль: iblock
  • Путь к файлу: ~/bitrix/modules/iblock/classes/general/comp_pricetools.php
  • Класс: CIBlockPriceTools
  • Вызов: CIBlockPriceTools::GetAllowCatalogPrices
static function GetAllowCatalogPrices($arPriceTypes)
{
	$arResult = array();
	if (empty($arPriceTypes) || !is_array($arPriceTypes))
		return $arResult;

	foreach ($arPriceTypes as $arOnePriceType)
	{
		if ($arOnePriceType['CAN_VIEW'] || $arOnePriceType['CAN_BUY'])
			$arResult[] = (int)$arOnePriceType['ID'];
	}
	unset($arOnePriceType);
	if (!empty($arResult))
		MainTypeCollection::normalizeArrayValuesByInt($arResult, true);
	return $arResult;
}