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.
Definition at line 13 of file SVCalendar.php5.
| SVCalendar::addEvent | ( | $ | e | ) |
Add an event to this calendar.
| $e | [SVEvent]: The event to be added to the calendar |
Definition at line 35 of file SVCalendar.php5.
| 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.
Definition at line 47 of file SVCalendar.php5.
References renderEvents().
| 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.
Definition at line 72 of file SVCalendar.php5.
Referenced by render().
| 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 |
Definition at line 26 of file SVCalendar.php5.
1.5.6