ILIAS  Release_4_4_x_branch Revision 61816
 All Data Structures Namespaces Files Functions Variables Groups Pages
ilPortfolioImporter Class Reference

Importer class for portfolio. More...

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

Public Member Functions

 init ()
 Initialisation.
 importXmlRepresentation ($a_entity, $a_id, $a_xml, $a_mapping)
 Import XML.
 finalProcessing ($a_mapping)
 Final processing.
- Public Member Functions inherited from ilXmlImporter
 __construct ()
 Constructor.
 setInstallId ($a_val)
 Set installation id.
 getInstallId ()
 Get installation id.
 setInstallUrl ($a_val)
 Set installation url.
 getInstallUrl ()
 Get installation url.
 setSchemaVersion ($a_val)
 Set schema version.
 getSchemaVersion ()
 Get schema version.
 setImportDirectory ($a_val)
 Set import directory.
 getImportDirectory ()
 Get import directory.
 setSkipEntities ($a_val)
 Set skip entities.
 getSkipEntities ()
 Get skip entities.

Protected Attributes

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

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

ilPortfolioImporter::finalProcessing (   $a_mapping)

Final processing.

Parameters
arraymapping array

Reimplemented from ilXmlImporter.

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

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

{
$prttpg_map = $a_mapping->getMappingsOfEntity("Services/COPage", "pg");
foreach ($prttpg_map as $prttpg_id)
{
$prttpg_id = substr($prttpg_id, 5);
ilPortfolioTemplatePage::_writeParentId("prtt", $prttpg_id, $prtt_id);
}
}

+ Here is the call graph for this function:

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

Import XML.

Parameters
@return

Reimplemented from ilXmlImporter.

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

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

{
$this->ds->setImportDirectory($this->getImportDirectory());
include_once("./Services/DataSet/classes/class.ilDataSetImportParser.php");
$parser = new ilDataSetImportParser($a_entity, $this->getSchemaVersion(),
$a_xml, $this->ds, $a_mapping);
}

+ Here is the call graph for this function:

ilPortfolioImporter::init ( )

Initialisation.

Reimplemented from ilXmlImporter.

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

{
include_once("./Modules/Portfolio/classes/class.ilPortfolioDataSet.php");
$this->ds = new ilPortfolioDataSet();
$this->ds->setDSPrefix("ds");
}

Field Documentation

ilPortfolioImporter::$ds
protected

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


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