Метод readEvent
Сигнатура метода
private function readEvent(int $calendarEventId): ?array
Возвращает:
?array
Описание
The event the activity is bound to, read WITHOUT the permissions of the acting user (crm_activity.php:7612-7615). IT IS A LOOKUP OF THE PREVIOUS STATE, NOT AN AUTHORIZATION POINT. The write below is authorized by the calendar as the person responsible, while a read made as the acting user answers nothing for an event that user may not see - and the only thing this layer does with "nothing" is treat the binding as an orphan and drop the whole synchronization. A live event would be silently left behind.
Параметры
1| Имя | Тип | По умолчанию | Флаги |
|---|---|---|---|
$calendarEventId
|
int
|
—
|
—
|
Расположение
Исходный файл метода в Bitrix Framework
~/bitrix/modulescrm/lib/V2/Internal/Integration/Calendar/ActivityCalendarSync.php