forked from microsoftgraph/msgraph-sdk-php
-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathCalendar.php
More file actions
360 lines (333 loc) · 10.4 KB
/
Copy pathCalendar.php
File metadata and controls
360 lines (333 loc) · 10.4 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
<?php
/**
* Copyright (c) Microsoft Corporation. All Rights Reserved. Licensed under the MIT License. See License in the project root for license information.
*
* Calendar File
* PHP version 7
*
* @category Library
* @package Microsoft.Graph
* @copyright © Microsoft Corporation. All rights reserved.
* @license https://opensource.org/licenses/MIT MIT License
* @version GIT: 1.4.0
* @link https://graph.microsoft.io/
*/
namespace Microsoft\Graph\Model;
/**
* Calendar class
*
* @category Model
* @package Microsoft.Graph
* @copyright © Microsoft Corporation. All rights reserved.
* @license https://opensource.org/licenses/MIT MIT License
* @version Release: 1.4.0
* @link https://graph.microsoft.io/
*/
class Calendar extends Entity
{
/**
* Gets the name
* The calendar name.
*
* @return string The name
*/
public function getName()
{
if (array_key_exists("name", $this->_propDict)) {
return $this->_propDict["name"];
} else {
return null;
}
}
/**
* Sets the name
* The calendar name.
*
* @param string $val The name
*
* @return Calendar
*/
public function setName($val)
{
$this->_propDict["name"] = $val;
return $this;
}
/**
* Gets the color
* Specifies the color theme to distinguish the calendar from other calendars in a UI. The property values are: LightBlue=0, LightGreen=1, LightOrange=2, LightGray=3, LightYellow=4, LightTeal=5, LightPink=6, LightBrown=7, LightRed=8, MaxColor=9, Auto=-1
*
* @return CalendarColor The color
*/
public function getColor()
{
if (array_key_exists("color", $this->_propDict)) {
if (is_a($this->_propDict["color"], "Microsoft\Graph\Model\CalendarColor")) {
return $this->_propDict["color"];
} else {
$this->_propDict["color"] = new CalendarColor($this->_propDict["color"]);
return $this->_propDict["color"];
}
}
return null;
}
/**
* Sets the color
* Specifies the color theme to distinguish the calendar from other calendars in a UI. The property values are: LightBlue=0, LightGreen=1, LightOrange=2, LightGray=3, LightYellow=4, LightTeal=5, LightPink=6, LightBrown=7, LightRed=8, MaxColor=9, Auto=-1
*
* @param CalendarColor $val The color
*
* @return Calendar
*/
public function setColor($val)
{
$this->_propDict["color"] = $val;
return $this;
}
/**
* Gets the changeKey
* Identifies the version of the calendar object. Every time the calendar is changed, changeKey changes as well. This allows Exchange to apply changes to the correct version of the object. Read-only.
*
* @return string The changeKey
*/
public function getChangeKey()
{
if (array_key_exists("changeKey", $this->_propDict)) {
return $this->_propDict["changeKey"];
} else {
return null;
}
}
/**
* Sets the changeKey
* Identifies the version of the calendar object. Every time the calendar is changed, changeKey changes as well. This allows Exchange to apply changes to the correct version of the object. Read-only.
*
* @param string $val The changeKey
*
* @return Calendar
*/
public function setChangeKey($val)
{
$this->_propDict["changeKey"] = $val;
return $this;
}
/**
* Gets the canShare
* True if the user has the permission to share the calendar, false otherwise. Only the user who created the calendar can share it.
*
* @return bool The canShare
*/
public function getCanShare()
{
if (array_key_exists("canShare", $this->_propDict)) {
return $this->_propDict["canShare"];
} else {
return null;
}
}
/**
* Sets the canShare
* True if the user has the permission to share the calendar, false otherwise. Only the user who created the calendar can share it.
*
* @param bool $val The canShare
*
* @return Calendar
*/
public function setCanShare($val)
{
$this->_propDict["canShare"] = boolval($val);
return $this;
}
/**
* Gets the canViewPrivateItems
* True if the user can read calendar items that have been marked private, false otherwise.
*
* @return bool The canViewPrivateItems
*/
public function getCanViewPrivateItems()
{
if (array_key_exists("canViewPrivateItems", $this->_propDict)) {
return $this->_propDict["canViewPrivateItems"];
} else {
return null;
}
}
/**
* Sets the canViewPrivateItems
* True if the user can read calendar items that have been marked private, false otherwise.
*
* @param bool $val The canViewPrivateItems
*
* @return Calendar
*/
public function setCanViewPrivateItems($val)
{
$this->_propDict["canViewPrivateItems"] = boolval($val);
return $this;
}
/**
* Gets the canEdit
* True if the user can write to the calendar, false otherwise. This property is true for the user who created the calendar. This property is also true for a user who has been shared a calendar and granted write access.
*
* @return bool The canEdit
*/
public function getCanEdit()
{
if (array_key_exists("canEdit", $this->_propDict)) {
return $this->_propDict["canEdit"];
} else {
return null;
}
}
/**
* Sets the canEdit
* True if the user can write to the calendar, false otherwise. This property is true for the user who created the calendar. This property is also true for a user who has been shared a calendar and granted write access.
*
* @param bool $val The canEdit
*
* @return Calendar
*/
public function setCanEdit($val)
{
$this->_propDict["canEdit"] = boolval($val);
return $this;
}
/**
* Gets the owner
* If set, this represents the user who created or added the calendar. For a calendar that the user created or added, the owner property is set to the user. For a calendar shared with the user, the owner property is set to the person who shared that calendar with the user.
*
* @return EmailAddress The owner
*/
public function getOwner()
{
if (array_key_exists("owner", $this->_propDict)) {
if (is_a($this->_propDict["owner"], "Microsoft\Graph\Model\EmailAddress")) {
return $this->_propDict["owner"];
} else {
$this->_propDict["owner"] = new EmailAddress($this->_propDict["owner"]);
return $this->_propDict["owner"];
}
}
return null;
}
/**
* Sets the owner
* If set, this represents the user who created or added the calendar. For a calendar that the user created or added, the owner property is set to the user. For a calendar shared with the user, the owner property is set to the person who shared that calendar with the user.
*
* @param EmailAddress $val The owner
*
* @return Calendar
*/
public function setOwner($val)
{
$this->_propDict["owner"] = $val;
return $this;
}
/**
* Gets the events
* The events in the calendar. Navigation property. Read-only.
*
* @return array The events
*/
public function getEvents()
{
if (array_key_exists("events", $this->_propDict)) {
return $this->_propDict["events"];
} else {
return null;
}
}
/**
* Sets the events
* The events in the calendar. Navigation property. Read-only.
*
* @param Event $val The events
*
* @return Calendar
*/
public function setEvents($val)
{
$this->_propDict["events"] = $val;
return $this;
}
/**
* Gets the calendarView
* The calendar view for the calendar. Navigation property. Read-only.
*
* @return array The calendarView
*/
public function getCalendarView()
{
if (array_key_exists("calendarView", $this->_propDict)) {
return $this->_propDict["calendarView"];
} else {
return null;
}
}
/**
* Sets the calendarView
* The calendar view for the calendar. Navigation property. Read-only.
*
* @param Event $val The calendarView
*
* @return Calendar
*/
public function setCalendarView($val)
{
$this->_propDict["calendarView"] = $val;
return $this;
}
/**
* Gets the singleValueExtendedProperties
* The collection of single-value extended properties defined for the calendar. Read-only. Nullable.
*
* @return array The singleValueExtendedProperties
*/
public function getSingleValueExtendedProperties()
{
if (array_key_exists("singleValueExtendedProperties", $this->_propDict)) {
return $this->_propDict["singleValueExtendedProperties"];
} else {
return null;
}
}
/**
* Sets the singleValueExtendedProperties
* The collection of single-value extended properties defined for the calendar. Read-only. Nullable.
*
* @param SingleValueLegacyExtendedProperty $val The singleValueExtendedProperties
*
* @return Calendar
*/
public function setSingleValueExtendedProperties($val)
{
$this->_propDict["singleValueExtendedProperties"] = $val;
return $this;
}
/**
* Gets the multiValueExtendedProperties
* The collection of multi-value extended properties defined for the calendar. Read-only. Nullable.
*
* @return array The multiValueExtendedProperties
*/
public function getMultiValueExtendedProperties()
{
if (array_key_exists("multiValueExtendedProperties", $this->_propDict)) {
return $this->_propDict["multiValueExtendedProperties"];
} else {
return null;
}
}
/**
* Sets the multiValueExtendedProperties
* The collection of multi-value extended properties defined for the calendar. Read-only. Nullable.
*
* @param MultiValueLegacyExtendedProperty $val The multiValueExtendedProperties
*
* @return Calendar
*/
public function setMultiValueExtendedProperties($val)
{
$this->_propDict["multiValueExtendedProperties"] = $val;
return $this;
}
}