32 $context = $context ?? Locator::getContext();
33 $checkPermissions =
false;
37 return (
new static())->setContext($context);
40 $calendarGetList = CCalendarEvent::GetList([
45 'parseRecursion' =>
false,
46 'fetchAttendees' =>
true,
47 'userId' => $context->getUserId(),
48 'fetchMeetings' =>
false,
49 'setDefaultLimit' =>
false,
50 'checkPermissions' => $checkPermissions,
53 return static::initByGetListArray($calendarGetList)->setContext($context);