Bitrix-D7
23.9
Загрузка...
Поиск...
Не найдено
vatfieldassembler.php
1
<?php
2
3
namespace
Bitrix\Catalog\Grid\Row\Assembler
;
4
5
use
Bitrix\Catalog\VatTable
;
6
use
Bitrix\Main\Grid\Row\Assembler\Field\ListFieldAssembler
;
7
8
final
class
VatFieldAssembler
extends
ListFieldAssembler
9
{
10
protected
function
getNames
(): array
11
{
12
$result = [];
13
14
$rows =
VatTable::getList
([
15
'select'
=> [
16
'ID'
,
17
'NAME'
,
18
],
19
]);
20
21
foreach
($rows as $row)
22
{
23
$id = $row[
'ID'
];
24
$result[$id] = $row[
'NAME'
];
25
}
26
27
return
$result;
28
}
29
}
Bitrix\Catalog\Grid\Row\Assembler\VatFieldAssembler
Definition
vatfieldassembler.php:9
Bitrix\Catalog\Grid\Row\Assembler\VatFieldAssembler\getNames
getNames()
Definition
vatfieldassembler.php:10
Bitrix\Catalog\VatTable
Definition
vat.php:38
Bitrix\Main\Grid\Row\Assembler\Field\ListFieldAssembler
Definition
listfieldassembler.php:11
Bitrix\Main\ORM\Data\DataManager\getList
static getList(array $parameters=array())
Definition
datamanager.php:441
Bitrix\Catalog\Grid\Row\Assembler
modules
catalog
lib
grid
row
assembler
vatfieldassembler.php
Создано системой
1.10.0