Bitrix-D7
23.9
Загрузка...
Поиск...
Не найдено
Informant.php
1
<?php
2
3
namespace
Bitrix\MessageService\Providers\Edna\SMS
;
4
5
use
Bitrix\Main\Localization\Loc
;
6
use
Bitrix\MessageService\Providers\Edna\RegionHelper
;
7
8
class
Informant
extends
\Bitrix\MessageService\Providers\Base\Informant
9
{
10
11
public
function
isConfigurable
(): bool
12
{
13
return
true
;
14
}
15
16
public
function
getId
(): string
17
{
18
return
Constants::ID
;
19
}
20
21
public
function
getName
(): string
22
{
23
return
Loc::getMessage
(
RegionHelper::getPhrase
(
'MESSAGESERVICE_SENDER_SMS_SMSEDNARU_NAME'
));
24
}
25
26
public
function
getShortName
(): string
27
{
28
if
(
RegionHelper::isInternational
())
29
{
30
return
'sms.edna.io'
;
31
}
32
33
return
'sms.edna.ru'
;
34
}
35
}
Bitrix\Main\Localization\Loc
Definition
loc.php:11
Bitrix\Main\Localization\Loc\getMessage
static getMessage($code, $replace=null, $language=null)
Definition
loc.php:29
Bitrix\MessageService\Providers\Base\Informant
Definition
Informant.php:9
Bitrix\MessageService\Providers\Edna\RegionHelper
Definition
RegionHelper.php:5
Bitrix\MessageService\Providers\Edna\RegionHelper\getPhrase
static getPhrase(string $phraseCode)
Definition
RegionHelper.php:22
Bitrix\MessageService\Providers\Edna\RegionHelper\isInternational
static isInternational()
Definition
RegionHelper.php:10
Bitrix\MessageService\Providers\Edna\SMS\Constants\ID
const ID
Definition
Constants.php:9
Bitrix\MessageService\Providers\Edna\SMS\Informant
Definition
Informant.php:9
Bitrix\MessageService\Providers\Edna\SMS\Informant\getId
getId()
Definition
Informant.php:16
Bitrix\MessageService\Providers\Edna\SMS\Informant\getName
getName()
Definition
Informant.php:21
Bitrix\MessageService\Providers\Edna\SMS\Informant\isConfigurable
isConfigurable()
Definition
Informant.php:11
Bitrix\MessageService\Providers\Edna\SMS\Informant\getShortName
getShortName()
Definition
Informant.php:26
Bitrix\MessageService\Providers\Edna\SMS
Definition
Constants.php:3
modules
messageservice
lib
Providers
Edna
SMS
Informant.php
Создано системой
1.10.0