3namespace Bitrix\Calendar\Controller;
5use Bitrix\Calendar\Access\ActionDictionary;
6use Bitrix\Calendar\Access\SectionAccessController;
7use Bitrix\Calendar\Core\Event\Tools\Dictionary;
8use Bitrix\Calendar\Core\Mappers;
9use Bitrix\Calendar\Core\Section\Section;
10use Bitrix\Calendar\Sharing;
11use Bitrix\Main\Engine\AutoWire\ExactParameter;
12use Bitrix\Main\Engine\Controller;
13use Bitrix\Main\Engine\CurrentUser;
33 'OWNER_ID' => $groupId,
34 'CAL_TYPE' => Dictionary::CALENDAR_TYPE[
'group'],
37 if (!$sections->count())
43 $section = $sections->fetch();
45 $hasAccess = SectionAccessController::can(
46 $currentUser->getId(),
47 ActionDictionary::ACTION_SECTION_EDIT,
79 return $sharing->getLinkInfo();
109 $result = $sharing->generateGroupJointLink($memberIds);
128 if (!$sharing->isEnabled())
140 $portalCalendarConfig = \CCalendar::GetSettings();
143 'link' => $sharing->getLinkInfo(),
144 'userCalendarSettings' => [
145 'week_holidays' => $portalCalendarConfig[
'week_holidays'],
146 'week_start' => $portalCalendarConfig[
'week_start'],
147 'work_time_start' => $portalCalendarConfig[
'work_time_start'],
148 'work_time_end' => $portalCalendarConfig[
'work_time_end'],
disableSharingAction(CurrentUser $currentUser, ?Section $section)
enableSharingAction(CurrentUser $currentUser, ?Section $section)
enableAndGetSharingConfigAction(CurrentUser $currentUser, ?Section $section)
generateJointSharingLinkAction(CurrentUser $currentUser, array $memberIds, ?Section $section)
</td ></tr ></table ></td ></tr >< tr >< td class="bx-popup-label bx-width30"><?=GetMessage("PAGE_NEW_TAGS")?> array( $site)