ILIAS  release_5-4 Revision v5.4.26-12-gabc799a52e6
ilPortfolioExporter Class Reference

Portfolio definition. More...

+ Inheritance diagram for ilPortfolioExporter:
+ Collaboration diagram for ilPortfolioExporter:

Public Member Functions

 init ()
 
 getXmlExportTailDependencies ($a_entity, $a_target_release, $a_ids)
 
 getXmlRepresentation ($a_entity, $a_schema_version, $a_id)
 
 getValidSchemaVersions ($a_entity)
 
- Public Member Functions inherited from ilXmlExporter
 __construct ()
 Constructor. More...
 
 setExport (ilExport $a_exp)
 Set export object. More...
 
 getExport ()
 Get export. More...
 
 getXmlRepresentation ($a_entity, $a_schema_version, $a_id)
 Get xml representation. More...
 
 init ()
 
 setExportDirectories ($a_dir_relative, $a_dir_absolute)
 Export directories. More...
 
 getRelativeExportDirectory ()
 Get relative export directory. More...
 
 getAbsoluteExportDirectory ()
 Get absolute export directory. More...
 
 getXmlExportHeadDependencies ($a_entity, $a_target_release, $a_ids)
 Get head dependencies. More...
 
 getXmlExportTailDependencies ($a_entity, $a_target_release, $a_ids)
 Get tail dependencies. More...
 
 getValidSchemaVersions ($a_entity)
 Returns schema versions that the component can export to. More...
 
 determineSchemaVersion ($a_entity, $a_target_release)
 Determine schema version. More...
 

Protected Attributes

 $ds
 
- Protected Attributes inherited from ilXmlExporter
 $dir_relative
 
 $dir_absolute
 
 $exp
 

Additional Inherited Members

- Static Public Member Functions inherited from ilXmlExporter
static lookupExportDirectory ($a_obj_type, $a_obj_id, $a_export_type='xml', $a_entity="")
 export directory lookup More...
 

Detailed Description

Portfolio definition.

Only for portfolio templates!

Author
Jörg Lützenkirchen luetz.nosp@m.enki.nosp@m.rchen.nosp@m.@lei.nosp@m.fos.c.nosp@m.om
Version
$Id$

Definition at line 15 of file class.ilPortfolioExporter.php.

Member Function Documentation

◆ getValidSchemaVersions()

ilPortfolioExporter::getValidSchemaVersions (   $a_entity)

Definition at line 61 of file class.ilPortfolioExporter.php.

62  {
63  return array(
64  "4.4.0" => array(
65  "namespace" => "http://www.ilias.de/Modules/Portfolio/4_4",
66  "xsd_file" => "ilias_portfolio_4_4.xsd",
67  "uses_dataset" => true,
68  "min" => "4.4.0",
69  "max" => "4.9.9"),
70  "5.0.0" => array(
71  "namespace" => "http://www.ilias.de/Modules/Portfolio/5_0",
72  "xsd_file" => "ilias_portfolio_5_0.xsd",
73  "uses_dataset" => true,
74  "min" => "5.0.0",
75  "max" => "")
76  );
77  }

◆ getXmlExportTailDependencies()

ilPortfolioExporter::getXmlExportTailDependencies (   $a_entity,
  $a_target_release,
  $a_ids 
)

Definition at line 26 of file class.ilPortfolioExporter.php.

References $id, and ilPortfolioPage\getAllPortfolioPages().

27  {
28  include_once("./Modules/Portfolio/classes/class.ilPortfolioTemplatePage.php");
29  $pg_ids = array();
30  foreach ($a_ids as $id) {
32  $pg_ids[] = "prtt:" . $p["id"];
33  }
34  }
35 
36  $deps[] =
37  array(
38  "component" => "Services/COPage",
39  "entity" => "pg",
40  "ids" => $pg_ids);
41 
42  // style
43  $obj_ids = (is_array($a_ids))
44  ? $a_ids
45  : array($a_ids);
46  $deps[] = array(
47  "component" => "Services/Style",
48  "entity" => "object_style",
49  "ids" => $obj_ids
50  );
51 
52  return $deps;
53  }
static getAllPortfolioPages($a_portfolio_id)
Get pages of portfolio.
if(!array_key_exists('StateId', $_REQUEST)) $id
+ Here is the call graph for this function:

◆ getXmlRepresentation()

ilPortfolioExporter::getXmlRepresentation (   $a_entity,
  $a_schema_version,
  $a_id 
)

Definition at line 55 of file class.ilPortfolioExporter.php.

56  {
57  $this->ds->setExportDirectories($this->dir_relative, $this->dir_absolute);
58  return $this->ds->getXmlRepresentation($a_entity, $a_schema_version, $a_id, "", true, true);
59  }

◆ init()

ilPortfolioExporter::init ( )

Definition at line 19 of file class.ilPortfolioExporter.php.

20  {
21  include_once("./Modules/Portfolio/classes/class.ilPortfolioDataSet.php");
22  $this->ds = new ilPortfolioDataSet();
23  $this->ds->setDSPrefix("ds");
24  }
Portfolio Data set class.

Field Documentation

◆ $ds

ilPortfolioExporter::$ds
protected

Definition at line 17 of file class.ilPortfolioExporter.php.


The documentation for this class was generated from the following file: