SVCalendar Class Reference
[Calendar Generators]

A calendar (containing a set of events) that can be exported in VCalendar format. More...

List of all members.

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.


Detailed Description

A calendar (containing a set of events) that can be exported in VCalendar format.

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.

Author:
Jonathan Stuart-Moore <jwsm@shodor.org>

Valerie Gartland <valerie@shodor.org>


Member Function Documentation

SVCalendar::addEvent ( e  ) 

Add an event to this calendar.

Parameters:
$e [SVEvent]: The event to be added to the calendar

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.

Returns:
[string]: The VCalendar representation of this calendar

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.

Returns:
[string]: The VCalendar representation of this calendar's events

SVCalendar::setName ( name  ) 

Set the name of this calendar.

This will be added to the VCalendar file for the attribute "X-WR-CALNAME"

Parameters:
$name [string]: The name of the calendar


The documentation for this class was generated from the following file:

Generated on Wed Nov 24 02:04:00 2010 for Common by  doxygen 1.5.6