1C-Bitrix
25.700.0
Загрузка...
Поиск...
Не найдено
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
}
$messageFields
$messageFields
Определения
callback_ednaru.php:22
Bitrix\Im\Integration\Bizproc\Message\AlertTemplate
Определения
alerttemplate.php:6
Bitrix\Im\Integration\Bizproc\Message\AlertTemplate\DEFAULT_BORDER_COLOR
const DEFAULT_BORDER_COLOR
Определения
alerttemplate.php:7
Bitrix\Im\Integration\Bizproc\Message\AlertTemplate\buildMessage
buildMessage(array $messageFields)
Определения
alerttemplate.php:9
Bitrix\Im\Integration\Bizproc\Message\PlainTemplate
Определения
plaintemplate.php:12
Bitrix\Im\Integration\Bizproc\Message\PlainTemplate\buildRobotText
buildRobotText()
Определения
plaintemplate.php:54
Bitrix\Im\Integration\Bizproc\Message\PlainTemplate\buildDescriptionText
buildDescriptionText()
Определения
plaintemplate.php:34
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\Im\Integration\Bizproc\Message
Определения
alerttemplate.php:3
bitrix
modules
im
lib
integration
bizproc
message
alerttemplate.php
Создано системой
1.14.0