Bitrix-D7
23.9
Загрузка...
Поиск...
Не найдено
DemoManager.php
1
<?php
2
3
namespace
Bitrix\MessageService\Providers\Base
;
4
5
use
Bitrix\MessageService\Providers
;
6
use
Bitrix\MessageService\Providers\OptionManager
;
7
8
class
DemoManager
implements
Providers\DemoManager
9
{
10
protected
OptionManager
$optionManager
;
11
12
public
function
__construct
(
OptionManager
$optionManager
)
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
}
Bitrix\MessageService\Providers\Base\DemoManager
Definition
DemoManager.php:9
Bitrix\MessageService\Providers\Base\DemoManager\disableDemo
disableDemo()
Definition
DemoManager.php:22
Bitrix\MessageService\Providers\Base\DemoManager\$optionManager
OptionManager $optionManager
Definition
DemoManager.php:10
Bitrix\MessageService\Providers\Base\DemoManager\__construct
__construct(OptionManager $optionManager)
Definition
DemoManager.php:12
Bitrix\MessageService\Providers\Base\DemoManager\enableDemo
enableDemo()
Definition
DemoManager.php:29
Bitrix\MessageService\Providers\Base\DemoManager\isDemo
isDemo()
Definition
DemoManager.php:17
Bitrix\MessageService\Providers\DemoManager
Definition
DemoManager.php:6
Bitrix\MessageService\Providers\OptionManager
Definition
OptionManager.php:5
Bitrix\MessageService\Providers\Base
Definition
DemoManager.php:3
Bitrix\MessageService\Providers
modules
messageservice
lib
Providers
Base
DemoManager.php
Создано системой
1.10.0