• Модуль: calendar
  • Путь к файлу: ~/bitrix/modules/calendar/lib/ical/parser/factorycomponents.php
  • Класс: BitrixCalendarICalParserFactoryComponents
  • Вызов: FactoryComponents::createComponent
public function createComponent($properties, $subComponents): FactoryComponents
{
	switch ($this->componentName)
	{
		case 'standard':
			$this->component = $this->getStandardComponent($properties);
			break;
		case 'daylight':
			$this->component = $this->getDaylightComponent($properties);
			break;
		case 'vcalendar':
			$this->component = $this->getCalendarComponent($properties, $subComponents);
			break;
		case 'vevent':
			$this->component = $this->getEventComponent($properties, $subComponents);
			break;
		case 'vtimezone':
			$this->component = $this->getTimezoneComponent($properties, $subComponents);
			break;
		case 'valarm':
			break; //TODO: Add VALARM component support
		default:
			$this->addMessageLog();
	}

	return $this;
}