Bitrix-D7
23.9
Загрузка...
Поиск...
Не найдено
productgroupactionsitem.php
1
<?php
2
3
namespace
Bitrix\Catalog\Grid\Panel\UI\Item
;
4
5
use
Bitrix\Catalog\Grid\Access\ProductRightsChecker
;
6
use
Bitrix\Catalog\Grid\Panel\UI\Item\Group\ChangePricesGroupChild
;
7
use
Bitrix\Catalog\Grid\Panel\UI\Item\Group\ConvertToProductGroupChild
;
8
use
Bitrix\Catalog\Grid\Panel\UI\Item\Group\ConvertToServiceGroupChild
;
9
use
Bitrix\Catalog\Grid\Panel\UI\Item\Group\SetParametersGroupChild
;
10
use
Bitrix\Iblock\Grid\Panel\UI\Actions\Item\ElementGroupActionsItem
;
11
15
class
ProductGroupActionsItem
extends
ElementGroupActionsItem
16
{
17
public
function
__construct
(
int
$iblockId
,
ProductRightsChecker
$rights
,
string
$listMode
)
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
}
Bitrix\Catalog\Grid\Access\ProductRightsChecker
Definition
productrightschecker.php:13
Bitrix\Catalog\Grid\Panel\UI\Item\Group\ChangePricesGroupChild
Definition
changepricesgroupchild.php:25
Bitrix\Catalog\Grid\Panel\UI\Item\Group\ConvertToProductGroupChild
Definition
converttoproductgroupchild.php:20
Bitrix\Catalog\Grid\Panel\UI\Item\Group\ConvertToServiceGroupChild
Definition
converttoservicegroupchild.php:21
Bitrix\Catalog\Grid\Panel\UI\Item\Group\SetParametersGroupChild
Definition
setparametersgroupchild.php:33
Bitrix\Catalog\Grid\Panel\UI\Item\ProductGroupActionsItem
Definition
productgroupactionsitem.php:16
Bitrix\Catalog\Grid\Panel\UI\Item\ProductGroupActionsItem\prepareChildItems
prepareChildItems()
Definition
productgroupactionsitem.php:22
Bitrix\Catalog\Grid\Panel\UI\Item\ProductGroupActionsItem\__construct
__construct(int $iblockId, ProductRightsChecker $rights, string $listMode)
Definition
productgroupactionsitem.php:17
Bitrix\Iblock\Grid\Panel\UI\Actions\Item\ElementGroupActionsItem
Definition
elementgroupactionsitem.php:19
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\$rights
IblockRightsChecker $rights
Definition
elementgroupactionsitem.php:21
Bitrix\Catalog\Grid\Panel\UI\Item
Definition
changepricesactionsitem.php:3
modules
catalog
lib
grid
panel
ui
item
productgroupactionsitem.php
Создано системой
1.10.0