ILIAS  trunk Revision v11.0_alpha-1831-g8615d53dadb
All Data Structures Namespaces Files Functions Variables Enumerations Enumerator Modules Pages
ILIAS\MetaData\OERHarvester\Settings\Settings\SettingsManager Class Reference
+ Collaboration diagram for ILIAS\MetaData\OERHarvester\Settings\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\MetaData\OERHarvester\Settings\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\MetaData\OERHarvester\Settings\Settings\SettingsManager::clone (   $from_id,
  $to_id 
)

Definition at line 52 of file SettingsManager.php.

References ILIAS\MetaData\OERHarvester\Settings\Settings\SettingsManager\update().

52  : void
53  {
54  $settings = $this->repo->settings()->getById($from_id);
55  $settings = $settings->withId($to_id);
56  $this->update($settings);
57  }
+ Here is the call graph for this function:

◆ create()

ILIAS\MetaData\OERHarvester\Settings\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\MetaData\OERHarvester\Settings\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

◆ update()

ILIAS\MetaData\OERHarvester\Settings\Settings\SettingsManager::update ( Settings  $settings)

Definition at line 42 of file SettingsManager.php.

Referenced by ILIAS\MetaData\OERHarvester\Settings\Settings\SettingsManager\clone().

42  : void
43  {
44  $this->repo->settings()->update($settings);
45  }
+ Here is the caller graph for this function:

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