Bitrix-D7 23.9
 
Загрузка...
Поиск...
Не найдено
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}
updateAction(int $userId, string $name, string $value)
Definition General.php:33