ILIAS  trunk Revision v11.0_alpha-3011-gc6b235a2e85
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 );
77 }
78
79 public function importantPage(int $ref_id): Navigation\ImportantPageManager
80 {
81 return self::$instance["imp_page"][$ref_id] ??= new Navigation\ImportantPageManager(
82 $this->data_service,
83 $this->repo_service->importantPage(),
84 $this->wiki(),
86 );
87 }
88
89 public function links(int $ref_id): LinkManager
90 {
91 return self::$instance["links"][$ref_id] ??= new LinkManager(
92 $this->data_service,
93 $this->repo_service->missingPage(),
94 $this,
96 );
97 }
98
99 public function wikiSettings(): SettingsManager
100 {
101 return self::$instance["settings"] ??= new SettingsManager(
102 $this->data_service,
103 $this->repo_service,
104 $this
105 );
106 }
107
108}
Repository internal data service.
Repository internal repo service.
Customizing of pimple-DIC for ILIAS.
Definition: Container.php:36
__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.
$ref_id
Definition: ltiauth.php:66
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