ILIAS  release_9 Revision v9.13-25-g2c18ec4c24f
class.InternalDomainService.php
Go to the documentation of this file.
1 <?php
2 
3 declare(strict_types=1);
4 
21 namespace ILIAS\Container;
22 
23 use ILIAS\DI;
27 
32 {
34 
35  protected \ILIAS\Style\Content\DomainService $content_style_domain;
38 
39  public function __construct(
41  InternalRepoService $repo_service,
42  InternalDataService $data_service
43  ) {
44  $this->repo_service = $repo_service;
45  $this->data_service = $data_service;
46  $this->content_style_domain = $DIC->contentStyle()->domain();
47  $this->initDomainServices($DIC);
48  }
49 
50  public function content(): Content\DomainService
51  {
52  return new Content\DomainService(
53  $this->repo_service,
54  $this->data_service,
55  $this
56  );
57  }
58 
59  public function page(
61  ?string $lang = null
62  ): Page\PageManager {
63  return new PageManager(
64  $this,
65  $this->content_style_domain,
66  $container,
67  $lang
68  );
69  }
70 
71  public function classification(int $base_ref_id): ClassificationManager
72  {
73  return new ClassificationManager(
74  $this->repo_service->classification($base_ref_id),
75  $base_ref_id
76  );
77  }
78 }
ILIAS Style Content DomainService $content_style_domain
This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Le...
__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)
Customizing of pimple-DIC for ILIAS.
Definition: Container.php:35
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:14
global $DIC
Definition: feed.php:28
Class HTTPServicesTest.
page(\ilContainer $container, ?string $lang=null)
This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Le...
$lang
Definition: xapiexit.php:26
Repository internal repo service.