ILIAS  release_6 Revision v6.24-5-g0c8bfefb3b8
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)
 Get tail dependencies. More...
 
 getXmlRepresentation ($a_entity, $a_schema_version, $a_id)
 Get xml representation. More...
 
 getValidSchemaVersions ($a_entity)
 Returns schema versions that the component can export to. More...
 
- 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

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

Member Function Documentation

◆ getValidSchemaVersions()

ilPortfolioExporter::getValidSchemaVersions (   $a_entity)

Returns schema versions that the component can export to.

ILIAS chooses the first one, that has min/max constraints which fit to the target release. Please put the newest on top. Example:

            return array (
    "4.1.0" => array(
            "namespace" => "http://www.ilias.de/Services/MetaData/md/4_1",
            "xsd_file" => "ilias_md_4_1.xsd",
            "min" => "4.1.0",
            "max" => "")
    );
Returns
array

Reimplemented from ilXmlExporter.

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

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

◆ getXmlExportTailDependencies()

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

Get tail dependencies.

Parameters
stringentity
stringtarget release
arrayids
Returns
array array of array with keys "component", entity", "ids"

Reimplemented from ilXmlExporter.

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

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 return $deps;
48 }
static getAllPortfolioPages($a_portfolio_id)
Get pages of portfolio.

References ilPortfolioPage\getAllPortfolioPages().

+ Here is the call graph for this function:

◆ getXmlRepresentation()

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

Get xml representation.

Parameters
stringentity
stringschema version
stringid
Returns
string xml string

Reimplemented from ilXmlExporter.

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

51 {
52 $this->ds->setExportDirectories($this->dir_relative, $this->dir_absolute);
53 return $this->ds->getXmlRepresentation($a_entity, $a_schema_version, $a_id, "", true, true);
54 }

◆ init()

ilPortfolioExporter::init ( )

Reimplemented from ilXmlExporter.

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

17 {
18 $this->ds = new ilPortfolioDataSet();
19 $this->ds->setDSPrefix("ds");
20 }
Portfolio Data set class.

Field Documentation

◆ $ds

ilPortfolioExporter::$ds
protected

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


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