Bitrix-D7 23.9
 
Загрузка...
Поиск...
Не найдено
section.php
1<?php
2
4
9
10class Section implements EntityInterface
11{
12 public const LOCAL_EXTERNAL_TYPE = 'local';
13
17 protected ?int $id = null;
21 protected ?string $googleId = null;
25 protected ?string $syncToken = null;
29 protected ?string $pageToken = null;
33 protected ?int $calDavConnectionId = null;
37 protected ?Role $creator = null;
41 protected ?Role $owner = null;
45 protected ?Date $dateCreate = null;
49 protected ?Date $dateModified = null;
53 protected bool $isActive = false;
57 protected ?string $description = null;
61 protected ?string $color = null;
65 protected ?string $textColor = null;
69 protected ?string $type = null;
73 protected ?int $sort = null;
77 protected ?string $externalType = null;
81 protected ?string $name = null;
86 protected ?string $xmlId = null;
87 protected ?string $externalId = null;
88 protected ?string $export = null;
89 protected ?string $parentId = null;
90 protected ?string $davExchangeCal = null;
91 protected ?string $davExchangeMod = null;
92 protected ?string $calDavCal = null;
93 protected ?string $calDavMod = null;
94
99 public function setId(int $id): Section
100 {
101 $this->id = $id;
102
103 return $this;
104 }
105
110 public function setGoogleId(?string $googleId): Section
111 {
112 $this->googleId = $googleId;
113
114 return $this;
115 }
116
121 public function setSyncToken(?string $token): Section
122 {
123 $this->syncToken = $token;
124
125 return $this;
126 }
127
132 public function setPageToken(?string $token): Section
133 {
134 $this->pageToken = $token;
135
136 return $this;
137 }
138
144 {
145 $this->calDavConnectionId = $calDavConnectionId;
146
147 return $this;
148 }
149
154 public function setCreator(?Role $creator): Section
155 {
156 $this->creator = $creator;
157
158 return $this;
159 }
160
165 public function setOwner(?Role $owner): Section
166 {
167 $this->owner = $owner;
168
169 return $this;
170 }
171
177 {
178 $this->dateCreate = $dateCreate;
179
180 return $this;
181 }
182
188 {
189 $this->dateModified = $dateModified;
190
191 return $this;
192 }
193
198 public function setName(?string $name): Section
199 {
200 $this->name = $name ? Emoji::decode($name) : $name;
201
202 return $this;
203 }
204
209 public function setIsActive(bool $isActive): Section
210 {
211 $this->isActive = $isActive;
212
213 return $this;
214 }
215
220 public function setDescription(?string $description): Section
221 {
222 $this->description = $description;
223
224 return $this;
225 }
226
231 public function setColor(?string $color): Section
232 {
233 $this->color = $color;
234
235 return $this;
236 }
237
242 public function setType(?string $type): Section
243 {
244 $this->type = $type;
245
246 return $this;
247 }
248
253 public function setSort(?int $sort): Section
254 {
255 $this->sort = $sort;
256
257 return $this;
258 }
259
264 public function setExternalType(?string $externalType): Section
265 {
266 $this->externalType = $externalType;
267
268 return $this;
269 }
270
276 {
277 $this->syncDataCollection = $syncDataCollection;
278
279 return $this;
280 }
281
286 public function setXmlId(?string $xmlId): Section
287 {
288 $this->xmlId = $xmlId;
289
290 return $this;
291 }
292
297 public function setExternalId(?string $externalId): Section
298 {
299 $this->externalId = $externalId;
300 return $this;
301 }
302
307 public function setExport(?string $export): Section
308 {
309 $this->export = $export;
310
311 return $this;
312 }
313
317 public function getId(): ?int
318 {
319 return $this->id;
320 }
321
325 public function getGoogleId(): ?string
326 {
327 return $this->googleId;
328 }
329
333 public function getSyncToken(): ?string
334 {
335 return $this->syncToken;
336 }
337
341 public function getPageToken(): ?string
342 {
343 return $this->pageToken;
344 }
345
349 public function getCalDavConnectionId(): ?int
350 {
352 }
353
357 public function getCreator(): ?Role
358 {
359 return $this->creator;
360 }
361
365 public function getOwner(): ?Role
366 {
367 return $this->owner;
368 }
369
373 public function getDateCreate(): ?Date
374 {
375 return $this->dateCreate;
376 }
377
381 public function getDateModified(): ?Date
382 {
383 return $this->dateModified;
384 }
385
389 public function isActive(): bool
390 {
391 return $this->isActive;
392 }
393
397 public function getDescription(): ?string
398 {
399 return $this->description;
400 }
401
405 public function getColor(): ?string
406 {
407 return $this->color;
408 }
409
413 public function getTextColor(): ?string
414 {
415 return $this->textColor;
416 }
417
421 public function getType(): ?string
422 {
423 return $this->type;
424 }
425
429 public function getSort(): ?int
430 {
431 return $this->sort;
432 }
433
437 public function getExternalType(): ?string
438 {
439 return $this->externalType;
440 }
441
442 public function getPathByServiceName(string $serviceName): string
443 {
444 return '';
445 }
446
450 public function getName(): ?string
451 {
452 return $this->name;
453 }
454
462
466 public function getXmlId(): ?string
467 {
468 return $this->xmlId;
469 }
470
474 public function getExternalId(): ?string
475 {
476 return $this->externalId;
477 }
478
482 public function getExport(): ?string
483 {
484 return $this->export;
485 }
486
490 public function getParentId(): ?string
491 {
492 return $this->parentId;
493 }
494
495 public function getDavExchangeCal(): ?string
496 {
498 }
499
500 public function getDavExchangeMod(): ?string
501 {
503 }
504
505 public function getCalDavCal(): ?string
506 {
507 return $this->calDavCal;
508 }
509
510 public function getCalDavMod(): ?string
511 {
512 return $this->calDavMod;
513 }
514
515 public function isExchange(): bool
516 {
517 return false;
518 }
519
520 public function isLocal(): bool
521 {
522 return $this->externalType === Section::LOCAL_EXTERNAL_TYPE;
523 }
524
528 public function isExternal(): bool
529 {
530 return !$this->isLocal();
531 }
532
536 public function isNew(): bool
537 {
538 return $this->id === null;
539 }
540}
setExternalId(?string $externalId)
Definition section.php:297
getPathByServiceName(string $serviceName)
Definition section.php:442
setCalDavConnectionId(?int $calDavConnectionId)
Definition section.php:143
SectionSyncDataCollection $syncDataCollection
Definition section.php:85
setSyncDataCollection(SectionSyncDataCollection $syncDataCollection)
Definition section.php:275
setExternalType(?string $externalType)
Definition section.php:264
setDescription(?string $description)
Definition section.php:220
setDateModified(?Date $dateModified)
Definition section.php:187