$iCal
$iCal : string
Container for a calendar's configuration and data, this class handles a specific calendar source's configuration and event data in iCal format.
setUrl(string $url) : \MPorcheron\FreeBusyCal\MPorcheron\FreeBusyCal\Calendar
Set the iCal file to parsed from an HTTP(S) or FTP address.
string | $url | iCal file to be downloaded. |
If the passed file is not valid or is not downloadable.
$this
.
setFile(string $file) : \MPorcheron\FreeBusyCal\MPorcheron\FreeBusyCal\Calendar
Set the iCal file to parsed (can be local or remote)
string | $file | iCal file to be parsed. |
If the passed file does not exist or is not readable.
$this
.
fetch(array<mixed,mixed> $config, boolean $refetch = false) : \MPorcheron\FreeBusyCal\MPorcheron\FreeBusyCal\Calendar
Fetch the iCal file needed to generate the availability calendar.
array<mixed,mixed> | $config | Configuration data. |
boolean | $refetch | Refetch iCal data if it has already been fetched once. |
If the iCal data hasn't been fetched/set yet.
$this
.
parse(array<mixed,mixed> $config) : \MPorcheron\FreeBusyCal\MPorcheron\FreeBusyCal\FreeBusyCalendar
Parse the iCal file needed to generate the availability calendar.
array<mixed,mixed> | $config | Configuration data. |
If the iCal data hasn't been fetched/set yet.
Availability for the calendar.