ILIAS  Release_5_0_x_branch Revision 61816
 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 ilBlogDataSet\$style_map, ilPageObject\_writeParentId(), ilBlogPosting\lookupBlogId(), and ilObjStyleSheet\writeStyleUsage().

{
include_once("./Modules/Blog/classes/class.ilBlogPosting.php");
$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);
ilBlogPosting::_writeParentId("blp", $blp_id, $blog_id);
}
include_once("./Services/Style/classes/class.ilObjStyleSheet.php");
$sty_map = $a_mapping->getMappingsOfEntity("Services/Style", "sty");
foreach ($sty_map as $old_sty_id => $new_sty_id)
{
if(is_array(ilBlogDataSet::$style_map[$old_sty_id]))
{
foreach(ilBlogDataSet::$style_map[$old_sty_id] as $blog_id)
{
ilObjStyleSheet::writeStyleUsage($blog_id, $new_sty_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: