1C-Bitrix 25.700.0
Загрузка...
Поиск...
Не найдено
actionemail.php
См. документацию.
1<?php
8
9namespace Bitrix\Main\EventLog;
10
11class ActionEmail extends Action
12{
13 const EVENT_TYPE = 'EVENT_LOG_NOTIFICATION';
14
15 public function __construct($recipient, $text)
16 {
17 parent::__construct(Action::TYPE_EMAIL, $recipient, $text);
18 }
19
23 public function send(Notification $notification)
24 {
25 $site = \CSite::GetDefSite();
26
27 $fields = static::getNotificationFields($notification);
28 $fields["EMAIL"] = $this->getRecipient();
29 $fields["ADDITIONAL_TEXT"] = $this->getText();
30
32 'EVENT_NAME' => self::EVENT_TYPE,
33 'C_FIELDS' => $fields,
34 'LID' => $site,
35 ]);
36 }
37}
send(Notification $notification)
Определения actionemail.php:23
__construct($recipient, $text)
Определения actionemail.php:15
getRecipient()
Определения action.php:67
getText()
Определения action.php:76
const TYPE_EMAIL
Определения action.php:13
static send(array $data)
Определения event.php:48
$site
Определения yandex_run.php:614
$fields
Определения yandex_run.php:501