1C-Bitrix 25.700.0
Загрузка...
Поиск...
Не найдено
CalendarCollection.php
См. документацию.
1<?php
2
4
10use CCalendarEvent;
11
13{
14 public static function getRestEntityName(): string
15 {
16 return 'calendars';
17 }
18
19 public static function initByGetListArray(array $calendarsInfo): self
20 {
21 $calendars = new static();
22
23 foreach ($calendarsInfo as $calendarInfo)
24 {
25 $calendars[] = CalendarItem::initByGetListArray($calendarInfo);
26 }
27
28 return $calendars;
29 }
30
31 public static function getByIds(array $ids, ?Context $context = null): self
32 {
33 if (empty($ids) || !Loader::includeModule('calendar'))
34 {
35 return (new static())->setContext($context);
36 }
37
38 $context = $context ?? Locator::getContext();
39 $checkPermissions = false;
40
41 $calendarGetList = CCalendarEvent::GetList([
42 'arFilter' => [
43 'ID' => $ids,
44 'DELETED' => false,
45 ],
46 'parseRecursion' => false,
47 'fetchAttendees' => true,
48 'userId' => $context->getUserId(),
49 'fetchMeetings' => false,
50 'setDefaultLimit' => false,
51 'checkPermissions' => $checkPermissions,
52 ]);
53
54 return static::initByGetListArray($calendarGetList)->setContext($context);
55 }
56}
static getByIds(array $ids, ?Context $context=null)
Определения CalendarCollection.php:31
static initByGetListArray(array $calendarsInfo)
Определения CalendarCollection.php:19
static initByGetListArray(array $calendarInfo)
Определения CalendarItem.php:31
Определения loader.php:13
</td ></tr ></table ></td ></tr >< tr >< td class="bx-popup-label bx-width30"><?=GetMessage("PAGE_NEW_TAGS")?> array( $site)
Определения file_new.php:804
$context
Определения csv_new_setup.php:223
trait ContextCustomer
Определения ContextCustomer.php:12
Определения culture.php:9