◆ __construct()
ilWebResourceImporter::__construct |
( |
| ) |
|
◆ importXmlRepresentation()
ilWebResourceImporter::importXmlRepresentation |
( |
string |
$a_entity, |
|
|
string |
$a_id, |
|
|
string |
$a_xml, |
|
|
ilImportMapping |
$a_mapping |
|
) |
| |
Definition at line 41 of file class.ilWebResourceImporter.php.
References Vendor\Package\$e, ilImportMapping\addMapping(), ilObjectFactory\getInstanceByObjId(), ilImportMapping\getMapping(), ILIAS\Repository\link(), ILIAS\Repository\logger(), and ilWebLinkXmlParser\MODE_CREATE.
48 'components/ILIAS/Container',
55 'Invalid id given ' . $a_id
60 $this->
link->setType(
'webr');
61 $this->
link->create();
69 'components/ILIAS/WebResource',
72 (
string) $this->
link->getId()
76 'components/ILIAS/MetaData',
79 $this->
link->getId() .
':0:webr' 83 ': Parsing failed with message, "' . $e->getMessage() .
'".' 85 }
catch (ilWebLinkXMLParserException $e) {
87 ': Parsing failed with message, "' . $e->getMessage() .
'".'
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 getInstanceByObjId(?int $obj_id, bool $stop_on_error=true)
get an instance of an Ilias object by object id
link(string $caption, string $href, bool $new_viewport=false)
◆ $link
◆ $logger
The documentation for this class was generated from the following file: