Bitrix-D7
23.9
Загрузка...
Поиск...
Не найдено
Status.php
1
<?php
2
3
namespace
Bitrix\Im\V2\Controller\Settings
;
4
5
use
Bitrix\Im\V2\Controller\Filter\SettingsCheckAccess
;
6
use
Bitrix\Im\V2\Settings\UserConfiguration
;
7
8
class
Status
extends
\Bitrix\Im\V2\Controller\BaseController
9
{
10
protected
function
getDefaultPreFilters
()
11
{
12
return
array_merge(
13
parent::getDefaultPreFilters(),
14
[
15
new
SettingsCheckAccess
(),
16
]
17
);
18
}
19
23
public
function
updateAction
(
int
$userId,
string
$status): bool
24
{
25
return
(
new
UserConfiguration
($userId))->updateStatus($status);
26
}
27
}
Bitrix\Im\V2\Controller\BaseController
Definition
BaseController.php:24
Bitrix\Im\V2\Controller\Filter\SettingsCheckAccess
Definition
SettingsCheckAccess.php:12
Bitrix\Im\V2\Controller\Settings\Status
Definition
Status.php:9
Bitrix\Im\V2\Controller\Settings\Status\getDefaultPreFilters
getDefaultPreFilters()
Definition
Status.php:10
Bitrix\Im\V2\Controller\Settings\Status\updateAction
updateAction(int $userId, string $status)
Definition
Status.php:23
Bitrix\Im\V2\Settings\UserConfiguration
Definition
UserConfiguration.php:17
Bitrix\Im\V2\Controller\Settings
Definition
General.php:3
modules
im
lib
V2
Controller
Settings
Status.php
Создано системой
1.10.0