| Methods |
public
|
__construct(?ParserOptions $options = null)
|
#
|
public
|
parseFile(string $file, ?callable $callback = null): array<string, mixed>|null
|
#
|
public
|
parseString(string $string, ?callable $callback = null, bool $add = false): array<string, mixed>|null
Parse iCalendar data. With a callback, rows are not stored; the callback receives every property row as
($row, $key, $middle, $value, $section, $counter) and the method returns null.
Parse iCalendar data. With a callback, rows are not stored; the callback receives every property row as
($row, $key, $middle, $value, $section, $counter) and the method returns null.
Parameters
| $add |
if true the parsed string is added to existing data
|
Throws
|
#
|
public
|
parseRecurrences(array<string, mixed> $event): list<DateTime>
Expand the recurrence set of an event (RRULE, RDATE and EXDATE) into DateTime objects.
Expand the recurrence set of an event (RRULE, RDATE and EXDATE) into DateTime objects.
Parameters
Throws
|
#
|
public
|
isMultipleKey(string $key): ?string
|
#
|
public
|
isMultipleKeyWithCommaSeparation(string $key): ?string
|
#
|
public
|
getAlarms(): array<int, array<string, mixed>>
|
#
|
public
|
getTimezone(): array<int, array<string, mixed>>
|
#
|
public
|
getTimezones(): array<int, array<string, mixed>>
|
#
|
public
|
getTodos(): array<int, array<string, mixed>>
|
#
|
public
|
getJournals(): array<int, array<string, mixed>>
|
#
|
public
|
getSortedEvents(): ArrayObject<int, array<string, mixed>>
Return sorted event list as ArrayObject
Return sorted event list as ArrayObject
Deprecated
use IcalParser::getEvents()->sorted() instead
|
#
|
public
|
getReverseSortedEvents(): ArrayObject<int, array<string, mixed>>
Deprecated
use IcalParser::getEvents()->reversed() instead
|
#
|
public
|
getEvents(): EventsList
Events with recurring events expanded into single instances. Every instance has DTEND: from DTEND, from DURATION, or one day for all-day
events (RFC 5545, section 3.6.1). Recurring instances also carry RECURRING
and RECURRENCE_INSTANCE (zero based).
Events with recurring events expanded into single instances. Every instance has DTEND: from DTEND, from DURATION, or one day for all-day
events (RFC 5545, section 3.6.1). Recurring instances also carry RECURRING
and RECURRENCE_INSTANCE (zero based).
|
#
|
public
static
|
parseDuration(string $value): ?DateInterval
Parse a DURATION value (RFC 5545, section 3.3.6), e.g. "PT1H30M", "-P1W" or "P1DT12H".
Parse a DURATION value (RFC 5545, section 3.3.6), e.g. "PT1H30M", "-P1W" or "P1DT12H".
|
#
|