Bitrix-D7 23.9
 
Загрузка...
Поиск...
Не найдено
elementsettings.php
1<?php
2
4
7
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
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}