ILIAS  trunk Revision v12.0_alpha-1540-g00f839d5fa1
class.DomainService.php
Go to the documentation of this file.
1<?php
2
19declare(strict_types=1);
20
21namespace ILIAS\COPage\PC;
22
35
40{
42 protected ?PCDefinition $def;
46
47 public function __construct(
51 ?PCDefinition $pc_definition = null
52 ) {
53 $this->repo_service = $repo_service;
54 $this->data_service = $data_service;
55 $this->domain_service = $domain_service;
56 $this->def = $pc_definition;
57 $this->pc_factory = new PCFactory(
58 $this->definition()
59 );
60 }
61
62 public function getByNode(
63 ?\DOMNode $node,
64 \ilPageObject $page_object
65 ): ?\ilPageContent {
66 return $this->pc_factory->getByNode($node, $page_object);
67 }
68
69 public function definition(): PCDefinition
70 {
71 return $this->def ?? new PCDefinition();
72 }
73
74 public function paragraph(): ParagraphManager
75 {
76 return new ParagraphManager();
77 }
78
79 public function fileList(): FileListManager
80 {
81 return new FileListManager();
82 }
83
84 public function fileListRetrieval(\ilPCFileList $file_list): FileList\FileListRetrieval
85 {
87 $this->domain_service,
88 $file_list
89 );
90 }
91
93 {
94 return new MediaObjectManager();
95 }
96
97 public function question(): QuestionManager
98 {
99 return new QuestionManager();
100 }
101
102 public function selfAssQuestionRetrieval(int $pool_ref_id, int $pool_obj_id): Question\SelfAssQuestionRetrieval
103 {
105 $this->domain_service,
106 $pool_ref_id,
107 $pool_obj_id
108 );
109 }
110
111 public function interactiveImage(): InteractiveImage\IIMManager
112 {
114 $this->domain_service
115 );
116 }
117
118 public function resources(): ResourcesManager
119 {
120 return new ResourcesManager();
121 }
122
123 public function plugged(): PluggedManager
124 {
125 return new PluggedManager();
126 }
127
129 {
130 return new GridCellRetrieval(
131 $grid
132 );
133 }
134
135}
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
fileListRetrieval(\ilPCFileList $file_list)
getByNode(?\DOMNode $node, \ilPageObject $page_object)
selfAssQuestionRetrieval(int $pool_ref_id, int $pool_obj_id)
Retrieval for self assessment questions from a pool.
Customizing of pimple-DIC for ILIAS.
Definition: Container.php:36
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...
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...