1C-Bitrix 25.700.0
Загрузка...
Поиск...
Не найдено
sharingaccessibilitymanager.php
См. документацию.
1<?php
2
3namespace Bitrix\Calendar\Sharing;
4
5use Bitrix\Calendar\Core\Managers\Accessibility;
6
8{
10 private array $userIds;
12 private int $timestampFrom;
14 private int $timestampTo;
15
19 public function __construct($options)
20 {
21 $this->userIds = $options['userIds'];
22 $this->timestampFrom = $options['timestampFrom'];
23 $this->timestampTo = $options['timestampTo'];
24 }
25
29 public function checkUsersAccessibility(): bool
30 {
31 $busyUserIds = (new Accessibility())
32 ->getBusyUsersIds($this->userIds, $this->timestampFrom, $this->timestampTo)
33 ;
34
35 return empty($busyUserIds);
36 }
37
43 {
44 $accessibility = (new Accessibility())
45 ->getAccessibility($this->userIds, $this->timestampFrom, $this->timestampTo)
46 ;
47
48 return array_merge(...$accessibility);
49 }
50}
$options
Определения commerceml2.php:49
</td ></tr ></table ></td ></tr >< tr >< td class="bx-popup-label bx-width30"><?=GetMessage("PAGE_NEW_TAGS")?> array( $site)
Определения file_new.php:804