Public Member Functions | |
addEvent ($e) | |
Add an event to this calendar. | |
render () | |
Render this calendar in VCalendar format. | |
renderEvents () | |
Render the events of this calendar in VCalendar format, for inclusion in the final calendar output. | |
setName ($name) | |
Set the name of this calendar. |
This class represents a calendar in VCalendar (iCal-compatible) format. You can set the name of the calendar and add events using the addEvent() function. Then, you can dump the calendar in VCalendar format using the render() method.
SVCalendar::addEvent | ( | $ | e | ) |
SVCalendar::render | ( | ) |
Render this calendar in VCalendar format.
Return a string encoding of this calendar and its event objects that can be saved directly as a VCalendar file and read by iCal, etc.
SVCalendar::renderEvents | ( | ) |
Render the events of this calendar in VCalendar format, for inclusion in the final calendar output.
Loop through all the SVEvents for this calendar and ask them to render themselves in VCalendar format. Buffer and return the output for inclusion in the final calendar output.
SVCalendar::setName | ( | $ | name | ) |
Set the name of this calendar.
This will be added to the VCalendar file for the attribute "X-WR-CALNAME"
$name | [string]: The name of the calendar |