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\Wiki;
22 
26 use ILIAS\Wiki\Page;
27 use ILIAS\Wiki\Wiki;
29 
34 {
36 
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->initDomainServices($DIC);
48  }
49 
50  public function log(): \ilLogger
51  {
52  return $this->logger()->wiki();
53  }
54 
55  public function content(): Content\DomainService
56  {
57  return new Content\DomainService(
58  $this->data_service,
59  $this->repo_service,
60  $this
61  );
62  }
63 
64  public function wiki(): Wiki\DomainService
65  {
66  return new Wiki\DomainService(
67  $this->data_service,
68  $this->repo_service,
69  $this
70  );
71  }
72 
73  public function page(): Page\DomainService
74  {
75  return new Page\DomainService(
76  $this->data_service,
77  $this->repo_service,
78  $this
79  );
80  }
81 
82  public function importantPage(int $ref_id): Navigation\ImportantPageManager
83  {
85  $this->data_service,
86  $this->repo_service->importantPage(),
87  $this->wiki(),
88  $ref_id
89  );
90  }
91 
92  public function links(int $ref_id): LinkManager
93  {
94  return new LinkManager(
95  $this->data_service,
96  $this->repo_service->missingPage(),
97  $this,
98  $ref_id
99  );
100  }
101 
102 }
initDomainServices(\ILIAS\DI\Container $DIC)
Customizing of pimple-DIC for ILIAS.
Definition: Container.php:35
global $DIC
Definition: feed.php:28
$ref_id
Definition: ltiauth.php:67
This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Le...
This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Le...
Definition: Page.php:21
__construct(Container $DIC, InternalRepoService $repo_service, InternalDataService $data_service)
Wiki page.
Definition: Page.php:26
This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Le...
This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Le...