Andrew's Web Libraries (AWL)
 All Classes Namespaces Functions Variables Pages
/build/awl-3JII5g/awl-0.59/inc/iCalendar.php

A Class for handling iCalendar data.

When parsed the underlying structure is roughly as follows:

iCalendar( array(iCalComponent), array(iCalProp) )

each iCalComponent is similarly structured:

iCalComponent( array(iCalComponent), array(iCalProp) )

Once parsed, $ical->component will point to the wrapping VCALENDAR component of the iCalendar. This will be fine for simple iCalendar usage as sampled below, but more complex iCalendar such as a VEVENT with RRULE which has repeat overrides will need quite a bit more thought to process correctly.

To create a new iCalendar from several data values: $ical = new iCalendar( array('DTSTART' => $dtstart, 'SUMMARY' => $summary, 'DURATION' => $duration ) );