1C-Bitrix 25.700.0
Загрузка...
Поиск...
Не найдено
CounterOverflowInfo.php
См. документацию.
1<?php
2
4
6{
9
11 {
12 $this->usersWithOverflow = $usersWithOverflow;
13 $this->usersWithoutOverflow = $usersWithoutOverflow;
14 }
15
16 public function getUsersWithoutOverflow(): array
17 {
19 }
20
21 public function hasOverflow(int $userId): bool
22 {
23 return isset($this->usersWithOverflow[$userId]);
24 }
25
26 public function has(int $userId): bool
27 {
28 return isset($this->usersWithOverflow[$userId]) || isset($this->usersWithoutOverflow[$userId]);
29 }
30
31 public function changeOverflowStatus(int $userId, bool $hasOverflowNow): void
32 {
33 if ($hasOverflowNow)
34 {
35 $this->usersWithOverflow[$userId] = $userId;
36 unset($this->usersWithoutOverflow[$userId]);
37 }
38 else
39 {
40 $this->usersWithoutOverflow[$userId] = $userId;
41 unset($this->usersWithOverflow[$userId]);
42 }
43 }
44}
if(!is_object($USER)||! $USER->IsAuthorized()) $userId
Определения check_mail.php:18
changeOverflowStatus(int $userId, bool $hasOverflowNow)
Определения CounterOverflowInfo.php:31
__construct(array $usersWithOverflow, array $usersWithoutOverflow)
Определения CounterOverflowInfo.php:10
</td ></tr ></table ></td ></tr >< tr >< td class="bx-popup-label bx-width30"><?=GetMessage("PAGE_NEW_TAGS")?> array( $site)
Определения file_new.php:804