Skip to content

Class Events

Extends Component

Constants

EVENT_REGISTER_TYPES

See RegisterEventTypesEvent

EVENT_REGISTER_SOURCES

See RegisterEventSourcesEvent

Methods

findDateField

public findDateField(ElementInterface|FieldLayoutProviderInterface $type): ?EventDate
$type ElementInterface|FieldLayoutProviderInterface
return ?EventDate

getTypes

public getTypes(): array
return array

getSources

public getSources(): array<string,EventSource>
return array<string,EventSource>

findSourceByKey

public findSourceByKey(string $key): EventSource
$key string
return EventSource

getEvents

public getEvents(mixed $date = null, ?array $extraQueryParams = null, string[]|null $sourceKeys = null, User|null $user = null): array<string,ElementInterface[]>
$date mixed
$extraQueryParams ?array
$sourceKeys string[]|null
$user User|null only return events the user can access
return array<string,ElementInterface[]>

updateICalendarSequence

public updateICalendarSequence(int $elementId): void
$elementId int