8use Bitrix\Im\V2\Recent\Initializer\StageType;
13 public static function getType(): StageType
15 return StageType::Other;
20 return array_map(
static fn (
array $item) => $item[
'USER_ID'],
$items);
28 'user' =>
User::getInstance($this->targetId)->toRestFormat([
'WITHOUT_ONLINE' =>
true]),
43 $raw = RecentTable::query()
44 ->setSelect([
'USER_ID'])
45 ->whereIn(
'USER_ID', $users)
46 ->where(
'ITEM_TYPE',
'P')
47 ->where(
'ITEM_ID', $this->targetId)
51 foreach ($raw as $row)
53 $id = (int)($row[
'USER_ID'] ?? 0);
62 return $this->
getItem($otherUserId, $targetUserId);
static getInstance($userId=null)
getItem(int $userId, int $itemId)
getPullRecipients(array $items)
getPullParams(array $items)
getUsersWithExistingItems(array $users)
getItemByTargetAndUser(int $targetUserId, int $otherUserId)
</td ></tr ></table ></td ></tr >< tr >< td class="bx-popup-label bx-width30"><?=GetMessage("PAGE_NEW_TAGS")?> array( $site)