ILIAS  release_8 Revision v8.23
ilPortfolioImporter 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 ilPortfolioImporter:
+ Collaboration diagram for ilPortfolioImporter:

Public Member Functions

 init ()
 
 importXmlRepresentation (string $a_entity, string $a_id, string $a_xml, ilImportMapping $a_mapping)
 
 finalProcessing (ilImportMapping $a_mapping)
 
- Public Member Functions inherited from ilXmlImporter
 __construct ()
 
 setImport (ilImport $a_val)
 
 getImport ()
 
 init ()
 
 setInstallId (string $a_val)
 
 getInstallId ()
 
 setInstallUrl (string $a_val)
 
 getInstallUrl ()
 
 setSchemaVersion (string $a_val)
 
 getSchemaVersion ()
 
 setImportDirectory (string $a_val)
 
 getImportDirectory ()
 
 setSkipEntities (array $a_val)
 
 getSkipEntities ()
 
 exportedFromSameInstallation ()
 
 importXmlRepresentation (string $a_entity, string $a_id, string $a_xml, ilImportMapping $a_mapping)
 
 finalProcessing (ilImportMapping $a_mapping)
 
 afterContainerImportProcessing (ilImportMapping $mapping)
 

Protected Attributes

ilPortfolioDataSet $ds
 
- Protected Attributes inherited from ilXmlImporter
array $skip_entities = array()
 
ilImport $imp
 
string $install_id
 
string $install_url
 
string $schema_version
 
string $import_directory
 

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 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

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

Member Function Documentation

◆ finalProcessing()

ilPortfolioImporter::finalProcessing ( ilImportMapping  $a_mapping)

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

References ilPageObject\_writeParentId(), ilPortfolioPage\findPortfolioForPage(), ilImportMapping\getMappingsOfEntity(), and ILIAS\Repository\int().

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

◆ importXmlRepresentation()

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

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

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

39  : void {
40  $this->ds->setImportDirectory($this->getImportDirectory());
41  $parser = new ilDataSetImportParser(
42  $a_entity,
43  $this->getSchemaVersion(),
44  $a_xml,
45  $this->ds,
46  $a_mapping
47  );
48  }
Manifest parser for ILIAS standard export files.
+ Here is the call graph for this function:

◆ init()

ilPortfolioImporter::init ( )

Definition at line 28 of file class.ilPortfolioImporter.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 ilPortfolioImporter::$ds
protected

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


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