1C-Bitrix
25.700.0
Загрузка...
Поиск...
Не найдено
CounterOverflowInfo.php
См. документацию.
1
<?php
2
3
namespace
Bitrix\Im\V2\Message\Counter
;
4
5
class
CounterOverflowInfo
6
{
7
protected
array
$usersWithOverflow
;
8
protected
array
$usersWithoutOverflow
;
9
10
public
function
__construct
(
array
$usersWithOverflow
,
array
$usersWithoutOverflow
)
11
{
12
$this->usersWithOverflow =
$usersWithOverflow
;
13
$this->usersWithoutOverflow =
$usersWithoutOverflow
;
14
}
15
16
public
function
getUsersWithoutOverflow
():
array
17
{
18
return
$this->usersWithoutOverflow
;
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
}
$userId
if(!is_object($USER)||! $USER->IsAuthorized()) $userId
Определения
check_mail.php:18
Bitrix\Im\V2\Message\Counter\CounterOverflowInfo
Определения
CounterOverflowInfo.php:6
Bitrix\Im\V2\Message\Counter\CounterOverflowInfo\$usersWithOverflow
array $usersWithOverflow
Определения
CounterOverflowInfo.php:7
Bitrix\Im\V2\Message\Counter\CounterOverflowInfo\changeOverflowStatus
changeOverflowStatus(int $userId, bool $hasOverflowNow)
Определения
CounterOverflowInfo.php:31
Bitrix\Im\V2\Message\Counter\CounterOverflowInfo\has
has(int $userId)
Определения
CounterOverflowInfo.php:26
Bitrix\Im\V2\Message\Counter\CounterOverflowInfo\getUsersWithoutOverflow
getUsersWithoutOverflow()
Определения
CounterOverflowInfo.php:16
Bitrix\Im\V2\Message\Counter\CounterOverflowInfo\$usersWithoutOverflow
array $usersWithoutOverflow
Определения
CounterOverflowInfo.php:8
Bitrix\Im\V2\Message\Counter\CounterOverflowInfo\__construct
__construct(array $usersWithOverflow, array $usersWithoutOverflow)
Определения
CounterOverflowInfo.php:10
Bitrix\Im\V2\Message\Counter\CounterOverflowInfo\hasOverflow
hasOverflow(int $userId)
Определения
CounterOverflowInfo.php:21
array
</td ></tr ></table ></td ></tr >< tr >< td class="bx-popup-label bx-width30"><?=GetMessage("PAGE_NEW_TAGS")?> array( $site)
Определения
file_new.php:804
Bitrix\Im\V2\Message\Counter
Определения
CounterOverflowInfo.php:3
bitrix
modules
im
lib
V2
Message
Counter
CounterOverflowInfo.php
Создано системой
1.14.0