ILIAS  release_8 Revision v8.24
class.ilMediaObjectsExporter.php
Go to the documentation of this file.
1<?php
2
25{
27
28 public function init(): void
29 {
30 $this->ds = new ilMediaObjectDataSet();
31 $this->ds->setDSPrefix("ds");
32 }
33
35 string $a_entity,
36 string $a_target_release,
37 array $a_ids
38 ): array {
39 $md_ids = array();
40 foreach ($a_ids as $mob_id) {
41 $md_ids[] = "0:" . $mob_id . ":mob";
42 }
43
44 return array(
45 array(
46 "component" => "Services/MetaData",
47 "entity" => "md",
48 "ids" => $md_ids)
49 );
50 }
51
52 public function getXmlRepresentation(
53 string $a_entity,
54 string $a_schema_version,
55 string $a_id
56 ): string {
57 ilFileUtils::makeDirParents($this->getAbsoluteExportDirectory());
58 $this->ds->setExportDirectories($this->dir_relative, $this->dir_absolute);
59 return $this->ds->getXmlRepresentation($a_entity, $a_schema_version, [$a_id], "", true, true);
60 }
61
65 public function getValidSchemaVersions(
66 string $a_entity
67 ): array {
68 return array(
69 "5.1.0" => array(
70 "namespace" => "https://www.ilias.de/Services/MediaObjects/mob/5_1",
71 "xsd_file" => "ilias_mob_5_1.xsd",
72 "uses_dataset" => true,
73 "min" => "5.1.0",
74 "max" => ""),
75 "4.3.0" => array(
76 "namespace" => "https://www.ilias.de/Services/MediaObjects/mob/4_3",
77 "xsd_file" => "ilias_mob_4_3.xsd",
78 "uses_dataset" => true,
79 "min" => "4.3.0",
80 "max" => ""),
81 "4.1.0" => array(
82 "namespace" => "https://www.ilias.de/Services/MediaObjects/mob/4_1",
83 "xsd_file" => "ilias_mob_4_1.xsd",
84 "uses_dataset" => true,
85 "min" => "4.1.0",
86 "max" => "")
87 );
88 }
89}
return true
Class ilFileUtils.
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...
getXmlExportTailDependencies(string $a_entity, string $a_target_release, array $a_ids)
Get tail dependencies.
getXmlRepresentation(string $a_entity, string $a_schema_version, string $a_id)
This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Le...
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', 'wav', 'webm', 'wmv', 'wmx', 'wmz', 'woff', 'wwd', 'xhtml', 'xif', 'xls', 'xlsx', 'xmind', 'xml', 'xsl', 'xsd', 'zip']