- Модуль: calendar
- Путь к файлу: ~/bitrix/modules/calendar/lib/sharing/crm/notifymanager.php
- Класс: BitrixCalendarSharingCrmNotifyManager
- Вызов: NotifyManager::sendSharedCrmActionsEvent
public function sendSharedCrmActionsEvent(
?int $timestamp = null,
int $associatedEntityId = 0,
int $associatedEntityTypeId = 0
): void
{
$timestamp = $this->prepareTimestamp($timestamp);
$eventData = [
'EVENT_TYPE' => $this->notifyType,
'OWNER_ID' => $this->link->getOwnerId(),
'LINK_ID' => $this->link->getId(),
'LINK_TYPE' => $this->link->getObjectType(),
'LINK_ENTITY_ID' => $this->link->getObjectId(),
'CONTACT_ID' => $this->link->getContactId(),
'CONTACT_TYPE_ID' => $this->link->getContactType(),
'LINK_HASH' => $this->link->getHash(),
'ASSOCIATED_ENTITY_ID' => $associatedEntityId,
'ASSOCIATED_ENTITY_TYPE_ID' => $associatedEntityTypeId,
'TIMESTAMP' => $timestamp,
];
(new BitrixMainEvent(
'calendar',
self::SHARING_CRM_ACTIONS_EVENT,
$eventData
))->send();
}