ILIAS  release_8 Revision v8.24
class.ilPortfolioExporter.php
Go to the documentation of this file.
1<?php
2
25{
27
28 public function init(): void
29 {
30 $this->ds = new ilPortfolioDataSet();
31 $this->ds->setDSPrefix("ds");
32 }
33
35 string $a_entity,
36 string $a_target_release,
37 array $a_ids
38 ): array {
39 $pg_ids = array();
40 foreach ($a_ids as $id) {
42 $pg_ids[] = "prtt:" . $p["id"];
43 }
44 }
45
46 $deps[] =
47 array(
48 "component" => "Services/COPage",
49 "entity" => "pg",
50 "ids" => $pg_ids);
51
52 // style
53 $obj_ids = (is_array($a_ids))
54 ? $a_ids
55 : array($a_ids);
56 $deps[] = array(
57 "component" => "Services/Style",
58 "entity" => "object_style",
59 "ids" => $obj_ids
60 );
61
62 // common object properties
63 $deps[] = array(
64 "component" => "Services/Object",
65 "entity" => "common",
66 "ids" => $a_ids
67 );
68
69 return $deps;
70 }
71
72 public function getXmlRepresentation(
73 string $a_entity,
74 string $a_schema_version,
75 string $a_id
76 ): string {
77 $this->ds->setExportDirectories($this->dir_relative, $this->dir_absolute);
78 return $this->ds->getXmlRepresentation($a_entity, $a_schema_version, [$a_id], "", true, true);
79 }
80
81 public function getValidSchemaVersions(
82 string $a_entity
83 ): array {
84 return array(
85 "4.4.0" => array(
86 "namespace" => "https://www.ilias.de/Modules/Portfolio/4_4",
87 "xsd_file" => "ilias_portfolio_4_4.xsd",
88 "uses_dataset" => true,
89 "min" => "4.4.0",
90 "max" => "4.9.9"),
91 "5.0.0" => array(
92 "namespace" => "https://www.ilias.de/Modules/Portfolio/5_0",
93 "xsd_file" => "ilias_portfolio_5_0.xsd",
94 "uses_dataset" => true,
95 "min" => "5.0.0",
96 "max" => "")
97 );
98 }
99}
$id
plugin.php for ilComponentBuildPluginInfoObjectiveTest::testAddPlugins
Definition: plugin.php:23
return true
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.
getValidSchemaVersions(string $a_entity)
Returns schema versions that the component can export to.
getXmlRepresentation(string $a_entity, string $a_schema_version, string $a_id)
static getAllPortfolioPages(int $a_portfolio_id)
Get pages of portfolio.
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']