ILIAS  trunk Revision v13.0_alpha-52-g21c366bbdd4
class.DomainService.php
Go to the documentation of this file.
1<?php
2
19declare(strict_types=1);
20
21namespace ILIAS\COPage\PC;
22
36
41{
43 protected ?PCDefinition $def;
47
48 public function __construct(
52 ?PCDefinition $pc_definition = null
53 ) {
54 $this->repo_service = $repo_service;
55 $this->data_service = $data_service;
56 $this->domain_service = $domain_service;
57 $this->def = $pc_definition;
58 $this->pc_factory = new PCFactory(
59 $this->definition()
60 );
61 }
62
63 public function getByNode(
64 ?\DOMNode $node,
65 \ilPageObject $page_object
66 ): ?\ilPageContent {
67 return $this->pc_factory->getByNode($node, $page_object);
68 }
69
70 public function definition(): PCDefinition
71 {
72 return $this->def ?? new PCDefinition();
73 }
74
75 public function paragraph(): ParagraphManager
76 {
77 return new ParagraphManager();
78 }
79
80 public function fileList(): FileListManager
81 {
82 return new FileListManager();
83 }
84
85 public function fileListRetrieval(\ilPCFileList $file_list): FileList\FileListRetrieval
86 {
88 $this->domain_service,
89 $file_list
90 );
91 }
92
94 {
95 return new MediaObjectManager();
96 }
97
98 public function question(): QuestionManager
99 {
100 return new QuestionManager();
101 }
102
103 public function selfAssQuestionRetrieval(int $pool_ref_id, int $pool_obj_id): Question\SelfAssQuestionRetrieval
104 {
106 $this->domain_service,
107 $pool_ref_id,
108 $pool_obj_id
109 );
110 }
111
112 public function interactiveImage(): InteractiveImage\IIMManager
113 {
115 $this->domain_service
116 );
117 }
118
119 public function resources(): ResourcesManager
120 {
121 return new ResourcesManager();
122 }
123
124 public function plugged(): PluggedManager
125 {
126 return new PluggedManager();
127 }
128
130 {
131 return new GridCellRetrieval(
132 $grid
133 );
134 }
135
136 public function imageMapRetrieval(
138 string $parent_node_name
141 $content_obj,
142 $parent_node_name
143 );
144 }
145
146}
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)
imageMapRetrieval(\ilPCInteractiveImage|\ilPCMediaObject $content_obj, string $parent_node_name)
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:38
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...
This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Le...
Class ilPCMediaObject Media content object (see ILIAS DTD)
Content object of ilPageObject (see ILIAS DTD).
Class ilPageObject Handles PageObjects of ILIAS Learning Modules (see ILIAS DTD)
return['3gp', '7z', 'ai', 'aif', 'aifc', 'aiff', 'au', 'arw', 'avi', 'backup', 'bak', 'bas', 'bpmn', 'bpmn2', 'bmp', 'bib', 'bibtex', 'bz', 'bz2', 'c', 'c++', 'cc', 'cct', 'cdf', 'cer', 'class', 'cls', 'conf', 'cpp', 'crt', 'crs', 'crw', 'cr2', 'css', 'cst', 'csv', 'cur', 'db', 'dcr', 'des', 'dng', 'doc', 'docx', 'dot', 'dotx', 'dtd', 'dvi', 'el', 'eps', 'epub', 'f', 'f77', 'f90', 'flv', 'for', 'g3', 'gif', 'gl', 'gan', 'ggb', 'gsd', 'gsm', 'gtar', 'gz', 'gzip', 'h', 'hpp', 'htm', 'html', 'htmls', 'ibooks', 'ico', 'ics', 'ini', 'ipynb', 'java', 'jbf', 'jpeg', 'jpg', 'js', 'jsf', 'jso', 'json', 'latex', 'lang', 'less', 'log', 'lsp', 'ltx', 'm1v', 'm2a', 'm2v', 'm3u', 'm4a', 'm4v', 'markdown', 'm', 'mat', 'md', 'mdl', 'mdown', 'mid', 'min', 'midi', 'mobi', 'mod', 'mov', 'movie', 'mp2', 'mp3', 'mp4', 'mpa', 'mpeg', 'mpg', 'mph', 'mpga', 'mpp', 'mpt', 'mpv', 'mpx', 'mv', 'mw', 'mv4', 'nb', 'nbp', 'nef', 'nif', 'niff', 'obj', 'obm', 'odt', 'ods', 'odp', 'odg', 'odf', 'oga', 'ogg', 'ogv', 'old', 'p', 'pas', 'pbm', 'pcl', 'pct', 'pcx', 'pdf', 'pgm', 'pic', 'pict', 'png', 'por', 'pov', 'project', 'properties', 'ppa', 'ppm', 'pps', 'ppsx', 'ppt', 'pptx', 'ppz', 'ps', 'psd', 'pwz', 'qt', 'qtc', 'qti', 'qtif', 'r', 'ra', 'ram', 'rar', 'rast', 'rda', 'rev', 'rexx', 'ris', 'rf', 'rgb', 'rm', 'rmd', 'rmi', 'rmm', 'rmp', 'rt', 'rtf', 'rtx', 'rv', 's', 's3m', 'sav', 'sbs', 'sec', 'sdml', 'sgm', 'sgml', 'smi', 'smil', 'srt', 'sps', 'spv', 'stl', 'svg', 'swa', 'swf', 'swz', 'tar', 'tex', 'texi', 'texinfo', 'text', 'tgz', 'tif', 'tiff', 'ttf', 'txt', 'tmp', 'uvproj', 'vdf', 'vimeo', 'viv', 'vivo', 'vrml', 'vsdx', 'vtt', 'wav', 'webm', 'wmv', 'wmx', 'wmz', 'woff', 'wwd', 'xhtml', 'xif', 'xls', 'xlsx', 'xmind', 'xml', 'xsl', 'xsd', 'zip']
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...