ILIAS  trunk Revision v12.0_alpha-377-g3641b37b9db
class.InternalDomainService.php
Go to the documentation of this file.
1<?php
2
19declare(strict_types=1);
20
21namespace ILIAS\COPage;
22
31
36{
37 use GlobalDICDomainServices;
38
39 protected ?\ilLogger $copg_log = null;
42
43 public function __construct(
47 ) {
48 $this->repo_service = $repo_service;
49 $this->data_service = $data_service;
50 $this->initDomainServices($DIC);
51 }
52
53 public function pc(?PCDefinition $def = null): PC\DomainService
54 {
55 return new PC\DomainService(
56 $this->data_service,
57 $this->repo_service,
58 $this,
59 $def
60 );
61 }
62
63 public function history(): History\HistoryManager
64 {
65 return new History\HistoryManager(
66 $this->data_service,
67 $this->repo_service,
68 $this
69 );
70 }
71
72 public function xsl(): Xsl\XslManager
73 {
74 return new Xsl\XslManager();
75 }
76
77 public function domUtil(): Dom\DomUtil
78 {
79 return new Dom\DomUtil();
80 }
81
82 public function page(): Page\PageManagerInterface
83 {
84 return new Page\PageManager();
85 }
86
87 public function pageConfig(string $parent_type): \ilPageConfig
88 {
90 $class = $def["class_name"] . "Config";
91 $cfg = new $class();
92 return $cfg;
93 }
94
95 public function htmlTransformUtil(): Html\TransformUtil
96 {
97 return new Html\TransformUtil();
98 }
99
100 public function contentIds(\ilPageObject $page): ID\ContentIdManager
101 {
102 return new ID\ContentIdManager($page);
103 }
104
105 public function contentIdGenerator(): ID\ContentIdGenerator
106 {
107 return new ID\ContentIdGenerator();
108 }
109
110 public function compare(): PageCompare
111 {
112 return new PageCompare();
113 }
114
115 public function link(): LinkManager
116 {
117 return new LinkManager();
118 }
119
120 public function style(): StyleManager
121 {
122 return new StyleManager();
123 }
124
125 public function log(): ?\ilLogger
126 {
127 if (isset($this->DIC["ilLoggerFactory"])) {
128 if (is_null($this->copg_log)) {
129 $this->copg_log = $this->logger()->copg();
130 }
131 return $this->copg_log;
132 }
133 return null;
134 }
135}
Repository internal data service.
__construct(Container $DIC, InternalRepoService $repo_service, InternalDataService $data_service)
Repository internal repo service.
Customizing of pimple-DIC for ILIAS.
Definition: Container.php:36
static getDefinitionByParentType(string $a_parent_type)
Get definition by parent type.
Component logger with individual log levels by component id.
This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Le...
Class ilPageObject Handles PageObjects of ILIAS Learning Modules (see ILIAS DTD)
This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Le...
initDomainServices(\ILIAS\DI\Container $DIC)
global $DIC
Definition: shib_login.php:26