Bitrix-D7 23.9
 
Загрузка...
Поиск...
Не найдено
DemoManager.php
1<?php
2
4
7
9{
11
13 {
14 $this->optionManager = $optionManager;
15 }
16
17 public function isDemo(): bool
18 {
19 return ($this->optionManager->getOption(self::IS_DEMO) === true);
20 }
21
22 public function disableDemo(): DemoManager
23 {
24 $this->optionManager->setOption(self::IS_DEMO, false);
25
26 return $this;
27 }
28
29 public function enableDemo(): DemoManager
30 {
31 $this->optionManager->setOption(self::IS_DEMO, true);
32
33 return $this;
34 }
35}
__construct(OptionManager $optionManager)