ILIAS  Release_5_0_x_branch Revision 61816
 All Data Structures Namespaces Files Functions Variables Groups Pages
ilWebResourceImporter Class Reference

Webresource xml importer. More...

+ Inheritance diagram for ilWebResourceImporter:
+ Collaboration diagram for ilWebResourceImporter:

Public Member Functions

 init ()
 Init.
 importXmlRepresentation ($a_entity, $a_id, $a_xml, $a_mapping)
 Import XML.
- 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.
 finalProcessing ($a_mapping)
 Final processing.

Private Attributes

 $webl = null

Additional Inherited Members

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

Detailed Description

Webresource xml importer.

Author
Stefan Meyer meyer.nosp@m.@lei.nosp@m.fos.c.nosp@m.om
Version
$Id$

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

Member Function Documentation

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

Import XML.

Parameters
@return

Reimplemented from ilXmlImporter.

Definition at line 30 of file class.ilWebResourceImporter.php.

References $GLOBALS, ilObjectFactory\getInstanceByObjId(), and ilWebLinkXmlParser\MODE_CREATE.

{
include_once './Modules/Folder/classes/class.ilObjFolder.php';
if($new_id = $a_mapping->getMapping('Services/Container','objs',$a_id))
{
$this->link = ilObjectFactory::getInstanceByObjId($new_id,false);
}
else
{
include_once './Modules/WebResource/classes/class.ilObjLinkResource.php';
$this->link = new ilObjLinkResource();
$this->link->setType('webr');
$this->link->create(true);
}
try
{
include_once './Modules/WebResource/classes/class.ilWebLinkXmlParser.php';
$parser = new ilWebLinkXmlParser($this->link,$a_xml);
$parser->start();
$a_mapping->addMapping('Modules/WebResource','webr',$a_id,$this->link->getId());
}
{
$GLOBALS['ilLog']->write(__METHOD__.': Parsing failed with message, "'.$e->getMessage().'".');
}
catch(ilWebLinkXMLParserException $e)
{
$GLOBALS['ilLog']->write(__METHOD__.': Parsing failed with message, "'.$e->getMessage().'".');
}
}

+ Here is the call graph for this function:

ilWebResourceImporter::init ( )

Init.

Reimplemented from ilXmlImporter.

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

{
}

Field Documentation

ilWebResourceImporter::$webl = null
private

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


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