- Модуль: catalog
- Путь к файлу: ~/bitrix/modules/catalog/lib/group.php
- Класс: BitrixCatalogGroupTable
- Вызов: GroupTable::getBasePriceType
static function getBasePriceType(): ?array
{
$row = self::getList([
'select' => [
'ID',
'NAME',
'BASE',
'SORT',
'XML_ID',
'NAME_LANG' =>'CURRENT_LANG.NAME',
],
'filter' => [
'=BASE' => 'Y',
],
'cache' => [
'ttl' => 86400,
],
])->fetch();
if (!empty($row))
{
$row['ID'] = (int)$row['ID'];
$row['SORT'] = (int)$row['SORT'];
if ($row['NAME_LANG'] === '')
{
$row['NAME_LANG'] = null;
}
return $row;
}
return null;
}