Bitrix-D7
23.9
Загрузка...
Поиск...
Не найдено
Informant.php
1
<?php
2
3
namespace
Bitrix\MessageService\Providers\Base
;
4
5
use
Bitrix\MessageService\MessageType
;
6
use
Bitrix\MessageService\Providers
;
7
8
abstract
class
Informant
implements
Providers\Informant
9
{
10
public
function
getType
(): string
11
{
12
return
MessageType::SMS
;
13
}
14
15
public
function
getExternalId
(): string
16
{
17
return
$this->
getType
() .
':'
. $this->
getId
();
18
}
19
20
public
function
getManageUrl
(): string
21
{
22
if
(defined(
'ADMIN_SECTION'
) && ADMIN_SECTION ===
true
)
23
{
24
return
'messageservice_sender_sms.php?sender_id='
.$this->getId();
25
}
26
27
return
$this->
isConfigurable
() ?
'/crm/configs/sms/?sender='
. $this->
getId
() :
''
;
28
}
29
}
Bitrix\MessageService\MessageType
Definition
messagetype.php:5
Bitrix\MessageService\MessageType\SMS
const SMS
Definition
messagetype.php:6
Bitrix\MessageService\Providers\Base\Informant
Definition
Informant.php:9
Bitrix\MessageService\Providers\Base\Informant\getType
getType()
Definition
Informant.php:10
Bitrix\MessageService\Providers\Base\Informant\getManageUrl
getManageUrl()
Definition
Informant.php:20
Bitrix\MessageService\Providers\Base\Informant\getExternalId
getExternalId()
Definition
Informant.php:15
Bitrix\MessageService\Providers\Informant
Definition
Informant.php:6
Bitrix\MessageService\Providers\Informant\getId
getId()
Bitrix\MessageService\Providers\Informant\isConfigurable
isConfigurable()
Bitrix\MessageService\Providers\Base
Definition
DemoManager.php:3
Bitrix\MessageService\Providers
modules
messageservice
lib
Providers
Base
Informant.php
Создано системой
1.10.0