• Модуль: catalog
  • Путь к файлу: ~/bitrix/modules/catalog/lib/UI/PropertyProduct.php
  • Класс: BitrixCatalogUIPropertyProduct
  • Вызов: PropertyProduct::getDirectoryValue
static function getDirectoryValue(array $prop): ?string
{
	$hlblock = HighloadBlockTable::getRow([
		'filter' => [
			'=TABLE_NAME' => $prop['USER_TYPE_SETTINGS']['TABLE_NAME'],
		],
	]);

	if ($hlblock)
	{
		$entity = HighloadBlockTable::compileEntity($hlblock);
		$entityClass = $entity->getDataClass();
		$row = $entityClass::getRow([
			'filter' => [
				'=UF_XML_ID' => $prop['VALUE'],
			],
		]);

		if (isset($row['UF_NAME']))
		{
			return htmlspecialcharsbx($row['UF_NAME']);
		}

		return null;
	}

	return null;
}