• Модуль: sale
  • Путь к файлу: ~/bitrix/modules/sale/lib/tradingplatform/helper.php
  • Класс: BitrixSaleTradingPlatformHelper
  • Вызов: Helper::getPropertiesList
static function getPropertiesList($iblockId, $sectionId = 0)
{
	$result = CIBlockSectionPropertyLink::GetArray($iblockId, $sectionId);

	$rsProps = CIBlockProperty::GetList(array(
		"SORT" => "ASC",
		'ID' => 'ASC',
	), array(
		"IBLOCK_ID" => $iblockId,
		"CHECK_PERMISSIONS" => "N",
		"ACTIVE" => "Y",
	));

	while ($arProp = $rsProps->Fetch())
		if (isset($result[$arProp["ID"]]))
			$result[$arProp["ID"]]["NAME"] = $arProp["NAME"];

	return $result;
}