• Модуль: calendar
  • Путь к файлу: ~/bitrix/modules/calendar/lib/core/mappers/event.php
  • Класс: BitrixCalendarCoreMappersEvent
  • Вызов: Event::getCollectionByIds
public function getCollectionByIds(array $ids, int $ownerId, array $fields = ['*']): CoreEventEventCollection
{
	$eventDM = EventTable::query()
		->whereIn('ID', $ids)
		->where('OWNER_ID', $ownerId)
		->setSelect($fields)
		->exec()
	;

	$collection = new CoreEventEventCollection();

	while ($event = $eventDM->fetch())
	{
		$collection->add((new CoreBuildersEventBuilderFromArray($event))->build());
	}

	return $collection;
}