| Methods |
public
|
__construct(
ParserMode $mode = ParserMode::Permissive,
ParseLimits $limits = new ParseLimits(),
RecurrenceLimits $recurrenceLimits = new RecurrenceLimits(),
?TimezoneResolver $timezoneResolver = null,
?DateTimeZone $floatingTimezone = null,
bool $checkValues = true,
)
|
#
|
public
|
mode(ParserMode $mode): self
|
#
|
public
|
limits(ParseLimits $limits): self
|
#
|
public
|
recurrenceLimits(RecurrenceLimits $limits): self
|
#
|
public
|
timezoneResolver(TimezoneResolver $resolver): self
|
#
|
public
|
floatingTimezone(?DateTimeZone $timezone): self
Timezone of dates and floating times (instead of X-WR-TIMEZONE).
Timezone of dates and floating times (instead of X-WR-TIMEZONE).
|
#
|
public
|
checkValues(bool $check = true): self
Convert every value of a known type during parsing and report invalid and nonstandard
values as warnings (default). Turn it off to parse large files faster; values are then
checked only when they are read (and by the Validator).
Convert every value of a known type during parsing and report invalid and nonstandard
values as warnings (default). Turn it off to parse large files faster; values are then
checked only when they are read (and by the Validator).
|
#
|
public
|
parse(string $content): ParseResult
|
#
|
public
|
parseFile(string $file): ParseResult
|
#
|
public
|
parseStream(resource $stream): ParseResult
|
#
|
public
|
stream(string|resource $input, ?(callable(ParseWarning): void) $onWarning = null): Generator<int, Item>
Read events, tasks, journal entries and free/busy components one by one with constant
memory. VTIMEZONE components and calendar properties seen so far are used for their values;
overrides (RECURRENCE-ID) are returned as separate items.
Read events, tasks, journal entries and free/busy components one by one with constant
memory. VTIMEZONE components and calendar properties seen so far are used for their values;
overrides (RECURRENCE-ID) are returned as separate items.
Parameters
| $input |
a file name or a stream
|
|
#
|