ILIAS  trunk Revision v13.0_alpha-52-g21c366bbdd4
class.InternalDomainService.php
Go to the documentation of this file.
1<?php
2
19declare(strict_types=1);
20
21namespace ILIAS\Wiki;
22
30
35{
36 use GlobalDICDomainServices;
37 protected static array $instance = [];
38
39 public function __construct(
43 ) {
44 $this->initDomainServices($DIC);
45 }
46
47 public function log(): \ilLogger
48 {
49 return $this->logger()->wiki();
50 }
51
52 public function content(): Content\DomainService
53 {
54 return new Content\DomainService(
55 $this->data_service,
56 $this->repo_service,
57 $this
58 );
59 }
60
61 public function wiki(): Wiki\DomainService
62 {
63 return self::$instance["wiki"] ??= new Wiki\DomainService(
64 $this->data_service,
65 $this->repo_service,
66 $this
67 );
68 }
69
70 public function page(): Page\DomainService
71 {
72 return self::$instance["page"] ??= new Page\DomainService(
73 $this->data_service,
74 $this->repo_service,
75 $this,
76 $this->DIC->copage()->internal()->domain()->page()
77 );
78 }
79
80 public function importantPage(int $ref_id): Navigation\ImportantPageManager
81 {
82 return self::$instance["imp_page"][$ref_id] ??= new Navigation\ImportantPageManager(
83 $this->data_service,
84 $this->repo_service->importantPage(),
85 $this->wiki(),
86 $ref_id
87 );
88 }
89
90 public function links(int $ref_id): LinkManager
91 {
92 return self::$instance["links"][$ref_id] ??= new LinkManager(
93 $this->data_service,
94 $this->repo_service->missingPage(),
95 $this,
96 $ref_id
97 );
98 }
99
100 public function wikiSettings(): SettingsManager
101 {
102 return self::$instance["settings"] ??= new SettingsManager(
103 $this->data_service,
104 $this->repo_service,
105 $this
106 );
107 }
108
109}
Repository internal data service.
Repository internal repo service.
Customizing of pimple-DIC for ILIAS.
Definition: Container.php:38
__construct(Container $DIC, protected InternalRepoService $repo_service, protected InternalDataService $data_service)
Wiki page.
Definition: Page.php:27
Component logger with individual log levels by component id.
initDomainServices(\ILIAS\DI\Container $DIC)
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