1C-Bitrix 25.700.0
Загрузка...
Поиск...
Не найдено
UserPopupItem.php
См. документацию.
1<?php
2
3namespace Bitrix\Im\V2\Entity\User;
4
5use Bitrix\Im\V2\Rest\PopupDataItem;
6
8{
12 private array $userIds;
13
14 public function __construct(array $userIds = [])
15 {
16 $this->userIds = array_unique($userIds);
17 $this->userIds = array_filter($this->userIds, fn($userId) => $userId > 0);
18 }
19
20 public function merge(PopupDataItem $item): self
21 {
22 if ($item instanceof self)
23 {
24 $this->userIds = array_unique(array_merge($this->userIds, $item->userIds));
25 }
26
27 return $this;
28 }
29
30 public static function getRestEntityName(): string
31 {
33 }
34
35 public function toRestFormat(array $option = []): array
36 {
37 return (new UserCollection(array_unique($this->userIds)))->getUnique()->toRestFormat($option);
38 }
39}
if(!is_object($USER)||! $USER->IsAuthorized()) $userId
Определения check_mail.php:18
toRestFormat(array $option=[])
Определения UserPopupItem.php:35
__construct(array $userIds=[])
Определения UserPopupItem.php:14
merge(PopupDataItem $item)
Определения UserPopupItem.php:20
</td ></tr ></table ></td ></tr >< tr >< td class="bx-popup-label bx-width30"><?=GetMessage("PAGE_NEW_TAGS")?> array( $site)
Определения file_new.php:804
$option
Определения options.php:1711