• Модуль: crm
  • Путь к файлу: ~/bitrix/modules/crm/lib/integration/documentgenerator/productloader.php
  • Класс: Bitrix\Crm\Integration\DocumentGenerator\ProductLoader
  • Вызов: ProductLoader::getFieldsStub
protected function getFieldsStub(): array
{
	if ($this->fields !== null)
	{
		return $this->fields;
	}

	$this->fields = [];

	$properties = array_merge($this->loadProductProperties(), $this->loadOfferProperties());
	foreach ($properties as $property)
	{
		if ($property['PROPERTY_TYPE'] === 'S' && $property['USER_TYPE'] === 'directory')
		{
			$this->addDirectoryFields($property);
			continue;
		}
		$field = $this->makeFieldFromProperty($property);
		if ($field)
		{
			$this->addField($property, $field);
		}
	}

	return $this->fields;
}