10 $calendarId = $backend->createCalendar(
14 '{DAV:}displayname' =>
'user1 calendar',
15 '{urn:ietf:params:xml:ns:caldav}calendar-description' =>
'Calendar description',
16 '{http://apple.com/ns/ical/}calendar-order' =>
'1',
17 '{http://apple.com/ns/ical/}calendar-color' =>
'#FF0000',
20 $backend->createCalendar(
24 '{DAV:}displayname' =>
'user1 calendar2',
25 '{urn:ietf:params:xml:ns:caldav}calendar-description' =>
'Calendar description',
26 '{http://apple.com/ns/ical/}calendar-order' =>
'1',
27 '{http://apple.com/ns/ical/}calendar-color' =>
'#FF0000',
30 $backend->createCalendarObject($calendarId,
'UUID-2345', self::getTestCalendarData());
37 $calendarData =
'BEGIN:VCALENDAR 39 PRODID:-//Apple Inc.//iCal 4.0.1//EN 45 RRULE:FREQ=YEARLY;UNTIL=19880507T150000Z;BYMONTH=5;BYDAY=2SU 46 DTSTART:19870510T000000 52 DTSTART:19881009T000000 58 CREATED:20100225T154229Z 59 UID:39A6B5ED-DD51-4AFE-A683-C35EE3749627 61 SUMMARY:Something here 62 DTSTAMP:20100228T130202Z';
66 $calendarData .=
"\nDTSTART;TZID=Asia/Seoul:20100223T060000\nDTEND;TZID=Asia/Seoul:20100223T070000\n";
69 $calendarData .=
"\nDTSTART:20100223T060000\nDTEND:20100223T070000\n";
72 $calendarData .=
"\nDTSTART;VALUE=DATE:20100223\nDTEND;VALUE=DATE:20100223\n";
75 $calendarData .=
"\nDTSTART;TZID=Asia/Seoul:20100223T060000\nDURATION:PT1H\n";
78 $calendarData .=
"\nDTSTART;TZID=Asia/Seoul:20100223T060000\nDURATION:-P5D\n";
81 $calendarData .=
"\nDTSTART;VALUE=DATE:20100223\n";
84 $calendarData .=
"\nDTSTART;VALUE=DATETIME:20100223T060000\n";
89 $calendarData .=
"\n";
94 $calendarData .=
'ATTENDEE;PARTSTAT=NEEDS-ACTION:mailto:lisa@example.com 108 $extra =
"DUE:20100104T000000Z";
111 $extra =
"DUE:20060104T000000Z";
114 $extra =
"DUE;VALUE=DATE:20060104";
117 $extra =
"DUE;TZID=Asia/Seoul:20060104T000000Z";
120 $extra =
"DTSTART:20050223T060000Z\nDUE:20060104T000000Z";
122 case 'due_dtstart2' :
123 $extra =
"DTSTART:20090223T060000Z\nDUE:20100104T000000Z";
126 $extra =
'DTSTART:20100223T060000Z';
129 $extra =
'DTSTART:20060223T060000Z';
131 case 'dtstart_date' :
132 $extra =
'DTSTART;VALUE=DATE:20100223';
135 $extra =
'DTSTART;TZID=Asia/Seoul:20100223T060000Z';
137 case 'dtstart_duration' :
138 $extra =
"DTSTART:20061023T060000Z\nDURATION:PT1H";
140 case 'dtstart_duration2' :
141 $extra =
"DTSTART:20101023T060000Z\nDURATION:PT1H";
144 $extra =
'COMPLETED:20060601T000000Z';
147 $extra =
'COMPLETED:20090601T000000Z';
150 $extra =
'CREATED:20060601T000000Z';
153 $extra =
'CREATED:20090601T000000Z';
155 case 'completedcreated' :
156 $extra =
"CREATED:20060601T000000Z\nCOMPLETED:20070101T000000Z";
158 case 'completedcreated2' :
159 $extra =
"CREATED:20090601T000000Z\nCOMPLETED:20100101T000000Z";
162 $extra =
'X-FILLER:oh hello';
169 $todo =
'BEGIN:VCALENDAR 171 PRODID:-//Example Corp.//CalDAV Client//EN 173 DTSTAMP:20060205T235335Z 177 UID:DDDEEB7915FA61233B861457@example.com 180 TRIGGER;RELATED=START:-PT10M
static getTestTODO($type='due')
static getTestCalendarData($type=1)