Skip to content

Class Calendar

Extends Model

Constants

METHOD_PUBLISH

Post notification of an event.

Used primarily as a method of advertising the existence of an event.

METHOD_REQUEST

Make a request for an event.

This is an explicit invitation to one or more "Attendees". Event Requests are also used to update or change an existing event. Clients that cannot handle REQUEST may degrade the event to view it as a PUBLISH.

METHOD_CANCEL

Cancel one or more instances of an existing event.

Methods

__construct

public __construct(array $config = []): mixed
$config array
return mixed

setMethod

public setMethod(string $method): static
$method string
return static

addEvent

public addEvent(array $config = []): Event
$config array
return Event

serialize

public serialize(): string
return string

addTimezones

Adds a timezone definition the calendar.

public addTimezones(): void