1C-Bitrix 25.700.0
Загрузка...
Поиск...
Не найдено
eventcategory.php
См. документацию.
1<?php
2
4
7
8final class EventCategory implements EntityInterface
9{
10 private ?int $id = null;
11 private ?string $name = null;
12 private ?int $creatorId = null;
13 private ?bool $closed = null;
14 private ?string $description = null;
15 private ?AttendeeCollection $attendees = null;
16 private ?array $accessCodes = null;
17 private ?bool $deleted = null;
18 private ?int $channelId = null;
19 private ?int $eventsCount = 0;
20
21 public function getId(): ?int
22 {
23 return $this->id;
24 }
25
26 public function setId(?int $id): self
27 {
28 $this->id = $id;
29
30 return $this;
31 }
32
33 public function getName(): ?string
34 {
35 return $this->name;
36 }
37
38 public function setName(?string $name): self
39 {
40 $this->name = $name;
41
42 return $this;
43 }
44
45 public function getCreatorId(): ?int
46 {
47 return $this->creatorId;
48 }
49
50 public function setCreatorId(?int $creatorId): self
51 {
52 $this->creatorId = $creatorId;
53
54 return $this;
55 }
56
57 public function getClosed(): ?bool
58 {
59 return $this->closed;
60 }
61
62 public function setClosed(?bool $closed): self
63 {
64 $this->closed = $closed;
65
66 return $this;
67 }
68
69 public function getDescription(): ?string
70 {
71 return $this->description;
72 }
73
74 public function setDescription(?string $description): self
75 {
76 $this->description = $description;
77
78 return $this;
79 }
80
81 public function getAttendees(): ?AttendeeCollection
82 {
83 if (is_null($this->attendees))
84 {
85 return new AttendeeCollection();
86 }
87
88 return $this->attendees;
89 }
90
91 public function setAttendees(?AttendeeCollection $collection): EventCategory
92 {
93 $this->attendees = $collection;
94
95 return $this;
96 }
97
98 public function getAccessCodes(): ?array
99 {
100 return $this->accessCodes;
101 }
102
103 public function setAccessCodes(?array $accessCodes): self
104 {
105 $this->accessCodes = $accessCodes;
106 $this->initAttendees();
107
108 return $this;
109 }
110
111 public function getDeleted(): ?bool
112 {
113 return $this->deleted;
114 }
115
116 public function setDeleted(?bool $deleted): self
117 {
118 $this->deleted = $deleted;
119
120 return $this;
121 }
122
123 public function getChannelId(): ?int
124 {
125 return $this->channelId;
126 }
127
128 public function setChannelId(?int $channelId): self
129 {
130 $this->channelId = $channelId;
131
132 return $this;
133 }
134
135 public function getEventsCount(): ?int
136 {
137 return $this->eventsCount;
138 }
139
140 public function setEventsCount(?int $eventsCount): self
141 {
142 $this->eventsCount = $eventsCount;
143
144 return $this;
145 }
146
147 protected function initAttendees(): void
148 {
149 if ($this->getAccessCodes())
150 {
151 $collection = new AttendeeCollection();
152 $collection->setAttendeesCodes($this->getAccessCodes());
153
154 $this->attendees = $collection;
155 }
156 }
157}
if(empty( $fields)) foreach($fields as $field) $channelId
Определения push.php:23
setAccessCodes(?array $accessCodes)
Определения eventcategory.php:103
setDescription(?string $description)
Определения eventcategory.php:74
setEventsCount(?int $eventsCount)
Определения eventcategory.php:140
setAttendees(?AttendeeCollection $collection)
Определения eventcategory.php:91
</td ></tr ></table ></td ></tr >< tr >< td class="bx-popup-label bx-width30"><?=GetMessage("PAGE_NEW_TAGS")?> array( $site)
Определения file_new.php:804
if(Loader::includeModule( 'bitrix24')) elseif(Loader::includeModule('intranet') &&CIntranetUtils::getPortalZone() !=='ru') $description
Определения .description.php:24
$name
Определения menu_edit.php:35