ILIAS  trunk Revision v11.0_alpha-1713-gd8962da2f67
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\MediaObjects;
22 
30 
35 {
37 
38  protected static array $instance = [];
39 
40  public function __construct(
42  protected InternalRepoService $repo_service,
43  protected InternalDataService $data_service
44  ) {
45  $this->initDomainServices($DIC);
46  }
47 
48  public function mediaObject(): MediaObjectManager
49  {
50  return self::$instance["mob"] ??= new MediaObjectManager(
51  $this->data_service,
52  $this->repo_service,
53  $this,
54  new \ilMobStakeholder()
55  );
56  }
57 
58  public function imageMap(): ImageMapManager
59  {
60  return new ImageMapManager(
61  $this->repo_service->imageMap()
62  );
63  }
64 
65  public function mediaType(): MediaTypeManager
66  {
67  return new MediaTypeManager();
68  }
69 
70  public function tracking(): TrackingManager
71  {
72  return new TrackingManager(
73  $this
74  );
75  }
76 
77  public function metadata(): MetadataManager
78  {
79  return new MetadataManager($this->learningObjectMetadata());
80  }
81 
82  public function thumbs(): ThumbsManager
83  {
84  return new ThumbsManager(
85  $this->data_service,
86  $this
87  );
88  }
89 
90 }
__construct(Container $DIC, protected InternalRepoService $repo_service, protected InternalDataService $data_service)
initDomainServices(\ILIAS\DI\Container $DIC)
global $DIC
Definition: shib_login.php:22
This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Le...