Bitrix-D7
23.9
Загрузка...
Поиск...
Не найдено
elementgroupactionsitem.php
1
<?php
2
3
namespace
Bitrix\Iblock\Grid\Panel\UI\Actions\Item
;
4
5
use
Bitrix\Iblock\Grid\Access\IblockRightsChecker
;
6
use
Bitrix\Iblock\Grid\Panel\UI\Actions\Item\ElementGroup\ActivateGroupChild
;
7
use
Bitrix\Iblock\Grid\Panel\UI\Actions\Item\ElementGroup\AddToSectionGroupChild
;
8
use
Bitrix\Iblock\Grid\Panel\UI\Actions\Item\ElementGroup\ClearCounterGroupChild
;
9
use
Bitrix\Iblock\Grid\Panel\UI\Actions\Item\ElementGroup\CreateCodeGroupChild
;
10
use
Bitrix\Iblock\Grid\Panel\UI\Actions\Item\ElementGroup\DeactivateGroupChild
;
11
use
Bitrix\Iblock\Grid\Panel\UI\Actions\Item\ElementGroup\MoveToSectionGroupChild
;
12
use
Bitrix\Iblock\IblockTable
;
13
use
Bitrix\Main\Grid\Panel\Action\GroupAction
;
14
use
Bitrix\Main\Localization\Loc
;
15
16
Loc::loadMessages
(__FILE__);
17
18
class
ElementGroupActionsItem
extends
GroupAction
19
{
20
protected
int
$iblockId
;
21
protected
IblockRightsChecker
$rights
;
22
protected
string
$listMode
;
23
24
public
function
__construct
(
int
$iblockId
,
IblockRightsChecker
$rights
,
string
$listMode
)
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
}
Bitrix\Iblock\Grid\Access\IblockRightsChecker
Definition
iblockrightschecker.php:10
Bitrix\Iblock\Grid\Panel\UI\Actions\Item\ElementGroup\ActivateGroupChild
Definition
activategroupchild.php:19
Bitrix\Iblock\Grid\Panel\UI\Actions\Item\ElementGroup\AddToSectionGroupChild
Definition
addtosectiongroupchild.php:24
Bitrix\Iblock\Grid\Panel\UI\Actions\Item\ElementGroup\ClearCounterGroupChild
Definition
clearcountergroupchild.php:22
Bitrix\Iblock\Grid\Panel\UI\Actions\Item\ElementGroup\CreateCodeGroupChild
Definition
createcodegroupchild.php:26
Bitrix\Iblock\Grid\Panel\UI\Actions\Item\ElementGroup\DeactivateGroupChild
Definition
deactivategroupchild.php:19
Bitrix\Iblock\Grid\Panel\UI\Actions\Item\ElementGroup\MoveToSectionGroupChild
Definition
movetosectiongroupchild.php:24
Bitrix\Iblock\Grid\Panel\UI\Actions\Item\ElementGroupActionsItem
Definition
elementgroupactionsitem.php:19
Bitrix\Iblock\Grid\Panel\UI\Actions\Item\ElementGroupActionsItem\prepareChildItems
prepareChildItems()
Definition
elementgroupactionsitem.php:31
Bitrix\Iblock\Grid\Panel\UI\Actions\Item\ElementGroupActionsItem\$listMode
string $listMode
Definition
elementgroupactionsitem.php:22
Bitrix\Iblock\Grid\Panel\UI\Actions\Item\ElementGroupActionsItem\$iblockId
int $iblockId
Definition
elementgroupactionsitem.php:20
Bitrix\Iblock\Grid\Panel\UI\Actions\Item\ElementGroupActionsItem\__construct
__construct(int $iblockId, IblockRightsChecker $rights, string $listMode)
Definition
elementgroupactionsitem.php:24
Bitrix\Iblock\Grid\Panel\UI\Actions\Item\ElementGroupActionsItem\$rights
IblockRightsChecker $rights
Definition
elementgroupactionsitem.php:21
Bitrix\Iblock\IblockTable
Definition
iblocktable.php:79
Bitrix\Main\Grid\Panel\Action\GroupAction
Definition
groupaction.php:14
Bitrix\Main\Localization\Loc
Definition
loc.php:11
Bitrix\Main\Localization\Loc\loadMessages
static loadMessages($file)
Definition
loc.php:64
Bitrix\Iblock\Grid\Panel\UI\Actions\Item
Definition
editactionsitem.php:3
modules
iblock
lib
grid
panel
ui
actions
item
elementgroupactionsitem.php
Создано системой
1.10.0