Bitrix-D7
23.9
Загрузка...
Поиск...
Не найдено
twilio2.php
1
<?php
2
3
namespace
Bitrix\MessageService\Sender\Sms
;
4
5
use
Bitrix\Main\Config\Option
;
6
use
Bitrix\Main\ModuleManager
;
7
8
class
Twilio2
extends
Twilio
9
{
10
public
const
ID
=
'twilio2'
;
11
12
public
static
function
isSupported
()
13
{
14
return
(
15
ModuleManager::isModuleInstalled
(
'b24network'
)
16
|| Option::get(
'messageservice'
,
'twilio2_enabled'
,
'N'
) ===
'Y'
17
);
18
}
19
20
public
function
getName
()
21
{
22
return
parent::getName() .
' (2)'
;
23
}
24
25
public
function
getShortName
()
26
{
27
return
parent::getShortName() .
' (2)'
;
28
}
29
30
protected
function
getCallbackUrl
()
31
{
32
return
null
;
33
}
34
35
public
function
getConfigComponentTemplatePageName
(): string
36
{
37
return
parent::getId();
38
}
39
}
Bitrix\Main\Config\Option
Definition
option.php:15
Bitrix\Main\ModuleManager
Definition
modulemanager.php:5
Bitrix\Main\ModuleManager\isModuleInstalled
static isModuleInstalled($moduleName)
Definition
modulemanager.php:67
Bitrix\MessageService\Sender\Sms\Twilio2
Definition
twilio2.php:9
Bitrix\MessageService\Sender\Sms\Twilio2\ID
const ID
Definition
twilio2.php:10
Bitrix\MessageService\Sender\Sms\Twilio2\getCallbackUrl
getCallbackUrl()
Definition
twilio2.php:30
Bitrix\MessageService\Sender\Sms\Twilio2\getName
getName()
Definition
twilio2.php:20
Bitrix\MessageService\Sender\Sms\Twilio2\getShortName
getShortName()
Definition
twilio2.php:25
Bitrix\MessageService\Sender\Sms\Twilio2\getConfigComponentTemplatePageName
getConfigComponentTemplatePageName()
Definition
twilio2.php:35
Bitrix\MessageService\Sender\Sms\Twilio2\isSupported
static isSupported()
Definition
twilio2.php:12
Bitrix\MessageService\Sender\Sms\Twilio
Definition
twilio.php:25
Bitrix\MessageService\Sender\Sms
Definition
dummy.php:2
modules
messageservice
lib
sender
sms
twilio2.php
Создано системой
1.10.0