ILIAS  trunk Revision v11.0_alpha-3011-gc6b235a2e85
class.DomainService.php
Go to the documentation of this file.
1<?php
2
19declare(strict_types=1);
20
21namespace ILIAS\COPage\PC;
22
34
39{
41 protected ?PCDefinition $def;
45
46 public function __construct(
50 ?PCDefinition $pc_definition = null
51 ) {
52 $this->repo_service = $repo_service;
53 $this->data_service = $data_service;
54 $this->domain_service = $domain_service;
55 $this->def = $pc_definition;
56 $this->pc_factory = new PCFactory(
57 $this->definition()
58 );
59 }
60
61 public function getByNode(
62 ?\DOMNode $node,
63 \ilPageObject $page_object
64 ): ?\ilPageContent {
65 return $this->pc_factory->getByNode($node, $page_object);
66 }
67
68 public function definition(): PCDefinition
69 {
70 return $this->def ?? new PCDefinition();
71 }
72
73 public function paragraph(): ParagraphManager
74 {
75 return new ParagraphManager();
76 }
77
78 public function fileList(): FileListManager
79 {
80 return new FileListManager();
81 }
82
84 {
85 return new MediaObjectManager();
86 }
87
88 public function question(): QuestionManager
89 {
90 return new QuestionManager();
91 }
92
93 public function interactiveImage(): InteractiveImage\IIMManager
94 {
96 $this->domain_service
97 );
98 }
99
100 public function resources(): ResourcesManager
101 {
102 return new ResourcesManager();
103 }
104
105 public function plugged(): PluggedManager
106 {
107 return new PluggedManager();
108 }
109
110}
Repository internal data service.
Repository internal repo service.
__construct(InternalDataService $data_service, InternalRepoService $repo_service, InternalDomainService $domain_service, ?PCDefinition $pc_definition=null)
InternalDomainService $domain_service
getByNode(?\DOMNode $node, \ilPageObject $page_object)
Customizing of pimple-DIC for ILIAS.
Definition: Container.php:36
Content object of ilPageObject (see ILIAS DTD).
Class ilPageObject Handles PageObjects of ILIAS Learning Modules (see ILIAS DTD)
return['delivery_method'=> 'php',]
This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Le...
This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Le...