Bitrix-D7 23.9
 
Загрузка...
Поиск...
Не найдено
productgroupactionsitem.php
1<?php
2
4
11
16{
18 {
19 parent::__construct($iblockId, $rights, $listMode);
20 }
21
22 protected function prepareChildItems(): array
23 {
24 $result = parent::prepareChildItems();
25
26 if ($this->rights->canEditElements())
27 {
28 $result[] = new ConvertToServiceGroupChild($this->iblockId, $this->rights, $this->listMode);
29 $result[] = new ConvertToProductGroupChild($this->iblockId, $this->rights, $this->listMode);
30 $result[] = new SetParametersGroupChild($this->iblockId, $this->rights, $this->listMode);
31 }
32
33 if ($this->rights->canEditPrices())
34 {
35 $result[] = new ChangePricesGroupChild();
36 }
37
38 return $result;
39 }
40}
__construct(int $iblockId, ProductRightsChecker $rights, string $listMode)