1C-Bitrix 25.700.0
Загрузка...
Поиск...
Не найдено
BaseSettings.php
См. документацию.
1<?php
2
4
8
9abstract class BaseSettings implements RestConvertible
10{
11 protected array $settings = [];
12
13 protected ?int $groupId;
14
15 protected bool $isLoad = false;
16
20 public function __construct(?int $groupId)
21 {
22 $this->groupId = $groupId;
23 }
24
25 abstract public function updateSetting(array $settingConfiguration);
26 abstract public function fillDataBase(): BaseSettings;
27
28 // TODO return int|array
29 abstract public function load($source): BaseSettings;
30
34 public function getSettings(): Result
35 {
36 $result = new Result();
37 if ($this->groupId === null)
38 {
40 }
41
42 if (!$this->isLoad())
43 {
44 $this->load($this->groupId);
45 }
46
47 return $result->setResult($this->settings);
48 }
49
50 public function isLoad(): bool
51 {
52 return $this->isLoad;
53 }
54}
updateSetting(array $settingConfiguration)
__construct(?int $groupId)
Определения BaseSettings.php:20
Определения result.php:20
</td ></tr ></table ></td ></tr >< tr >< td class="bx-popup-label bx-width30"><?=GetMessage("PAGE_NEW_TAGS")?> array( $site)
Определения file_new.php:804
$result
Определения get_property_values.php:14