- Модуль: iblock
- Путь к файлу: ~/bitrix/modules/iblock/lib/component/base.php
- Класс: BitrixIblockComponentBase
- Вызов: Base::getPropertyList
protected function getPropertyList($iblock, $propertyCodes)
{
$propertyList = array();
if (empty($propertyCodes))
return $propertyList;
$propertyCodes = array_fill_keys($propertyCodes, true);
$propertyIterator = IblockPropertyTable::getList(array(
'select' => array('ID', 'CODE', 'SORT'),
'filter' => array('=IBLOCK_ID' => $iblock, '=ACTIVE' => 'Y'),
'order' => array('SORT' => 'ASC', 'ID' => 'ASC')
));
while ($property = $propertyIterator->fetch())
{
$code = (string)$property['CODE'];
if ($code == '')
{
$code = $property['ID'];
}
if (!isset($propertyCodes[$code]))
continue;
$propertyList[] = $code;
}
return $propertyList;
}