Bitrix-D7
23.9
Загрузка...
Поиск...
Не найдено
elementsettings.php
1
<?php
2
3
namespace
Bitrix\Iblock\Grid\Entity
;
4
5
use
Bitrix\Main\Loader
;
6
use
Bitrix\Iblock\Url\AdminPage\BaseBuilder
;
7
8
class
ElementSettings
extends
IblockSettings
9
{
10
private
bool
$isUseBusinessProcesses;
11
private
bool
$isUseWorkflow;
12
private
?
BaseBuilder
$urlBuilder =
null
;
13
private
bool
$isSkuSelectorEnable =
false
;
14
private
bool
$isNewCardEnabled =
false
;
15
private
?array $selectedProductOfferIds =
null
;
16
17
protected
function
init
(): void
18
{
19
parent::init();
20
21
$this->
isUseBusinessProcesses
=
22
$this->iblockFields[
'BIZPROC'
] ===
'Y'
23
&& Loader::includeModule(
'bizproc'
)
24
;
25
26
$this->
isUseWorkflow
=
27
$this->iblockFields[
'WORKFLOW'
] ===
'Y'
28
&& Loader::includeModule(
'workflow'
)
29
;
30
}
31
32
public
function
isUseBusinessProcesses
(): bool
33
{
34
return
$this->isUseBusinessProcesses;
35
}
36
37
public
function
isUseWorkflow
(): bool
38
{
39
return
$this->isUseWorkflow;
40
}
41
42
public
function
getUrlBuilder
(): ?
BaseBuilder
43
{
44
return
$this->urlBuilder;
45
}
46
47
public
function
setUrlBuilder
(
BaseBuilder
$urlBuilder): self
48
{
49
$this->urlBuilder = $urlBuilder;
50
51
return
$this;
52
}
53
54
public
function
isSkuSelectorEnabled
(): bool
55
{
56
return
$this->isSkuSelectorEnable;
57
}
58
59
public
function
setSkuSelectorEnable
(
bool
$value): self
60
{
61
$this->isSkuSelectorEnable = $value;
62
63
return
$this;
64
}
65
66
public
function
getSelectedProductOfferIds
(): ?array
67
{
68
return
$this->selectedProductOfferIds;
69
}
70
71
public
function
setSelectedProductOfferIds
(array $value): self
72
{
73
$this->selectedProductOfferIds = $value;
74
75
return
$this;
76
}
77
78
public
function
setNewCardEnabled
(
bool
$value): self
79
{
80
$this->
isNewCardEnabled
= $value;
81
82
return
$this;
83
}
84
85
public
function
isNewCardEnabled
(): bool
86
{
87
return
$this->isNewCardEnabled;
88
}
89
}
Bitrix\Iblock\Grid\Entity\ElementSettings
Definition
elementsettings.php:9
Bitrix\Iblock\Grid\Entity\ElementSettings\isUseBusinessProcesses
isUseBusinessProcesses()
Definition
elementsettings.php:32
Bitrix\Iblock\Grid\Entity\ElementSettings\isNewCardEnabled
isNewCardEnabled()
Definition
elementsettings.php:85
Bitrix\Iblock\Grid\Entity\ElementSettings\setSelectedProductOfferIds
setSelectedProductOfferIds(array $value)
Definition
elementsettings.php:71
Bitrix\Iblock\Grid\Entity\ElementSettings\setUrlBuilder
setUrlBuilder(BaseBuilder $urlBuilder)
Definition
elementsettings.php:47
Bitrix\Iblock\Grid\Entity\ElementSettings\getSelectedProductOfferIds
getSelectedProductOfferIds()
Definition
elementsettings.php:66
Bitrix\Iblock\Grid\Entity\ElementSettings\init
init()
Definition
elementsettings.php:17
Bitrix\Iblock\Grid\Entity\ElementSettings\isSkuSelectorEnabled
isSkuSelectorEnabled()
Definition
elementsettings.php:54
Bitrix\Iblock\Grid\Entity\ElementSettings\getUrlBuilder
getUrlBuilder()
Definition
elementsettings.php:42
Bitrix\Iblock\Grid\Entity\ElementSettings\isUseWorkflow
isUseWorkflow()
Definition
elementsettings.php:37
Bitrix\Iblock\Grid\Entity\ElementSettings\setNewCardEnabled
setNewCardEnabled(bool $value)
Definition
elementsettings.php:78
Bitrix\Iblock\Grid\Entity\ElementSettings\setSkuSelectorEnable
setSkuSelectorEnable(bool $value)
Definition
elementsettings.php:59
Bitrix\Iblock\Grid\Entity\IblockSettings
Definition
iblocksettings.php:12
Bitrix\Iblock\Url\AdminPage\BaseBuilder
Definition
basebuilder.php:8
Bitrix\Main\Loader
Definition
loader.php:12
Bitrix\Iblock\Grid\Entity
Definition
elementsettings.php:3
modules
iblock
lib
grid
entity
elementsettings.php
Создано системой
1.10.0