ILIAS  trunk Revision v11.0_alpha-1846-g895b5f47236
All Data Structures Namespaces Files Functions Variables Enumerations Enumerator Modules Pages
class.InternalDomainService.php
Go to the documentation of this file.
1 <?php
2 
19 declare(strict_types=1);
20 
21 namespace ILIAS\Portfolio;
22 
24 //use ILIAS\Repository\Clipboard\ClipboardManager;
27 
29 {
31  protected static array $instance = [];
32  protected Container $dic;
33 
34  public function __construct(
36  protected InternalRepoService $repo_service,
37  protected InternalDataService $data_service
38  ) {
39  $this->initDomainServices($DIC);
40  $this->dic = $DIC;
41  }
42 
43  public function portfolioSettings(): SettingsManager
44  {
45  return self::$instance["settings"] ??= new SettingsManager(
46  $this->data_service,
47  $this->repo_service,
48  $this
49  );
50  }
51 
52  public function notes(): \ILIAS\Notes\DomainService
53  {
54  return $this->dic->notes()->domain();
55  }
56 }
Interface Observer Contains several chained tasks and infos about them.
initDomainServices(\ILIAS\DI\Container $DIC)
This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Le...
__construct(Container $DIC, protected InternalRepoService $repo_service, protected InternalDataService $data_service)
global $DIC
Definition: shib_login.php:22