Bitrix-D7
23.9
Загрузка...
Поиск...
Не найдено
measurefieldassembler.php
1
<?php
2
3
namespace
Bitrix\Catalog\Grid\Row\Assembler
;
4
5
use
Bitrix\Main\Grid\Row\Assembler\Field\ListFieldAssembler
;
6
use CCatalogMeasure;
7
8
final
class
MeasureFieldAssembler
extends
ListFieldAssembler
9
{
10
protected
function
getNames
(): array
11
{
12
$result = [];
13
14
$rows = CCatalogMeasure::getList();
15
while
($row = $rows->Fetch())
16
{
17
$id = (int)$row[
'ID'
];
18
$result[$id] = $row[
'MEASURE_TITLE'
];
19
}
20
21
return
$result;
22
}
23
}
Bitrix\Catalog\Grid\Row\Assembler\MeasureFieldAssembler
Definition
measurefieldassembler.php:9
Bitrix\Catalog\Grid\Row\Assembler\MeasureFieldAssembler\getNames
getNames()
Definition
measurefieldassembler.php:10
Bitrix\Main\Grid\Row\Assembler\Field\ListFieldAssembler
Definition
listfieldassembler.php:11
Bitrix\Catalog\Grid\Row\Assembler
modules
catalog
lib
grid
row
assembler
measurefieldassembler.php
Создано системой
1.10.0