4 include_once(
"./Services/Export/classes/class.ilXmlImporter.php");
32 include_once
'./Modules/Group/classes/class.ilObjGroup.php';
33 if($new_id = $a_mapping->getMapping(
'Services/Container',
'objs',$a_id))
37 #$this->group = ilObjectFactory::getInstanceByObjId($new_id,false); 40 elseif($new_id = $a_mapping->getMapping(
'Services/Container',
'refs',0))
46 $this->group =
new ilObjGroup();
47 $this->group->create(
true);
50 include_once
'./Modules/Group/classes/class.ilGroupXMLParser.php';
51 #$GLOBALS['ilLog']->write($a_xml); 56 $parser->setGroup($this->group);
59 $a_mapping->addMapping(
'Modules/Group',
'grp',$a_id,$this->group->getId());
63 $GLOBALS[
'ilLog']->write(__METHOD__.
': Parsing failed with message, "'.$e->getMessage().
'".');
65 catch(ilWebLinkXMLParserException $e)
67 $GLOBALS[
'ilLog']->write(__METHOD__.
': 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
importXmlRepresentation($a_entity, $a_id, $a_xml, $a_mapping)
Import XML.