1C-Bitrix 25.700.0
Загрузка...
Поиск...
Не найдено
General.php
См. документацию.
1<?php
2
4
7
9{
10 protected function getDefaultPreFilters()
11 {
12 return array_merge(
13 parent::getDefaultPreFilters(),
14 [
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}
if(!is_object($USER)||! $USER->IsAuthorized()) $userId
Определения check_mail.php:18
listAction(int $userId)
Определения General.php:23
updateAction(int $userId, string $name, string $value)
Определения General.php:33
</td ></tr ></table ></td ></tr >< tr >< td class="bx-popup-label bx-width30"><?=GetMessage("PAGE_NEW_TAGS")?> array( $site)
Определения file_new.php:804
$name
Определения menu_edit.php:35
return false
Определения prolog_main_admin.php:185