ILIAS  trunk Revision v11.0_alpha-3011-gc6b235a2e85
class.InternalDomainService.php
Go to the documentation of this file.
1<?php
2
19declare(strict_types=1);
20
21namespace ILIAS\MediaObjects;
22
30
35{
36 use GlobalDICDomainServices;
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
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}
Customizing of pimple-DIC for ILIAS.
Definition: Container.php:36
Manages items in repository clipboard.
__construct(Container $DIC, protected InternalRepoService $repo_service, protected InternalDataService $data_service)
initDomainServices(\ILIAS\DI\Container $DIC)
global $DIC
Definition: shib_login.php:26