ILIAS  trunk Revision v11.0_alpha-1723-g8e69f309bab
All Data Structures Namespaces Files Functions Variables Enumerations Enumerator Modules Pages
class.InternalDomainService.php
Go to the documentation of this file.
1 <?php
2 
19 declare(strict_types=1);
20 
21 namespace ILIAS\COPage;
22 
31 
36 {
38 
39  protected ?\ilLogger $copg_log = null;
42 
43  public function __construct(
45  InternalRepoService $repo_service,
46  InternalDataService $data_service
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 }
initDomainServices(\ILIAS\DI\Container $DIC)
Repository internal repo service.
while($session_entry=$r->fetchRow(ilDBConstants::FETCHMODE_ASSOC)) return null
Class ilPageObject Handles PageObjects of ILIAS Learning Modules (see ILIAS DTD)
global $DIC
Definition: shib_login.php:22
This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Le...
Definition: PageLinker.php:19
Repository internal data service.
__construct(Container $DIC, InternalRepoService $repo_service, InternalDataService $data_service)
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...