ILIAS  trunk Revision v11.0_alpha-3011-gc6b235a2e85
SettingsManager.php
Go to the documentation of this file.
1<?php
2
19declare(strict_types=1);
20
22
26
28{
29 public function __construct(
30 protected InternalDataService $data,
31 protected InternalRepoService $repo,
32 protected InternalDomainService $domain
33 ) {
34 }
35
36 public function create(Settings $settings): void
37 {
38 $this->repo->settings()->create($settings);
39 }
40
41 public function update(Settings $settings): void
42 {
43 $this->repo->settings()->update($settings);
44 }
45
46 public function getById(int $id): ?Settings
47 {
48 return $this->repo->settings()->getById($id);
49 }
50}
$id
plugin.php for ilComponentBuildPluginInfoObjectiveTest::testAddPlugins
Definition: plugin.php:23
Repository internal data service.
__construct(protected InternalDataService $data, protected InternalRepoService $repo, protected InternalDomainService $domain)