- Модуль: sale
- Путь к файлу: ~/bitrix/modules/sale/lib/helpers/admin/blocks/orderbasket.php
- Класс: BitrixSaleHelpersAdminBlocksOrderBasket
- Вызов: OrderBasket::getPropsList
static function getPropsList($iblockId, $skuPropertyId = 0)
{
if (self::$catalogIncluded === null)
self::$catalogIncluded = MainLoader::includeModule('catalog');
if (!self::$catalogIncluded)
return [];
$propertyIds = CatalogProductPropertyCatalogFeature::getOfferTreePropertyCodes($iblockId);
if ($propertyIds === null)
return [];
$arResult = [];
$filter = array(
'@ID' => $propertyIds,
'=IBLOCK_ID' => $iblockId,
);
if ($skuPropertyId > 0)
$filter['!=ID'] = $skuPropertyId;
$iterator = IblockPropertyTable::getList(array(
'select' => array('*'),
'filter' => $filter,
'order' => array(
'SORT' => 'ASC',
'NAME' => 'ASC'
)
));
while ($row = $iterator->fetch())
{
$row['USER_TYPE'] = (string)$row['USER_TYPE'];
$row['~NAME'] = $row['NAME'];
$row['NAME'] = htmlspecialcharsEx($row['NAME']);
$row['PROPERTY_USER_TYPE'] = ($row['USER_TYPE'] != '' ? CIBlockProperty::getUserType($row['USER_TYPE']) : array());
$arResult[] = $row;
}
unset($row, $iterator);
return $arResult;
}