ILIAS  trunk Revision v11.0_alpha-3011-gc6b235a2e85
ILIAS\BookingManager\Settings\SettingsManager Class Reference
+ Collaboration diagram for ILIAS\BookingManager\Settings\SettingsManager:

Public Member Functions

 __construct (protected InternalDataService $data, protected InternalRepoService $repo, protected InternalDomainService $domain)
 
 create (Settings $settings)
 
 update (Settings $settings)
 
 getByObjId (int $id)
 
 clone ($from_id, $to_id)
 

Detailed Description

Definition at line 27 of file SettingsManager.php.

Constructor & Destructor Documentation

◆ __construct()

ILIAS\BookingManager\Settings\SettingsManager::__construct ( protected InternalDataService  $data,
protected InternalRepoService  $repo,
protected InternalDomainService  $domain 
)

Definition at line 29 of file SettingsManager.php.

33 {
34 }

Member Function Documentation

◆ clone()

ILIAS\BookingManager\Settings\SettingsManager::clone (   $from_id,
  $to_id 
)

Definition at line 52 of file SettingsManager.php.

52 : void
53 {
54 $settings = $this->repo->settings()->getById($from_id);
55 $settings = $settings->withId($to_id);
56 $this->update($settings);
57 }

References ILIAS\BookingManager\Settings\SettingsManager\update().

+ Here is the call graph for this function:

◆ create()

ILIAS\BookingManager\Settings\SettingsManager::create ( Settings  $settings)

Definition at line 37 of file SettingsManager.php.

37 : void
38 {
39 $this->repo->settings()->create($settings);
40 }

◆ getByObjId()

ILIAS\BookingManager\Settings\SettingsManager::getByObjId ( int  $id)

Definition at line 47 of file SettingsManager.php.

47 : ?Settings
48 {
49 return $this->repo->settings()->getById($id);
50 }
$id
plugin.php for ilComponentBuildPluginInfoObjectiveTest::testAddPlugins
Definition: plugin.php:23

References $id.

◆ update()

ILIAS\BookingManager\Settings\SettingsManager::update ( Settings  $settings)

Definition at line 42 of file SettingsManager.php.

42 : void
43 {
44 $this->repo->settings()->update($settings);
45 }

Referenced by ILIAS\BookingManager\Settings\SettingsManager\clone().

+ Here is the caller graph for this function:

The documentation for this class was generated from the following file: