ILIAS  trunk Revision v11.0_alpha-1749-g1a06bdef097
All Data Structures Namespaces Files Functions Variables Enumerations Enumerator Modules Pages
SettingsManager.php
Go to the documentation of this file.
1 <?php
2 
19 declare(strict_types=1);
20 
21 namespace ILIAS\Portfolio\Settings;
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
__construct(protected InternalDataService $data, protected InternalRepoService $repo, protected InternalDomainService $domain)