Bitrix-D7
23.9
Загрузка...
Поиск...
Не найдено
pricefieldassemblerfactory.php
1
<?php
2
3
namespace
Bitrix\Catalog\Grid\Row\Assembler\Factory
;
4
5
use
Bitrix\Catalog\Grid\Column\PriceProvider
;
6
use
Bitrix\Catalog\Grid\Row\Assembler\PriceFieldAssembler
;
7
use
Bitrix\Catalog\GroupTable
;
8
9
class
PriceFieldAssemblerFactory
10
{
11
public
function
createForCatalogPrices
():
PriceFieldAssembler
12
{
13
$columnIds = [];
14
15
foreach
(
GroupTable::getTypeList
() as $type)
16
{
17
$columnIds[] = PriceProvider::getPriceTypeColumnId(
18
(
int
)$type[
'ID'
]
19
);
20
}
21
22
return
new
PriceFieldAssembler
($columnIds);
23
}
24
}
Bitrix\Catalog\Grid\Column\PriceProvider
Definition
priceprovider.php:10
Bitrix\Catalog\Grid\Row\Assembler\Factory\PriceFieldAssemblerFactory
Definition
pricefieldassemblerfactory.php:10
Bitrix\Catalog\Grid\Row\Assembler\Factory\PriceFieldAssemblerFactory\createForCatalogPrices
createForCatalogPrices()
Definition
pricefieldassemblerfactory.php:11
Bitrix\Catalog\Grid\Row\Assembler\PriceFieldAssembler
Definition
pricefieldassembler.php:11
Bitrix\Catalog\GroupTable
Definition
group.php:44
Bitrix\Catalog\GroupTable\getTypeList
static getTypeList()
Definition
group.php:260
Bitrix\Catalog\Grid\Row\Assembler\Factory
Definition
pricefieldassemblerfactory.php:3
modules
catalog
lib
grid
row
assembler
factory
pricefieldassemblerfactory.php
Создано системой
1.10.0