folder xml importer
More...
folder 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.ilCategoryImporter.php.
◆ importXmlRepresentation()
ilCategoryImporter::importXmlRepresentation |
( |
|
$a_entity, |
|
|
|
$a_id, |
|
|
|
$a_xml, |
|
|
|
$a_mapping |
|
) |
| |
Import XML.
- Parameters
-
Definition at line 30 of file class.ilCategoryImporter.php.
References $GLOBALS, ilObject\_getAllReferences(), ilObjectFactory\getInstanceByRefId(), and ilCategoryXmlParser\MODE_UPDATE.
32 include_once
'./Modules/Category/classes/class.ilObjCategory.php';
33 if($new_id = $a_mapping->getMapping(
'Services/Container',
'objs',$a_id))
39 elseif($new_id = $a_mapping->getMapping(
'Services/Container',
'refs',0))
45 $this->category =
new ilObjCategory();
46 $this->category->create(
true);
49 include_once
'./Modules/Category/classes/class.ilCategoryXmlParser.php';
54 $parser->setCategory($this->category);
56 $parser->startParsing();
57 $a_mapping->addMapping(
'Modules/Category',
'cat',$a_id,$this->category->getId());
61 $GLOBALS[
'ilLog']->write(__METHOD__.
': Parsing failed with message, "'.$e->getMessage().
'".');
65 $GLOBALS[
'ilLog']->write(__METHOD__.
': Parsing failed with message, "'.$e->getMessage().
'".');
getInstanceByRefId($a_ref_id, $stop_on_error=true)
get an instance of an Ilias object by reference id
SaxParserException thrown by ilSaxParser if property throwException is set.
static _getAllReferences($a_id)
get all reference ids of object
◆ init()
ilCategoryImporter::init |
( |
| ) |
|
◆ $category
ilCategoryImporter::$category = null |
|
private |
The documentation for this class was generated from the following file: