ILIAS  trunk Revision v13.0_alpha-52-g21c366bbdd4
class.InternalService.php
Go to the documentation of this file.
1<?php
2
19declare(strict_types=1);
20
21namespace ILIAS\MediaPool;
22
24
30{
35
36 public function __construct(Container $DIC)
37 {
38 $this->data = new InternalDataService();
39 $media_pool_repository = new MediaPoolRepository($DIC->database());
40 $advanced_metadata = new \ILIAS\AdvancedMetaData\Services\Services();
41
42 $this->repo = new InternalRepoService(
43 $this->data(),
44 $DIC->database()
45 );
46 $this->domain = new InternalDomainService(
47 $DIC,
48 $this->repo,
49 $this->data
50 );
51 $this->gui = new InternalGUIService(
52 $DIC,
53 $this->data,
54 $this->domain,
55 $media_pool_repository,
56 $advanced_metadata,
57 $DIC->user(),
58 $DIC->mediaObjects()->internal()->gui()->thumbs()
59 );
60 }
61
62 public function data(): InternalDataService
63 {
64 return $this->data;
65 }
66
67 public function repo(): InternalRepoService
68 {
69 return $this->repo;
70 }
71
72 public function domain(): InternalDomainService
73 {
74 return $this->domain;
75 }
76
77 public function gui(): InternalGUIService
78 {
79 return $this->gui;
80 }
81}
Customizing of pimple-DIC for ILIAS.
Definition: Container.php:38
database()
Get interface to the Database.
Definition: Container.php:42
Repository internal data service.
Media pool internal service.
This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Le...
global $DIC
Definition: shib_login.php:26