ILIAS  release_8 Revision v8.19
All Data Structures Namespaces Files Functions Variables Modules Pages
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 }
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...
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)
This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Le...
getXmlRepresentation(string $a_entity, string $a_schema_version, string $a_id)
$id
plugin.php for ilComponentBuildPluginInfoObjectiveTest::testAddPlugins
Definition: plugin.php:23
getValidSchemaVersions(string $a_entity)