ILIAS  release_5-4 Revision v5.4.26-12-gabc799a52e6
Sabre\CalDAV\Issue172Test Class Reference
+ Inheritance diagram for Sabre\CalDAV\Issue172Test:
+ Collaboration diagram for Sabre\CalDAV\Issue172Test:

Public Member Functions

 testBuiltInTimezoneName ()
 
 testOutlookTimezoneName ()
 
 testLibICalLocationName ()
 

Detailed Description

Definition at line 7 of file Issue172Test.php.

Member Function Documentation

◆ testBuiltInTimezoneName()

Sabre\CalDAV\Issue172Test::testBuiltInTimezoneName ( )

Definition at line 10 of file Issue172Test.php.

References $input, and Sabre\VObject\Reader\read().

10  {
11  $input = <<<HI
12 BEGIN:VCALENDAR
13 VERSION:2.0
14 BEGIN:VEVENT
15 DTSTART;TZID=America/Los_Angeles:20120118T204500
16 DTEND;TZID=America/Los_Angeles:20120118T214500
17 END:VEVENT
18 END:VCALENDAR
19 HI;
20  $validator = new CalendarQueryValidator();
21  $filters = [
22  'name' => 'VCALENDAR',
23  'comp-filters' => [
24  [
25  'name' => 'VEVENT',
26  'comp-filters' => [],
27  'prop-filters' => [],
28  'is-not-defined' => false,
29  'time-range' => [
30  'start' => new \DateTime('2012-01-18 21:00:00 GMT-08:00'),
31  'end' => new \DateTime('2012-01-18 21:00:00 GMT-08:00'),
32  ],
33  ],
34  ],
35  'prop-filters' => [],
36  ];
38  $this->assertTrue($validator->validate($input, $filters));
39  }
static read($data, $options=0, $charset='UTF-8')
Parses a vCard or iCalendar object, and returns the top component.
Definition: Reader.php:42
+ Here is the call graph for this function:

◆ testLibICalLocationName()

Sabre\CalDAV\Issue172Test::testLibICalLocationName ( )

Definition at line 89 of file Issue172Test.php.

References $input, and Sabre\VObject\Reader\read().

89  {
90  $input = <<<HI
91 BEGIN:VCALENDAR
92 VERSION:2.0
93 BEGIN:VTIMEZONE
94 TZID:My own timezone name
95 X-LIC-LOCATION:America/Los_Angeles
96 BEGIN:STANDARD
97 DTSTART:16010101T030000
98 TZOFFSETFROM:+0200
99 TZOFFSETTO:+0100
100 RRULE:FREQ=YEARLY;BYDAY=-1SU;BYMONTH=10
101 END:STANDARD
102 BEGIN:DAYLIGHT
103 DTSTART:16010101T020000
104 TZOFFSETFROM:+0100
105 TZOFFSETTO:+0200
106 RRULE:FREQ=YEARLY;BYDAY=-1SU;BYMONTH=3
107 END:DAYLIGHT
108 END:VTIMEZONE
109 BEGIN:VEVENT
110 DTSTART;TZID=My own timezone name:20120113T100000
111 DTEND;TZID=My own timezone name:20120113T110000
112 END:VEVENT
113 END:VCALENDAR
114 HI;
115  $validator = new CalendarQueryValidator();
116  $filters = [
117  'name' => 'VCALENDAR',
118  'comp-filters' => [
119  [
120  'name' => 'VEVENT',
121  'comp-filters' => [],
122  'prop-filters' => [],
123  'is-not-defined' => false,
124  'time-range' => [
125  'start' => new \DateTime('2012-01-13 10:30:00 GMT-08:00'),
126  'end' => new \DateTime('2012-01-13 10:30:00 GMT-08:00'),
127  ],
128  ],
129  ],
130  'prop-filters' => [],
131  ];
133  $this->assertTrue($validator->validate($input, $filters));
134  }
static read($data, $options=0, $charset='UTF-8')
Parses a vCard or iCalendar object, and returns the top component.
Definition: Reader.php:42
+ Here is the call graph for this function:

◆ testOutlookTimezoneName()

Sabre\CalDAV\Issue172Test::testOutlookTimezoneName ( )

Definition at line 42 of file Issue172Test.php.

References $input, and Sabre\VObject\Reader\read().

42  {
43  $input = <<<HI
44 BEGIN:VCALENDAR
45 VERSION:2.0
46 BEGIN:VTIMEZONE
47 TZID:Pacific Standard Time
48 BEGIN:STANDARD
49 DTSTART:16010101T030000
50 TZOFFSETFROM:+0200
51 TZOFFSETTO:+0100
52 RRULE:FREQ=YEARLY;BYDAY=-1SU;BYMONTH=10
53 END:STANDARD
54 BEGIN:DAYLIGHT
55 DTSTART:16010101T020000
56 TZOFFSETFROM:+0100
57 TZOFFSETTO:+0200
58 RRULE:FREQ=YEARLY;BYDAY=-1SU;BYMONTH=3
59 END:DAYLIGHT
60 END:VTIMEZONE
61 BEGIN:VEVENT
62 DTSTART;TZID=Pacific Standard Time:20120113T100000
63 DTEND;TZID=Pacific Standard Time:20120113T110000
64 END:VEVENT
65 END:VCALENDAR
66 HI;
67  $validator = new CalendarQueryValidator();
68  $filters = [
69  'name' => 'VCALENDAR',
70  'comp-filters' => [
71  [
72  'name' => 'VEVENT',
73  'comp-filters' => [],
74  'prop-filters' => [],
75  'is-not-defined' => false,
76  'time-range' => [
77  'start' => new \DateTime('2012-01-13 10:30:00 GMT-08:00'),
78  'end' => new \DateTime('2012-01-13 10:30:00 GMT-08:00'),
79  ],
80  ],
81  ],
82  'prop-filters' => [],
83  ];
85  $this->assertTrue($validator->validate($input, $filters));
86  }
static read($data, $options=0, $charset='UTF-8')
Parses a vCard or iCalendar object, and returns the top component.
Definition: Reader.php:42
+ Here is the call graph for this function:

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