| Methods |
public
|
__construct(string $name)
|
#
|
public
static
|
item(string $name, ?string $uid, DateTimeInterface|DateTimeValue|string|null $stamp): self
UID (random when null) and DTSTAMP (now when null) of an event, task or journal entry.
UID (random when null) and DTSTAMP (now when null) of an event, task or journal entry.
|
#
|
public
static
|
uid(?string $uid): string
The given UID, or a random one (a UUID version 4).
The given UID, or a random one (a UUID version 4).
|
#
|
public
|
add(?Property ...$properties): self
|
#
|
public
|
text(string $name, ?string $value): self
|
#
|
public
|
integer(string $name, ?int $value, int $min, int $max): self
|
#
|
public
|
uri(string $name, ?string $value): self
|
#
|
public
|
start(DateTimeInterface|DateTimeValue|string|null $start): ?DateTimeValue
|
#
|
public
|
end(
string $name,
DateTimeInterface|DateTimeValue|string|null $end,
DateInterval|string|null $duration,
?DateTimeValue $start,
): ?DateTimeValue
DTEND or DUE, or DURATION: not both, not earlier than DTSTART, of the same value type.
DTEND or DUE, or DURATION: not both, not earlier than DTSTART, of the same value type.
|
#
|
public
|
recurrence(
?DateTimeValue $start,
Rule|string|null $rrule,
iterable<DateTimeInterface|DateTimeValue|Period|string> $rdates,
iterable<DateTimeInterface|DateTimeValue|string> $exdates,
DateTimeInterface|DateTimeValue|string|null $recurrenceId,
): self
RRULE, RDATE, EXDATE and RECURRENCE-ID with the value type of DTSTART.
RRULE, RDATE, EXDATE and RECURRENCE-ID with the value type of DTSTART.
|
#
|
public
|
status(Status|string|null $status): self
STATUS allowed in the component.
STATUS allowed in the component.
|
#
|
public
|
transparency(Transparency|string|null $transparency): self
TRANSP: OPAQUE or TRANSPARENT.
TRANSP: OPAQUE or TRANSPARENT.
|
#
|
public
|
classification(Classification|string|null $classification): self
CLASS: PUBLIC, PRIVATE, CONFIDENTIAL, or an IANA token or X- name.
CLASS: PUBLIC, PRIVATE, CONFIDENTIAL, or an IANA token or X- name.
|
#
|
public
|
descriptive(
?string $summary = null,
?string $description = null,
?string $location = null,
?string $url = null,
Classification|string|null $classification = null,
?int $priority = null,
?int $sequence = null,
iterable<string> $categories = [],
CalAddress|string|null $organizer = null,
iterable<CalAddress|string> $attendees = [],
array{(float|int), (float|int)}|null $geo = null,
?string $color = null,
iterable<Image|string> $images = [],
iterable<Conference|string> $conferences = [],
iterable<Link|string> $links = [],
iterable<Relation|string> $relatedTo = [],
): self
Properties common to events, tasks and journal entries.
Properties common to events, tasks and journal entries.
|
#
|
public
|
alarms(iterable<Alarm|Component> $alarms, bool $hasStart, bool $hasEnd, string $endName): self
VALARM components; a relative trigger needs the start (or the end) of the item (RFC 5545, section 3.6.6).
VALARM components; a relative trigger needs the start (or the end) of the item (RFC 5545, section 3.6.6).
|
#
|
public
|
locations(iterable<Location|Component> $locations): self
VLOCATION components (RFC 9073).
VLOCATION components (RFC 9073).
|
#
|
public
|
build(PropertyList $properties = []): Component
The component with the properties of the "properties:" argument; a property that may occur
only once cannot repeat one set by an argument.
The component with the properties of the "properties:" argument; a property that may occur
only once cannot repeat one set by an argument.
|
#
|