1C-Bitrix
25.700.0
Загрузка...
Поиск...
Не найдено
messagewebhook.php
См. документацию.
1
<?php
8
9
namespace
Bitrix\Sender\Integration\Sender\WebHook
;
10
11
use
Bitrix\Main\Localization\Loc
;
12
use
Bitrix\Main\Result
;
13
use
Bitrix\Sender\Message
;
14
use
Bitrix\Sender\Entity
;
15
16
Loc::loadMessages(__FILE__);
17
22
class
MessageWebHook
implements
Message\iBase
23
{
24
const
CODE
= self::CODE_WEB_HOOK;
25
31
public
function
getName
()
32
{
33
return
Loc::getMessage(
'SENDER_INTEGRATION_WEBHOOK_MESSAGE_NAME'
);
34
}
35
41
public
function
getCode
()
42
{
43
return
static::CODE;
44
}
45
51
public
function
getSupportedTransports
()
52
{
53
return
array
(
TransportWebHook::CODE
);
54
}
55
63
public
function
loadConfiguration
($id =
null
)
64
{
65
$configuration =
new
Message\Configuration
();
66
$configuration->setArrayOptions(
array
(
67
array
(
68
'type'
=>
'string'
,
69
'code'
=>
'URI'
,
70
'name'
=> Loc::getMessage(
'SENDER_INTEGRATION_WEBHOOK_MESSAGE_CONFIG_URI'
),
71
'required'
=>
true
,
72
),
73
));
74
75
return
Entity\Message::create()
76
->setCode($this->
getCode
())
77
->loadConfiguration($id, $configuration);
78
}
79
87
public
function
saveConfiguration
(
Message
\
Configuration
$configuration)
88
{
89
return
Entity\Message::create()
90
->setCode($this->
getCode
())
91
->saveConfiguration($configuration);
92
}
93
100
public
function
copyConfiguration
($id)
101
{
102
return
Entity\Message::create()
103
->setCode($this->
getCode
())
104
->copyConfiguration($id);
105
}
106
}
Bitrix\Main\Config\Configuration
Определения
configuration.php:9
Bitrix\Main\Localization\Loc
Определения
loc.php:12
Bitrix\Main\ORM\Data\Result
Определения
result.php:16
Bitrix\Sender\Integration\Sender\WebHook\MessageWebHook
Определения
messagewebhook.php:23
Bitrix\Sender\Integration\Sender\WebHook\MessageWebHook\CODE
const CODE
Определения
messagewebhook.php:24
Bitrix\Sender\Integration\Sender\WebHook\MessageWebHook\getName
getName()
Определения
messagewebhook.php:31
Bitrix\Sender\Integration\Sender\WebHook\MessageWebHook\loadConfiguration
loadConfiguration($id=null)
Определения
messagewebhook.php:63
Bitrix\Sender\Integration\Sender\WebHook\MessageWebHook\getCode
getCode()
Определения
messagewebhook.php:41
Bitrix\Sender\Integration\Sender\WebHook\MessageWebHook\copyConfiguration
copyConfiguration($id)
Определения
messagewebhook.php:100
Bitrix\Sender\Integration\Sender\WebHook\MessageWebHook\saveConfiguration
saveConfiguration(Message\Configuration $configuration)
Определения
messagewebhook.php:87
Bitrix\Sender\Integration\Sender\WebHook\MessageWebHook\getSupportedTransports
getSupportedTransports()
Определения
messagewebhook.php:51
Bitrix\Sender\Integration\Sender\WebHook\TransportWebHook\CODE
const CODE
Определения
transportwebhook.php:27
array
</td ></tr ></table ></td ></tr >< tr >< td class="bx-popup-label bx-width30"><?=GetMessage("PAGE_NEW_TAGS")?> array( $site)
Определения
file_new.php:804
Bitrix\Sender\Message\iBase
Определения
ibase.php:16
Bitrix\Sender\Entity
Определения
ad.php:8
Bitrix\Sender\Integration\Sender\WebHook
Определения
messagewebhook.php:9
Bitrix\Sender\Message
Определения
adapter.php:9
bitrix
modules
sender
lib
integration
sender
webhook
messagewebhook.php
Создано системой
1.14.0