Bitrix-D7 23.9
 
Загрузка...
Поиск...
Не найдено
elementgroupactionsitem.php
1<?php
2
4
15
16Loc::loadMessages(__FILE__);
17
19{
20 protected int $iblockId;
22 protected string $listMode;
23
25 {
26 $this->iblockId = $iblockId;
27 $this->rights = $rights;
28 $this->listMode = $listMode;
29 }
30
31 protected function prepareChildItems(): array
32 {
33 if ($this->rights->canEditElements())
34 {
35 return [
36 new ActivateGroupChild($this->iblockId, $this->rights, $this->listMode),
37 new DeactivateGroupChild($this->iblockId, $this->rights, $this->listMode),
38 new CreateCodeGroupChild($this->iblockId, $this->rights, $this->listMode),
39 new ClearCounterGroupChild($this->iblockId, $this->rights, $this->listMode),
40 new MoveToSectionGroupChild($this->iblockId, $this->rights, $this->listMode),
41 new AddToSectionGroupChild($this->iblockId, $this->rights, $this->listMode),
42 ];
43 }
44
45 return [];
46 }
47}
__construct(int $iblockId, IblockRightsChecker $rights, string $listMode)
static loadMessages($file)
Definition loc.php:64