ImportICS Method
Imports iCal data (contained in an ICS file) into the component's property list.
Object Oriented Interface
public function doImportICS($calendardata);
Procedural Interface
ipworks_caldav_do_importics($res, $calendardata);
Remarks
This method is used to load calendar data from an external source into the class. You may then submit this data with a call to PutCalendarEvent. If you edit any of the class properties between importing and calling PutCalendarEvent, the class will re-generate the PUT request itself. If no properties are changed, the imported data will be submitted unaltered when calling PutCalendarEvent.
Note that the CalendarData you wish to import must contain a single VEVENT, VTODO, or VJOURNAL inside of a VCALENDAR. (A VTIMEZONE may be optionally contained inside the VCALENDAR as well). If multiple calendar objects are included in the imported data they will not be parsed correctly into properties, and the server's response to the PutCalendarEvent method is undefined.