ILIAS  release_7 Revision v7.30-3-g800a261c036
All Data Structures Namespaces Files Functions Variables Modules Pages
class.ilPortfolioExporter.php
Go to the documentation of this file.
1 <?php
2 
3 /* Copyright (c) 1998-2019 ILIAS open source, Extended GPL, see docs/LICENSE */
4 
13 {
14  protected $ds;
15 
16  public function init()
17  {
18  $this->ds = new ilPortfolioDataSet();
19  $this->ds->setDSPrefix("ds");
20  }
21 
22  public function getXmlExportTailDependencies($a_entity, $a_target_release, $a_ids)
23  {
24  $pg_ids = array();
25  foreach ($a_ids as $id) {
27  $pg_ids[] = "prtt:" . $p["id"];
28  }
29  }
30 
31  $deps[] =
32  array(
33  "component" => "Services/COPage",
34  "entity" => "pg",
35  "ids" => $pg_ids);
36 
37  // style
38  $obj_ids = (is_array($a_ids))
39  ? $a_ids
40  : array($a_ids);
41  $deps[] = array(
42  "component" => "Services/Style",
43  "entity" => "object_style",
44  "ids" => $obj_ids
45  );
46 
47  // common object properties
48  $deps[] = array(
49  "component" => "Services/Object",
50  "entity" => "common",
51  "ids" => $a_ids
52  );
53 
54  return $deps;
55  }
56 
57  public function getXmlRepresentation($a_entity, $a_schema_version, $a_id)
58  {
59  $this->ds->setExportDirectories($this->dir_relative, $this->dir_absolute);
60  return $this->ds->getXmlRepresentation($a_entity, $a_schema_version, $a_id, "", true, true);
61  }
62 
63  public function getValidSchemaVersions($a_entity)
64  {
65  return array(
66  "4.4.0" => array(
67  "namespace" => "http://www.ilias.de/Modules/Portfolio/4_4",
68  "xsd_file" => "ilias_portfolio_4_4.xsd",
69  "uses_dataset" => true,
70  "min" => "4.4.0",
71  "max" => "4.9.9"),
72  "5.0.0" => array(
73  "namespace" => "http://www.ilias.de/Modules/Portfolio/5_0",
74  "xsd_file" => "ilias_portfolio_5_0.xsd",
75  "uses_dataset" => true,
76  "min" => "5.0.0",
77  "max" => "")
78  );
79  }
80 }
static getAllPortfolioPages($a_portfolio_id)
Get pages of portfolio.
Portfolio definition.
getXmlRepresentation($a_entity, $a_schema_version, $a_id)
Portfolio Data set class.
Xml Exporter class.
getXmlExportTailDependencies($a_entity, $a_target_release, $a_ids)