ILIAS  trunk Revision v11.0_alpha-2638-g80c1d007f79
class.InternalDomainService.php
Go to the documentation of this file.
1 <?php
2 
19 declare(strict_types=1);
20 
21 namespace ILIAS\Container;
22 
23 use ILIAS\DI;
28 
33 {
35 
36  protected \ILIAS\Style\Content\DomainService $content_style_domain;
39 
40  public function __construct(
42  InternalRepoService $repo_service,
43  InternalDataService $data_service
44  ) {
45  $this->repo_service = $repo_service;
46  $this->data_service = $data_service;
47  $this->content_style_domain = $DIC->contentStyle()->domain();
48  $this->initDomainServices($DIC);
49  }
50 
51  public function content(): Content\DomainService
52  {
53  return new Content\DomainService(
54  $this->repo_service,
55  $this->data_service,
56  $this
57  );
58  }
59 
60  public function page(
62  ?string $lang = null
63  ): Page\PageManager {
64  return new PageManager(
65  $this->DIC->database(),
66  $this,
67  $this->content_style_domain,
68  $container,
69  $lang
70  );
71  }
72 
73  public function classification(int $base_ref_id): ClassificationManager
74  {
75  return new ClassificationManager(
76  $this->repo_service->classification($base_ref_id),
77  $base_ref_id
78  );
79  }
80 
81  public function metadata(): MetadataManager
82  {
83  return new MetadataManager($this->learningObjectMetadata());
84  }
85 
86  public function containerFilterRetrieval(
87  \ilContainerFilterService $container_filter_service,
88  int $ref_id
89  ): Filter\ContainerFilterRetrieval {
90  return new Filter\ContainerFilterRetrieval(
91  $container_filter_service,
92  $ref_id
93  );
94  }
95 }
ILIAS Style Content DomainService $content_style_domain
__construct(DI\Container $DIC, InternalRepoService $repo_service, InternalDataService $data_service)
This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Le...
initDomainServices(\ILIAS\DI\Container $DIC)
This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Le...
Definition: Container.php:19
Repository internal data service.
$container
Definition: wac.php:36
while($session_entry=$r->fetchRow(ilDBConstants::FETCHMODE_ASSOC)) return null
$ref_id
Definition: ltiauth.php:65
containerFilterRetrieval(\ilContainerFilterService $container_filter_service, int $ref_id)
Class HTTPServicesTest.
global $DIC
Definition: shib_login.php:26
page(\ilContainer $container, ?string $lang=null)
Class ilContainer.
$lang
Definition: xapiexit.php:25
Repository internal repo service.
This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Le...