ILIAS  Release_4_1_x_branch Revision 61804
 All Data Structures Namespaces Files Functions Variables Groups Pages
ilWikiImporter Class Reference

Importer class for wikis. More...

+ Inheritance diagram for ilWikiImporter:
+ Collaboration diagram for ilWikiImporter:

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.

Detailed Description

Importer class for wikis.

Author
Alex Killing alex..nosp@m.kill.nosp@m.ing@g.nosp@m.mx.d.nosp@m.e
Version
Id:

Definition at line 13 of file class.ilWikiImporter.php.

Member Function Documentation

ilWikiImporter::finalProcessing (   $a_mapping)

Final processing.

Parameters
arraymapping array

Reimplemented from ilXmlImporter.

Definition at line 45 of file class.ilWikiImporter.php.

References ilPageObject\_writeParentId(), and ilWikiPage\lookupWikiId().

{
$wpg_map = $a_mapping->getMappingsOfEntity("Modules/Wiki", "wpg");
include_once("./Modules/Wiki/classes/class.ilWikiPage.php");
include_once("./Services/COPage/classes/class.ilPageObject.php");
foreach ($wpg_map as $wpg_id)
{
$wiki_id = ilWikiPage::lookupWikiId($wpg_id);
ilPageObject::_writeParentId("wpg", $wpg_id, $wiki_id);
}
}

+ Here is the call graph for this function:

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

Import XML.

Parameters
@return

Reimplemented from ilXmlImporter.

Definition at line 33 of file class.ilWikiImporter.php.

References ilXmlImporter\getSchemaVersion().

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

ilWikiImporter::init ( )

Initialisation.

Reimplemented from ilXmlImporter.

Definition at line 19 of file class.ilWikiImporter.php.

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

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