Bitrix-D7 23.9
 
Загрузка...
Поиск...
Не найдено
baseelementprovider.php
1<?php
2
4
7
11abstract class BaseElementProvider extends DataProvider
12{
13 public function __construct(Entity\ElementSettings $settings)
14 {
15 parent::__construct($settings);
16 }
17
18 protected function getIblockId(): int
19 {
20 return $this->getSettings()->getIblockId();
21 }
22
23 protected function isSkuSelectorEnabled(): bool
24 {
25 return $this->getSettings()->isSkuSelectorEnabled();
26 }
27
28 protected function isNewCardEnabled(): bool
29 {
30 return $this->getSettings()->isNewCardEnabled();
31 }
32}
__construct(Entity\ElementSettings $settings)