Bitrix-D7
23.9
Загрузка...
Поиск...
Не найдено
alerttemplate.php
1
<?php
2
3
namespace
Bitrix\Im\Integration\Bizproc\Message
;
4
5
class
AlertTemplate
extends
PlainTemplate
6
{
7
protected
const
DEFAULT_BORDER_COLOR
=
'#f4433e'
;
8
9
public
function
buildMessage
(array $messageFields): array
10
{
11
$attach = new \CIMMessageParamAttach(0, static::DEFAULT_BORDER_COLOR);
12
13
$attach->SetDescription($this->
buildDescriptionText
());
14
15
$attach->AddUser([
16
'NAME'
=> $this->messageText,
17
'AVATAR'
=>
'/bitrix/js/im/images/robot/warning.svg'
,
18
]);
19
20
$attach->AddMessage($this->
buildRobotText
());
21
22
$messageFields[
'ATTACH'
] = $attach;
23
24
return
$messageFields;
25
}
26
}
Bitrix\Im\Integration\Bizproc\Message\AlertTemplate
Definition
alerttemplate.php:6
Bitrix\Im\Integration\Bizproc\Message\AlertTemplate\DEFAULT_BORDER_COLOR
const DEFAULT_BORDER_COLOR
Definition
alerttemplate.php:7
Bitrix\Im\Integration\Bizproc\Message\AlertTemplate\buildMessage
buildMessage(array $messageFields)
Definition
alerttemplate.php:9
Bitrix\Im\Integration\Bizproc\Message\PlainTemplate
Definition
plaintemplate.php:12
Bitrix\Im\Integration\Bizproc\Message\PlainTemplate\buildRobotText
buildRobotText()
Definition
plaintemplate.php:49
Bitrix\Im\Integration\Bizproc\Message\PlainTemplate\buildDescriptionText
buildDescriptionText()
Definition
plaintemplate.php:34
Bitrix\Im\Integration\Bizproc\Message
Definition
alerttemplate.php:3
modules
im
lib
integration
bizproc
message
alerttemplate.php
Создано системой
1.10.0