Bitrix-D7
23.9
Загрузка...
Поиск...
Не найдено
toolshowsettings.php
1
<?php
2
3
namespace
Bitrix\Mail\Integration\Intranet
;
4
5
use
Bitrix\Main\Loader
;
6
use Bitrix\Intranet\Settings\Tools;
7
8
final
class
ToolShowSettings
9
{
10
private
const
MAIL_TOOL_ID =
'mail'
;
11
private
const
MAIL_SLIDER_CODE =
'limit_contact_center_mail_off'
;
12
13
private
bool
$isExistIntranetToolsManager;
14
15
public
function
__construct
()
16
{
17
$this->isExistIntranetToolsManager = (
18
Loader::includeModule(
'intranet'
)
19
&& class_exists(
'\Bitrix\Intranet\Settings\Tools\ToolsManager'
)
20
);
21
}
22
23
public
function
isMailAvailable
(): bool
24
{
25
if
($this->isExistIntranetToolsManager)
26
{
27
return
Tools\ToolsManager::getInstance()->checkAvailabilityByToolId(self::MAIL_TOOL_ID);
28
}
29
30
return
true
;
31
}
32
33
public
function
getMailLimitSliderCode
(): string
34
{
35
return
self::MAIL_SLIDER_CODE;
36
}
37
}
Bitrix\Mail\Integration\Intranet\ToolShowSettings
Definition
toolshowsettings.php:9
Bitrix\Mail\Integration\Intranet\ToolShowSettings\__construct
__construct()
Definition
toolshowsettings.php:15
Bitrix\Mail\Integration\Intranet\ToolShowSettings\isMailAvailable
isMailAvailable()
Definition
toolshowsettings.php:23
Bitrix\Mail\Integration\Intranet\ToolShowSettings\getMailLimitSliderCode
getMailLimitSliderCode()
Definition
toolshowsettings.php:33
Bitrix\Main\Loader
Definition
loader.php:12
Bitrix\Mail\Integration\Intranet
Definition
secretary.php:2
modules
mail
lib
integration
intranet
toolshowsettings.php
Создано системой
1.10.0