1
0
mirror of synced 2024-11-26 23:36:08 +03:00
bitrix-module/intaro.retailcrm/lib/repository/measurerepository.php
Сергей Чазов a4c06ed8ee
New ICML generator
2021-05-31 16:33:02 +03:00

30 lines
626 B
PHP

<?php
namespace Intaro\RetailCrm\Repository;
use CCatalogMeasure;
/**
* Class MeasureRepository
* @package Intaro\RetailCrm\Repository
*/
class MeasureRepository
{
/**
* Получает доступные в Битриксе единицы измерения для товаров
*
* @return array
*/
public static function getMeasures(): array
{
$measures = [];
$resMeasure = CCatalogMeasure::getList();
while ($measure = $resMeasure->Fetch()) {
$measures[$measure['ID']] = $measure;
}
return $measures;
}
}