ILIAS  trunk Revision v11.0_alpha-3011-gc6b235a2e85
ilPortfolioExporter Class Reference

This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Learning e.V. More...

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

Public Member Functions

 init ()
 
 getXmlExportTailDependencies (string $a_entity, string $a_target_release, array $a_ids)
 Get tail dependencies. More...
 
 getXmlRepresentation (string $a_entity, string $a_schema_version, string $a_id)
 
 getValidSchemaVersions (string $a_entity)
 Returns schema versions that the component can export to. More...
 
- Public Member Functions inherited from ilXmlExporter
 __construct ()
 
 setExport (ilExport $a_exp)
 
 getExport ()
 
 getXmlRepresentation (string $a_entity, string $a_schema_version, string $a_id)
 
 init ()
 
 setExportDirectories (string $a_dir_relative, string $a_dir_absolute)
 
 getRelativeExportDirectory ()
 
 getAbsoluteExportDirectory ()
 
 getXmlExportHeadDependencies (string $a_entity, string $a_target_release, array $a_ids)
 Get head dependencies. More...
 
 getXmlExportTailDependencies (string $a_entity, string $a_target_release, array $a_ids)
 Get tail dependencies. More...
 
 getValidSchemaVersions (string $a_entity)
 Returns schema versions that the component can export to. More...
 
 determineSchemaVersion (string $a_entity, string $a_target_release)
 

Protected Attributes

ilPortfolioDataSet $ds
 
- Protected Attributes inherited from ilXmlExporter
ilExport $exp
 

Additional Inherited Members

- Static Public Member Functions inherited from ilXmlExporter
static lookupExportDirectory (string $a_obj_type, int $a_obj_id, string $a_export_type='xml', string $a_entity="")
 

Detailed Description

This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Learning e.V.

ILIAS is licensed with the GPL-3.0, see https://www.gnu.org/licenses/gpl-3.0.en.html You should have received a copy of said license along with the source code, too.

If this is not the case or you just want to try ILIAS, you'll find us at: https://www.ilias.de https://github.com/ILIAS-eLearning 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 24 of file class.ilPortfolioExporter.php.

Member Function Documentation

◆ getValidSchemaVersions()

ilPortfolioExporter::getValidSchemaVersions ( string  $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" => "") );

Reimplemented from ilXmlExporter.

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

83 : array {
84 return array(
85 "10.0" => array(
86 "namespace" => "https://www.ilias.de/Modules/Portfolio/10",
87 "xsd_file" => "ilias_portfolio_10.xsd",
88 "uses_dataset" => true,
89 "min" => "10.0",
90 "max" => ""),
91 "4.4.0" => array(
92 "namespace" => "https://www.ilias.de/Modules/Portfolio/4_4",
93 "xsd_file" => "ilias_portfolio_4_4.xsd",
94 "uses_dataset" => true,
95 "min" => "4.4.0",
96 "max" => "4.9.9"),
97 "5.0.0" => array(
98 "namespace" => "https://www.ilias.de/Modules/Portfolio/5_0",
99 "xsd_file" => "ilias_portfolio_5_0.xsd",
100 "uses_dataset" => true,
101 "min" => "5.0.0",
102 "max" => "9.99")
103 );
104 }

◆ getXmlExportTailDependencies()

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

Get tail dependencies.

Returns
array array of array with keys "component", entity", "ids"

Reimplemented from ilXmlExporter.

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

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" => "components/ILIAS/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" => "components/ILIAS/Style",
58 "entity" => "object_style",
59 "ids" => $obj_ids
60 );
61
62 // common object properties
63 $deps[] = array(
64 "component" => "components/ILIAS/ILIASObject",
65 "entity" => "common",
66 "ids" => $a_ids
67 );
68
69 return $deps;
70 }
$id
plugin.php for ilComponentBuildPluginInfoObjectiveTest::testAddPlugins
Definition: plugin.php:23
static getAllPortfolioPages(int $a_portfolio_id)
Get pages of portfolio.

References $id, and ilPortfolioPage\getAllPortfolioPages().

+ Here is the call graph for this function:

◆ getXmlRepresentation()

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

Reimplemented from ilXmlExporter.

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

76 : string {
77 $this->ds->initByExporter($this);
78 return $this->ds->getXmlRepresentation($a_entity, $a_schema_version, [$a_id], "", true, true);
79 }

◆ init()

ilPortfolioExporter::init ( )

Reimplemented from ilXmlExporter.

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

28 : void
29 {
30 $this->ds = new ilPortfolioDataSet();
31 $this->ds->setDSPrefix("ds");
32 }
This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Le...

Field Documentation

◆ $ds

ilPortfolioDataSet ilPortfolioExporter::$ds
protected

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


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