1C-Bitrix
25.700.0
Загрузка...
Поиск...
Не найдено
General.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
General
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
listAction
(
int
$userId
):
array
24
{
25
$userConfiguration =
new
UserConfiguration
(
$userId
);
26
27
return
$userConfiguration->getGeneralSettings();
28
}
29
33
public
function
updateAction
(
int
$userId
,
string
$name
,
string
$value): bool
34
{
35
$value = $value ===
'N'
?
false
: ($value ===
'Y'
? true : $value);
36
$userConfiguration =
new
UserConfiguration
(
$userId
);
37
$userConfiguration->updateGeneralSetting([
38
'name'
=>
$name
,
39
'value'
=> $value
40
]);
41
42
return
true
;
43
}
44
}
$userId
if(!is_object($USER)||! $USER->IsAuthorized()) $userId
Определения
check_mail.php:18
Bitrix\Im\V2\Controller\BaseController
Определения
BaseController.php:30
Bitrix\Im\V2\Controller\Filter\SettingsCheckAccess
Определения
SettingsCheckAccess.php:12
Bitrix\Im\V2\Controller\Settings\General
Определения
General.php:9
Bitrix\Im\V2\Controller\Settings\General\getDefaultPreFilters
getDefaultPreFilters()
Определения
General.php:10
Bitrix\Im\V2\Controller\Settings\General\listAction
listAction(int $userId)
Определения
General.php:23
Bitrix\Im\V2\Controller\Settings\General\updateAction
updateAction(int $userId, string $name, string $value)
Определения
General.php:33
Bitrix\Im\V2\Settings\UserConfiguration
Определения
UserConfiguration.php:17
array
</td ></tr ></table ></td ></tr >< tr >< td class="bx-popup-label bx-width30"><?=GetMessage("PAGE_NEW_TAGS")?> array( $site)
Определения
file_new.php:804
$name
$name
Определения
menu_edit.php:35
Bitrix\Im\V2\Controller\Settings
Определения
General.php:3
false
return false
Определения
prolog_main_admin.php:185
bitrix
modules
im
lib
V2
Controller
Settings
General.php
Создано системой
1.14.0