11 $data =
"BEGIN:VCALENDAR\r\nEND:VCALENDAR";
19 $this->assertEquals(
"BEGIN:VCALENDAR\r\nEND:VCALENDAR\r\n",
$result);
26 $this->assertEquals(
'["vcalendar",[],[]]',
$result);
34 '<?xml version="1.0" encoding="UTF-8"?>' .
"\n" .
35 '<icalendar xmlns="urn:ietf:params:xml:ns:icalendar-2.0">' .
"\n" .
36 ' <vcalendar/>' .
"\n" .
37 '</icalendar>' .
"\n",
static write(Component $component)
Serializes a vCard or iCalendar object.
static writeJson(Component $component, $options=0)
Serializes a jCal or jCard object.
static writeXml(Component $component)
Serializes a xCal or xCard object.
static read($data, $options=0, $charset='UTF-8')
Parses a vCard or iCalendar object, and returns the top component.