ILIAS  release_4-3 Revision
 All Data Structures Namespaces Files Functions Variables Groups Pages
ilBlogImporter Class Reference

Importer class for blog. More...

+ Inheritance diagram for ilBlogImporter:
+ Collaboration diagram for ilBlogImporter:

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

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 13 of file class.ilBlogImporter.php.

Member Function Documentation

ilBlogImporter::finalProcessing (   $a_mapping)

Final processing.

Parameters
arraymapping array

Reimplemented from ilXmlImporter.

Definition at line 46 of file class.ilBlogImporter.php.

References ilPageObject\_writeParentId(), and ilBlogPosting\lookupBlogId().

{
$blp_map = $a_mapping->getMappingsOfEntity("Services/COPage", "pg");
foreach ($blp_map as $blp_id)
{
$blp_id = substr($blp_id, 4);
$blog_id = ilBlogPosting::lookupBlogId($blp_id);
ilPageObject::_writeParentId("blp", $blp_id, $blog_id);
}
}

+ Here is the call graph for this function:

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

Import XML.

Parameters
@return

Reimplemented from ilXmlImporter.

Definition at line 33 of file class.ilBlogImporter.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:

ilBlogImporter::init ( )

Initialisation.

Reimplemented from ilXmlImporter.

Definition at line 20 of file class.ilBlogImporter.php.

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

Field Documentation

ilBlogImporter::$ds
protected

Definition at line 15 of file class.ilBlogImporter.php.


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