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\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 htmlTransformUtil(): Html\TransformUtil
88 {
89 return new Html\TransformUtil();
90 }
91
92 public function contentIds(\ilPageObject $page): ID\ContentIdManager
93 {
94 return new ID\ContentIdManager($page);
95 }
96
97 public function contentIdGenerator(): ID\ContentIdGenerator
98 {
99 return new ID\ContentIdGenerator();
100 }
101
102 public function compare(): PageCompare
103 {
104 return new PageCompare();
105 }
106
107 public function link(): LinkManager
108 {
109 return new LinkManager();
110 }
111
112 public function style(): StyleManager
113 {
114 return new StyleManager();
115 }
116
117 public function log(): ?\ilLogger
118 {
119 if (isset($this->DIC["ilLoggerFactory"])) {
120 if (is_null($this->copg_log)) {
121 $this->copg_log = $this->logger()->copg();
122 }
123 return $this->copg_log;
124 }
125 return null;
126 }
127}
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
Component logger with individual log levels by component id.
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