• Модуль: calendar
  • Путь к файлу: ~/bitrix/modules/calendar/lib/core/builders/eventbuilderfromarray.php
  • Класс: BitrixCalendarCoreBuildersEventBuilderFromArray
  • Вызов: EventBuilderFromArray::getAttendees
protected function getAttendees(): ?AttendeeCollection
{
	$collection = new AttendeeCollection();

	if (isset($this->fields['ATTENDEES_CODES']))
	{
		if (is_string($this->fields['ATTENDEES_CODES']))
		{
			$collection->setAttendeesCodes(explode(',', $this->fields['ATTENDEES_CODES']));
		}
		else if (is_array($this->fields['ATTENDEES_CODES']))
		{
			$collection->setAttendeesCodes($this->fields['ATTENDEES_CODES']);
		}
	}

	if (isset($this->fields['ATTENDEES']) && is_array($this->fields['ATTENDEES']))
	{
		$collection->setAttendeesId($this->fields['ATTENDEES']);
	}
	else
	{
		$collection->setAttendeesId([(int)$this->fields['OWNER_ID']]);
	}


	return $collection;
}