1C-Bitrix 25.700.0
Загрузка...
Поиск...
Не найдено
LatestActivityData.php
См. документацию.
1<?php
2
4
6{
7 private ?int $id = null;
8 private int $spaceId;
9 private int $userId;
10 private int $activityId;
11
12 public static function createFromRecentActivityData(RecentActivityData $recentActivityData): self
13 {
14 return (new self())
15 ->setSpaceId($recentActivityData->getSpaceId())
16 ->setUserId($recentActivityData->getUserId())
17 ->setActivityId($recentActivityData->getId() ?? 0)
18 ;
19 }
20
21 public static function createFromQueryResult(array $queryResult): self
22 {
23 return (new self())
24 ->setId($queryResult['ID'])
25 ->setUserId($queryResult['USER_ID'])
26 ->setSpaceId($queryResult['SPACE_ID'])
27 ->setActivityId($queryResult['ACTIVITY_ID'])
28 ;
29 }
30
31 public function setId(?int $id): self
32 {
33 $this->id = $id;
34
35 return $this;
36 }
37
38 public function getId(): ?int
39 {
40 return $this->id;
41 }
42
43 public function setSpaceId(int $spaceId): self
44 {
45 $this->spaceId = $spaceId;
46
47 return $this;
48 }
49
50 public function getSpaceId(): int
51 {
52 return $this->spaceId;
53 }
54
55 public function setUserId(int $userId): self
56 {
57 $this->userId = $userId;
58
59 return $this;
60 }
61
62 public function getUserId(): int
63 {
64 return $this->userId;
65 }
66
67 public function setActivityId(int $activityId): self
68 {
69 $this->activityId = $activityId;
70
71 return $this;
72 }
73
74 public function getActivityId(): int
75 {
76 return $this->activityId;
77 }
78}
if(!is_object($USER)||! $USER->IsAuthorized()) $userId
Определения check_mail.php:18
static createFromRecentActivityData(RecentActivityData $recentActivityData)
Определения LatestActivityData.php:12
</td ></tr ></table ></td ></tr >< tr >< td class="bx-popup-label bx-width30"><?=GetMessage("PAGE_NEW_TAGS")?> array( $site)
Определения file_new.php:804