• Модуль: crmmobile
  • Путь к файлу: ~/bitrix/modules/crmmobile/lib/ProductGrid/Enricher/CompleteStores.php
  • Класс: BitrixCrmMobileProductGridEnricherCompleteStores
  • Вызов: CompleteStores::getStoreName
private function getStoreName(ProductRowViewModel $productRow): ?string
{
	$source = $productRow->source->toArray();

	$storeId = isset($source['STORE_ID']) ? (int)$source['STORE_ID'] : 0;
	if ($storeId && !$this->hasStoreAccess($storeId))
	{
		return null;
	}

	if ($storeId)
	{
		$store = StoreTable::getById($storeId)->fetch();
		if ($store)
		{
			return (string)$store['TITLE'];
		}
	}

	return null;
}