Skip to content

Class Exporter

Event Exporter.

Extends Component

Constants

EVENT_AFTER_BUILD_ICS

See AfterBuildIcsEvent

Methods

toIcs

Returns ICS file contents.

public toIcs(ElementInterface|ElementInterface[] $elements): string
$elements ElementInterface|ElementInterface[]
return string

toMultipleIcs

Returns ICS file contents for each calendar event.

public toMultipleIcs(ElementInterface|ElementInterface[] $elements, User|User[]|string|string[] $attendees, ?string $method): string[]
$elements ElementInterface|ElementInterface[]
$attendees User|User[]|string|string[] Array of users or in the format: [email => name].
$method ?string https://datatracker.ietf.org/doc/html/rfc2446#section-3.2
return string[]