• Модуль: crm
  • Путь к файлу: ~/bitrix/modules/crm/lib/integration/documentgenerator/dataprovider/order.php
  • Класс: Bitrix\Crm\Integration\DocumentGenerator\DataProvider\Order
  • Вызов: Order::getProperties
static function getProperties(): array
{
	if(static::$properties === null)
	{
		static::$properties = [];

		$registry = Registry::getInstance(Registry::REGISTRY_TYPE_ORDER);
		/** @var PropertyBase $propertyClassName */
		$propertyClassName = $registry->getPropertyClassName();
		$orderProperties = $propertyClassName::getList([
			'filter' => [
				'ACTIVE' => 'Y',
			],
		]);
		while($property = $orderProperties->fetch())
		{
			$field = [
				'TITLE' => $property['NAME'],
			];
			if($property['IS_PHONE'] === 'Y')
			{
				$field['TYPE'] = static::FIELD_TYPE_PHONE;
			}
			static::$properties['PROPERTY_'.$property['ID']] = $field;
		}
	}

	return static::$properties;
}