• Модуль: sale
  • Путь к файлу: ~/bitrix/modules/sale/lib/helpers/admin/product.php
  • Класс: BitrixSaleHelpersAdminProduct
  • Вызов: Product::getStoresData
private  function getStoresData($productId)
{
	$result = array();

	if(!$this->provider)
		return array();

	$productProvider = $this->provider;

	if($this->storesCount === null)
		$this->storesCount = $productProvider::GetStoresCount(array("SITE_ID" => $this->siteId));

	if(intval($this->storesCount <= 0))
		return array();

	$stores = $productProvider::GetProductStores(array("PRODUCT_ID" => $productId, "SITE_ID" => $this->siteId));

	if($stores)
		$result = $stores;

	return $result;
}