1C-Bitrix 25.700.0
Загрузка...
Поиск...
Не найдено
RecentActivityData.php
См. документацию.
1<?php
2
3namespace Bitrix\Socialnetwork\Space\List\RecentActivity\Item;
4
5use Bitrix\Main\Type\Contract\Arrayable;
6use Bitrix\Main\Type\DateTime;
7
8final class RecentActivityData implements Arrayable
9{
10 private ?int $id = null;
11 private int $spaceId;
12 private int $userId;
13 private ?string $typeId = null;
14 private ?int $entityId = null;
15 private ?DateTime $dateTime = null;
16 private ?string $description = '';
17 private ?int $secondaryEntityId = null;
18
19 public function setId(?int $id): self
20 {
21 $this->id = $id;
22
23 return $this;
24 }
25
26 public function getId(): ?int
27 {
28 return $this->id;
29 }
30
31 public function setSpaceId(int $spaceId): self
32 {
33 $this->spaceId = $spaceId;
34
35 return $this;
36 }
37
38 public function getSpaceId(): int
39 {
40 return $this->spaceId;
41 }
42
43 public function setUserId(int $userId): self
44 {
45 $this->userId = $userId;
46
47 return $this;
48 }
49
50 public function getUserId(): int
51 {
52 return $this->userId;
53 }
54
55 public function setTypeId(?string $typeId): self
56 {
57 $this->typeId = $typeId;
58
59 return $this;
60 }
61
62 public function getTypeId(): ?string
63 {
64 return $this->typeId;
65 }
66
67 public function setEntityId(?int $entityId): self
68 {
69 $this->entityId = $entityId;
70
71 return $this;
72 }
73
74 public function getEntityId(): ?int
75 {
76 return $this->entityId;
77 }
78
79 public function setDateTime(?DateTime $dateTime): self
80 {
81 $this->dateTime = $dateTime;
82
83 return $this;
84 }
85
86 public function getDateTime(): ?DateTime
87 {
88 return $this->dateTime;
89 }
90
91 public function setDescription(?string $description): self
92 {
93 $this->description = $description;
94
95 return $this;
96 }
97
98 public function getDescription(): ?string
99 {
100 return $this->description;
101 }
102
103 public function setSecondaryEntityId(?int $secondaryEntityId): self
104 {
105 $this->secondaryEntityId = $secondaryEntityId;
106
107 return $this;
108 }
109
110 public function getSecondaryEntityId(): ?int
111 {
112 return $this->secondaryEntityId;
113 }
114
115 public function toArray(): array
116 {
117 return [
118 'spaceId' => $this->spaceId,
119 'userId' => $this->userId,
120 'typeId' => $this->typeId,
121 'entityId' => $this->entityId,
122 'secondaryEntityId' => $this->secondaryEntityId,
123 'timestamp' => $this->dateTime?->getTimestamp(),
124 'description' => $this->description,
125 ];
126 }
127}
if(!is_object($USER)||! $USER->IsAuthorized()) $userId
Определения check_mail.php:18
</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
$entityId
Определения payment.php:4