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.ilGroupImporter.php.
◆ importXmlRepresentation()
ilGroupImporter::importXmlRepresentation |
( |
|
$a_entity, |
|
|
|
$a_id, |
|
|
|
$a_xml, |
|
|
|
$a_mapping |
|
) |
| |
Import XML.
- Parameters
-
Definition at line 30 of file class.ilGroupImporter.php.
References $GLOBALS, $parser, ilGroupXMLParser\$UPDATE, ilObject\_getAllReferences(), and ilObjectFactory\getInstanceByRefId().
32 include_once
'./Modules/Group/classes/class.ilObjGroup.php';
33 if ($new_id = $a_mapping->getMapping(
'Services/Container',
'objs', $a_id)) {
36 #$this->group = ilObjectFactory::getInstanceByObjId($new_id,false); 39 elseif ($new_id = $a_mapping->getMapping(
'Services/Container',
'refs', 0)) {
41 } elseif (!$this->group instanceof
ilObjGroup) {
42 $this->group =
new ilObjGroup();
43 $this->group->create(
true);
46 include_once
'./Modules/Group/classes/class.ilGroupXMLParser.php';
47 #$GLOBALS['ilLog']->write($a_xml); 51 $parser->setGroup($this->group);
54 $a_mapping->addMapping(
'Modules/Group',
'grp', $a_id, $this->group->getId());
56 $GLOBALS[
'DIC']->logger()->grp()->warning(
'Parsing failed with message, "' . $e->getMessage() .
'".');
57 }
catch (ilWebLinkXMLParserException $e) {
58 $GLOBALS[
'DIC']->logger()->grp()->warning(
'Parsing failed with message, "' . $e->getMessage() .
'".');
$GLOBALS['loaded']
Global hash that tracks already loaded includes.
SaxParserException thrown by ilSaxParser if property throwException is set.
static _getAllReferences($a_id)
get all reference ids of object
static getInstanceByRefId($a_ref_id, $stop_on_error=true)
get an instance of an Ilias object by reference id
◆ init()
ilGroupImporter::init |
( |
| ) |
|
◆ $group
ilGroupImporter::$group = null |
|
private |
The documentation for this class was generated from the following file: