1C-Bitrix 25.700.0
Загрузка...
Поиск...
Не найдено
section.php
См. документацию.
1<?php
2
4
10
12{
13 public const LOCAL_EXTERNAL_TYPE = 'local';
14
18 protected ?int $id = null;
22 protected ?string $googleId = null;
26 protected ?string $syncToken = null;
30 protected ?string $pageToken = null;
34 protected ?int $calDavConnectionId = null;
38 protected ?Role $creator = null;
42 protected ?Role $owner = null;
46 protected ?Date $dateCreate = null;
50 protected ?Date $dateModified = null;
54 protected bool $isActive = false;
58 protected ?string $description = null;
62 protected ?string $color = null;
66 protected ?string $textColor = null;
70 protected ?string $type = null;
74 protected ?int $sort = null;
78 protected ?string $externalType = null;
82 protected ?string $name = null;
87 protected ?string $xmlId = null;
88 protected ?string $externalId = null;
89 protected ?string $export = null;
90 protected ?string $parentId = null;
91 protected ?string $davExchangeCal = null;
92 protected ?string $davExchangeMod = null;
93 protected ?string $calDavCal = null;
94 protected ?string $calDavMod = null;
95
96 protected ?bool $isCollab = false;
97
102 public function setId(int $id): Section
103 {
104 $this->id = $id;
105
106 return $this;
107 }
108
113 public function setGoogleId(?string $googleId): Section
114 {
115 $this->googleId = $googleId;
116
117 return $this;
118 }
119
124 public function setSyncToken(?string $token): Section
125 {
126 $this->syncToken = $token;
127
128 return $this;
129 }
130
135 public function setPageToken(?string $token): Section
136 {
137 $this->pageToken = $token;
138
139 return $this;
140 }
141
147 {
148 $this->calDavConnectionId = $calDavConnectionId;
149
150 return $this;
151 }
152
157 public function setCreator(?Role $creator): Section
158 {
159 $this->creator = $creator;
160
161 return $this;
162 }
163
168 public function setOwner(?Role $owner): Section
169 {
170 $this->owner = $owner;
171
172 return $this;
173 }
174
180 {
181 $this->dateCreate = $dateCreate;
182
183 return $this;
184 }
185
191 {
192 $this->dateModified = $dateModified;
193
194 return $this;
195 }
196
201 public function setName(?string $name): Section
202 {
203 $this->name = $name ? Emoji::decode($name) : $name;
204
205 return $this;
206 }
207
212 public function setIsActive(bool $isActive): Section
213 {
214 $this->isActive = $isActive;
215
216 return $this;
217 }
218
223 public function setDescription(?string $description): Section
224 {
225 $this->description = $description;
226
227 return $this;
228 }
229
234 public function setColor(?string $color): Section
235 {
236 $this->color = $color;
237
238 return $this;
239 }
240
245 public function setType(?string $type): Section
246 {
247 $this->type = $type;
248
249 return $this;
250 }
251
256 public function setSort(?int $sort): Section
257 {
258 $this->sort = $sort;
259
260 return $this;
261 }
262
267 public function setExternalType(?string $externalType): Section
268 {
269 $this->externalType = $externalType;
270
271 return $this;
272 }
273
279 {
280 $this->syncDataCollection = $syncDataCollection;
281
282 return $this;
283 }
284
289 public function setXmlId(?string $xmlId): Section
290 {
291 $this->xmlId = $xmlId;
292
293 return $this;
294 }
295
300 public function setExternalId(?string $externalId): Section
301 {
302 $this->externalId = $externalId;
303 return $this;
304 }
305
310 public function setExport(?string $export): Section
311 {
312 $this->export = $export;
313
314 return $this;
315 }
316
320 public function getId(): ?int
321 {
322 return $this->id;
323 }
324
328 public function getGoogleId(): ?string
329 {
330 return $this->googleId;
331 }
332
336 public function getSyncToken(): ?string
337 {
338 return $this->syncToken;
339 }
340
344 public function getPageToken(): ?string
345 {
346 return $this->pageToken;
347 }
348
352 public function getCalDavConnectionId(): ?int
353 {
355 }
356
360 public function getCreator(): ?Role
361 {
362 return $this->creator;
363 }
364
368 public function getOwner(): ?Role
369 {
370 return $this->owner;
371 }
372
376 public function getDateCreate(): ?Date
377 {
378 return $this->dateCreate;
379 }
380
384 public function getDateModified(): ?Date
385 {
386 return $this->dateModified;
387 }
388
392 public function isActive(): bool
393 {
394 return $this->isActive;
395 }
396
400 public function getDescription(): ?string
401 {
402 return $this->description;
403 }
404
408 public function getColor(): ?string
409 {
410 return $this->color;
411 }
412
416 public function getTextColor(): ?string
417 {
418 return $this->textColor;
419 }
420
424 public function getType(): ?string
425 {
426 return $this->type;
427 }
428
432 public function getSort(): ?int
433 {
434 return $this->sort;
435 }
436
440 public function getExternalType(): ?string
441 {
442 return $this->externalType;
443 }
444
445 public function getPathByServiceName(string $serviceName): string
446 {
447 return '';
448 }
449
453 public function getName(): ?string
454 {
455 return $this->name;
456 }
457
465
469 public function getXmlId(): ?string
470 {
471 return $this->xmlId;
472 }
473
477 public function getExternalId(): ?string
478 {
479 return $this->externalId;
480 }
481
485 public function getExport(): ?string
486 {
487 return $this->export;
488 }
489
493 public function getParentId(): ?string
494 {
495 return $this->parentId;
496 }
497
498 public function getDavExchangeCal(): ?string
499 {
501 }
502
503 public function getDavExchangeMod(): ?string
504 {
506 }
507
508 public function getCalDavCal(): ?string
509 {
510 return $this->calDavCal;
511 }
512
513 public function getCalDavMod(): ?string
514 {
515 return $this->calDavMod;
516 }
517
518 public function isExchange(): bool
519 {
520 return false;
521 }
522
523 public function isLocal(): bool
524 {
525 return $this->externalType === Section::LOCAL_EXTERNAL_TYPE;
526 }
527
531 public function isExternal(): bool
532 {
533 return !$this->isLocal();
534 }
535
539 public function isNew(): bool
540 {
541 return $this->id === null;
542 }
543
544 public function setIsCollab(?bool $isCollab): Section
545 {
546 $this->isCollab = (bool)$isCollab;
547
548 return $this;
549 }
550
551 public function isCollab(): bool
552 {
553 return $this->isCollab;
554 }
555
556 public function toArray(): array
557 {
558 return [
559 'ID' => $this->id,
560 'NAME' => $this->name,
561 'COLOR' => $this->color,
562 'DESCRIPTION' => $this->description,
563 'GAPI_CALENDAR_ID' => $this->googleId,
564 'CAL_DAV_MOD' => $this->syncToken,
565 'CAL_DAV_CON' => $this->calDavConnectionId,
566 'EXTERNAL_TYPE' => $this->externalType,
567 'CAL_TYPE' => $this->type,
568 'ACTIVE' => $this->isActive,
569 'XML_ID' => $this->xmlId,
570 'OWNER_ID' => $this->owner?->getId(),
571 'CREATED_BY' => $this->creator?->getId(),
572 'IS_COLLAB' => $this->isCollab,
573 ];
574 }
575}
string $davExchangeCal
Определения section.php:91
string $description
Определения section.php:58
setGoogleId(?string $googleId)
Определения section.php:113
setExternalId(?string $externalId)
Определения section.php:300
getPathByServiceName(string $serviceName)
Определения section.php:445
setType(?string $type)
Определения section.php:245
setSyncToken(?string $token)
Определения section.php:124
setCalDavConnectionId(?int $calDavConnectionId)
Определения section.php:146
string $davExchangeMod
Определения section.php:92
SectionSyncDataCollection $syncDataCollection
Определения section.php:86
setName(?string $name)
Определения section.php:201
setIsCollab(?bool $isCollab)
Определения section.php:544
setIsActive(bool $isActive)
Определения section.php:212
setSyncDataCollection(SectionSyncDataCollection $syncDataCollection)
Определения section.php:278
setXmlId(?string $xmlId)
Определения section.php:289
setSort(?int $sort)
Определения section.php:256
string $externalType
Определения section.php:78
setDateCreate(?Date $dateCreate)
Определения section.php:179
setPageToken(?string $token)
Определения section.php:135
setExternalType(?string $externalType)
Определения section.php:267
setDescription(?string $description)
Определения section.php:223
const LOCAL_EXTERNAL_TYPE
Определения section.php:13
setExport(?string $export)
Определения section.php:310
setColor(?string $color)
Определения section.php:234
setCreator(?Role $creator)
Определения section.php:157
setDateModified(?Date $dateModified)
Определения section.php:190
setOwner(?Role $owner)
Определения section.php:168
Определения emoji.php:10
Определения date.php:9
</td ></tr ></table ></td ></tr >< tr >< td class="bx-popup-label bx-width30"><?=GetMessage("PAGE_NEW_TAGS")?> array( $site)
Определения file_new.php:804
background color
Определения file_new.php:745