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.ilFolderImporter.php.
◆ importXmlRepresentation()
ilFolderImporter::importXmlRepresentation |
( |
|
$a_entity, |
|
|
|
$a_id, |
|
|
|
$a_xml, |
|
|
|
$a_mapping |
|
) |
| |
Import XML.
- Parameters
-
Definition at line 30 of file class.ilFolderImporter.php.
References $GLOBALS, $parser, ilObjectFactory\getInstanceByObjId(), and ilObjectFactory\getInstanceByRefId().
32 include_once
'./Modules/Folder/classes/class.ilObjFolder.php';
33 if ($new_id = $a_mapping->getMapping(
'Services/Container',
'objs', $a_id)) {
35 } elseif ($new_id = $a_mapping->getMapping(
'Services/Container',
'refs', 0)) {
38 $this->folder =
new ilObjFolder();
39 $this->folder->create(
true);
42 include_once
'./Modules/Folder/classes/class.ilFolderXmlParser.php';
47 $a_mapping->addMapping(
'Modules/Folder',
'fold', $a_id, $this->folder->getId());
49 $GLOBALS[
'ilLog']->write(__METHOD__ .
': Parsing failed with message, "' . $e->getMessage() .
'".');
50 }
catch (ilWebLinkXMLParserException $e) {
51 $GLOBALS[
'ilLog']->write(__METHOD__ .
': Parsing failed with message, "' . $e->getMessage() .
'".');
SaxParserException thrown by ilSaxParser if property throwException is set.
static getInstanceByObjId($a_obj_id, $stop_on_error=true)
get an instance of an Ilias object by object id
XML parser for folder xml.
static getInstanceByRefId($a_ref_id, $stop_on_error=true)
get an instance of an Ilias object by reference id
$GLOBALS['JPEG_Segment_Names']
Global Variable: XMP_tag_captions.
◆ init()
ilFolderImporter::init |
( |
| ) |
|
◆ $folder
ilFolderImporter::$folder = null |
|
private |
The documentation for this class was generated from the following file: