1C-Bitrix 25.700.0
Загрузка...
Поиск...
Не найдено
unsubscribe.php
См. документацию.
1<?php
2
3namespace Bitrix\Socialnetwork\Integration\Pull;
4
5use Bitrix\Main\Loader;
6
8{
9 public function resetByTags(array $tags, array $userIds): void
10 {
11 foreach ($tags as $tag)
12 {
13 foreach ($userIds as $userId)
14 {
15 $this->resetByTag($tag, $userId);
16 }
17 }
18 }
19
20 public function resetAllButIgnored(array $tags, array $usersToIgnore): void
21 {
22 if (!Loader::includeModule('pull'))
23 {
24 return;
25 }
26
27 foreach ($tags as $tag)
28 {
29 $watching = \CPullWatch::GetUserList($tag);
30
31 foreach ($watching as $watchingUserId => $user)
32 {
33 if (!in_array($watchingUserId, $usersToIgnore))
34 {
35 $this->resetByTag($tag, $watchingUserId);
36 }
37 }
38 }
39 }
40
41 private function resetByTag(string $tag, int $userId): void
42 {
43 $params = [
44 'eventName' => PushCommand::PULL_UNSUBSCRIBE,
45 'userId' => $userId,
46 ];
48 }
49}
if(!is_object($USER)||! $USER->IsAuthorized()) $userId
Определения check_mail.php:18
static addEventByTag(string $tag, array $params)
Определения pushservice.php:58
resetByTags(array $tags, array $userIds)
Определения unsubscribe.php:9
resetAllButIgnored(array $tags, array $usersToIgnore)
Определения unsubscribe.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
$user
Определения mysql_to_pgsql.php:33
if($inWords) echo htmlspecialcharsbx(Number2Word_Rus(roundEx($totalVatSum $params['CURRENCY']
Определения template.php:799