ILIAS  release_5-2 Revision v5.2.25-18-g3f80b828510
ilPortfolioImporter Class Reference

Importer class for portfolio. More...

+ Inheritance diagram for ilPortfolioImporter:
+ Collaboration diagram for ilPortfolioImporter:

Public Member Functions

 init ()
 Initialisation. More...
 
 importXmlRepresentation ($a_entity, $a_id, $a_xml, $a_mapping)
 Import XML. More...
 
 finalProcessing ($a_mapping)
 Final processing. More...
 
- Public Member Functions inherited from ilXmlImporter
 __construct ()
 Constructor. More...
 
 setImport ($a_val)
 Set import. More...
 
 getImport ()
 Get import. More...
 
 init ()
 Init. More...
 
 setInstallId ($a_val)
 Set installation id. More...
 
 getInstallId ()
 Get installation id. More...
 
 setInstallUrl ($a_val)
 Set installation url. More...
 
 getInstallUrl ()
 Get installation url. More...
 
 setSchemaVersion ($a_val)
 Set schema version. More...
 
 getSchemaVersion ()
 Get schema version. More...
 
 setImportDirectory ($a_val)
 Set import directory. More...
 
 getImportDirectory ()
 Get import directory. More...
 
 setSkipEntities ($a_val)
 Set skip entities. More...
 
 getSkipEntities ()
 Get skip entities. More...
 
 exportedFromSameInstallation ()
 Is exporting and importing installation identical? More...
 
 importXmlRepresentation ($a_entity, $a_id, $a_xml, $a_mapping)
 Import xml representation. More...
 
 finalProcessing ($a_mapping)
 Final processing. More...
 
 afterContainerImportProcessing (ilImportMapping $mapping)
 Called after all container objects have been implemented. More...
 

Protected Attributes

 $ds
 
- Protected Attributes inherited from ilXmlImporter
 $skip_entities = array()
 
 $imp
 

Detailed Description

Importer class for portfolio.

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.ilPortfolioImporter.php.

Member Function Documentation

◆ finalProcessing()

ilPortfolioImporter::finalProcessing (   $a_mapping)

Final processing.

Parameters
arraymapping array

Definition at line 48 of file class.ilPortfolioImporter.php.

References ilPageObject\_writeParentId(), and ilPortfolioPage\findPortfolioForPage().

49  {
50  $prttpg_map = $a_mapping->getMappingsOfEntity("Services/COPage", "pg");
51  foreach ($prttpg_map as $prttpg_id)
52  {
53  $prttpg_id = substr($prttpg_id, 5);
54  $prtt_id = ilPortfolioTemplatePage::findPortfolioForPage($prttpg_id);
55  ilPortfolioTemplatePage::_writeParentId("prtt", $prttpg_id, $prtt_id);
56  }
57  }
static findPortfolioForPage($a_page_id)
Get portfolio id of page id.
static _writeParentId($a_parent_type, $a_pg_id, $a_par_id)
Write parent id.
+ Here is the call graph for this function:

◆ importXmlRepresentation()

ilPortfolioImporter::importXmlRepresentation (   $a_entity,
  $a_id,
  $a_xml,
  $a_mapping 
)

Import XML.

Parameters

Definition at line 35 of file class.ilPortfolioImporter.php.

References $parser, ilXmlImporter\getImportDirectory(), and ilXmlImporter\getSchemaVersion().

36  {
37  $this->ds->setImportDirectory($this->getImportDirectory());
38  include_once("./Services/DataSet/classes/class.ilDataSetImportParser.php");
39  $parser = new ilDataSetImportParser($a_entity, $this->getSchemaVersion(),
40  $a_xml, $this->ds, $a_mapping);
41  }
getSchemaVersion()
Get schema version.
getImportDirectory()
Get import directory.
Manifest parser for ILIAS standard export files.
$parser
Definition: BPMN2Parser.php:24
+ Here is the call graph for this function:

◆ init()

ilPortfolioImporter::init ( )

Initialisation.

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

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

Field Documentation

◆ $ds

ilPortfolioImporter::$ds
protected

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


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