Bitrix-D7
23.9
Загрузка...
Поиск...
Не найдено
catalogprovider.php
1
<?php
2
3
namespace
Bitrix\Catalog\Grid\Column
;
4
5
use
Bitrix\Main\Loader
;
6
use
Bitrix\Catalog\Access
;
7
use
Bitrix\Iblock
;
8
9
Loader::requireModule(
'iblock'
);
10
11
abstract
class
CatalogProvider
extends
Iblock\Grid\Column\BaseElementProvider
12
{
13
protected
Access\AccessController
$accessController
;
14
15
public
function
__construct
(
Iblock
\
Grid
\
Entity
\ElementSettings $settings)
16
{
17
parent::__construct($settings);
18
19
$this->accessController = Access\AccessController::getCurrent();
20
}
21
22
protected
function
allowProductEdit
(): bool
23
{
24
return
$this->accessController->check(
Access
\
ActionDictionary::ACTION_PRODUCT_EDIT
);
25
}
26
}
Bitrix\Catalog\Access\AccessController
Definition
AccessController.php:28
Bitrix\Catalog\Access\ActionDictionary\ACTION_PRODUCT_EDIT
const ACTION_PRODUCT_EDIT
Definition
ActionDictionary.php:60
Bitrix\Catalog\Grid\Column\CatalogProvider
Definition
catalogprovider.php:12
Bitrix\Catalog\Grid\Column\CatalogProvider\$accessController
Access AccessController $accessController
Definition
catalogprovider.php:13
Bitrix\Catalog\Grid\Column\CatalogProvider\allowProductEdit
allowProductEdit()
Definition
catalogprovider.php:22
Bitrix\Catalog\Grid\Column\CatalogProvider\__construct
__construct(Iblock\Grid\Entity\ElementSettings $settings)
Definition
catalogprovider.php:15
Bitrix\Catalog\Model\Entity
Definition
entity.php:12
Bitrix\Iblock\Grid\Column\BaseElementProvider
Definition
baseelementprovider.php:12
Bitrix\Iblock\Iblock
Definition
iblock.php:18
Bitrix\Main\Grid\Grid
Definition
grid.php:74
Bitrix\Main\Loader
Definition
loader.php:12
Bitrix\Rest\Engine\Access
Definition
access.php:19
Bitrix\Catalog\Access
Definition
AccessController.php:9
Bitrix\Catalog\Grid\Column
Definition
barcodeprovider.php:3
Bitrix\Iblock
modules
catalog
lib
grid
column
catalogprovider.php
Создано системой
1.10.0