Public Member Functions | |
render () | |
Render this event in VCalendar format. | |
setAllDay ($allDay) | |
Set whether this is an all day event. | |
setEndDate ($date) | |
Set the end date of the event. | |
setRepeat ($frequency, $endRepeat='') | |
Set whether and how this event repeats. | |
setStartDate ($date) | |
Set the start date of the event. |
This class represents a calendar event, exportable in VCalendar (iCal-compatible) format for inclusion in a complete calendar file. An event has a start and end date/time, and can be all day or can repeat.
SVEvent::render | ( | ) |
Render this event in VCalendar format.
Render this event in VCalendar format for inclusion in a complete VCalendar file with proper headers, etc.
SVEvent::setAllDay | ( | $ | allDay | ) |
Set whether this is an all day event.
$allDay | [bool]: True if an all day event, false otherwise (default is false) |
SVEvent::setEndDate | ( | $ | date | ) |
Set the end date of the event.
$date | [string]: The end date of this event, in the format, 'YYYY-MM-DD' |
SVEvent::setRepeat | ( | $ | frequency, | |
$ | endRepeat = '' | |||
) |
Set whether and how this event repeats.
Update the repeat frequency to one of the allowed frequencies:
$frequency | [string]: A repeat frequency (one of the class constants) | |
$endRepeat | [string]: The date for ending repeats, in the format, 'YYYY-MM-DD' |
SVEvent::setStartDate | ( | $ | date | ) |
Set the start date of the event.
$date | [string]: The start date of this event, in the format, 'YYYY-MM-DD' |