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 29 of file class.ilGroupImporter.php.
◆ __construct()
ilGroupImporter::__construct |
( |
| ) |
|
◆ importXmlRepresentation()
ilGroupImporter::importXmlRepresentation |
( |
string |
$a_entity, |
|
|
string |
$a_id, |
|
|
string |
$a_xml, |
|
|
ilImportMapping |
$a_mapping |
|
) |
| |
Definition at line 44 of file class.ilGroupImporter.php.
References Vendor\Package\$e, $GLOBALS, $ref_id, ilGroupXMLParser\$UPDATE, ilObject\_getAllReferences(), ilImportMapping\addMapping(), ilObjectFactory\getInstanceByRefId(), and ilImportMapping\getMapping().
50 if ($new_id = $a_mapping->
getMapping(
'components/ILIAS/Container',
'objs', $a_id)) {
54 } elseif ($new_id = $a_mapping->
getMapping(
'components/ILIAS/Container',
'refs',
"0")) {
56 } elseif (!$this->group instanceof
ilObjGroup) {
57 $this->group =
new ilObjGroup();
58 $this->group->create();
65 $this->group->deleteMetaData();
67 $parser->startParsing();
68 $a_mapping->
addMapping(
'components/ILIAS/Group',
'grp', $a_id, (
string) $this->group->getId());
70 'components/ILIAS/MetaData',
73 $this->group->getId() .
':0:grp' 77 $GLOBALS[
'DIC']->logger()->grp()->warning(
'Parsing failed with message, "' . $e->getMessage() .
'".');
static _getAllReferences(int $id)
get all reference ids for object ID
This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Le...
addMapping(string $a_comp, string $a_entity, string $a_old_id, string $a_new_id)
getMapping(string $a_comp, string $a_entity, string $a_old_id)
static getInstanceByRefId(int $ref_id, bool $stop_on_error=true)
get an instance of an Ilias object by reference id
◆ init()
ilGroupImporter::init |
( |
| ) |
|
◆ $group
The documentation for this class was generated from the following file: