Bitrix-D7 23.9
 
Загрузка...
Поиск...
Не найдено
ProductRepository.php
1<?php
2
4
9
19{
21 protected $factory;
22
30 {
31 parent::__construct($factory, $iblockInfo);
32 }
33
34 protected function getAdditionalFilter(): array
35 {
36 $filter = parent::getAdditionalFilter();
37 $filter['IBLOCK_ID'] = $this->iblockInfo->getProductIblockId();
38
39 return $filter;
40 }
41
42 protected function getAdditionalProductFilter(): array
43 {
44 $filter = parent::getAdditionalProductFilter();
45
46 $filter['=TYPE'] = [
51 ];
52
53 return $filter;
54 }
55
56 protected function makeEntity(array $fields = []): BaseIblockElementEntity
57 {
58 return $this->factory->createEntity();
59 }
60}
__construct(ProductFactory $factory, IblockInfo $iblockInfo)