ProductLoader::loadPropertiesData

  1. Bitrix24 API (v. 23.675.0)
  2. crm
  3. ProductLoader
  4. loadPropertiesData
  • Модуль: crm
  • Путь к файлу: ~/bitrix/modules/crm/lib/integration/documentgenerator/productloader.php
  • Класс: Bitrix\Crm\Integration\DocumentGenerator\ProductLoader
  • Вызов: ProductLoader::loadPropertiesData
protected function loadPropertiesData(int $iblockId, array $propertyIds = []): array
{
	$properties = [];
	$filter = ['ACTIVE' => 'Y'];
	$query = \CIBlock::GetProperties($iblockId, ['SORT' => 'ASC'], $filter);
	while ($property = $query->Fetch())
	{
		if (!$this->isPropertyPrintable($property))
		{
			continue;
		}
		if (!empty($propertyIds) && !in_array($property['ID'], $propertyIds))
		{
			continue;
		}
		$properties[(int)$property['ID']] = $property;
	}

	return $properties;
}

Добавить комментарий