3declare(strict_types=1);
37 $this->
logger = $DIC->logger()->webr();
49 if ($new_id = $a_mapping->getMapping(
57 'Invalid id given ' . $a_id
62 $this->link->setType(
'webr');
63 $this->link->create(
true);
70 $a_mapping->addMapping(
71 'Modules/WebResource',
74 (
string) $this->link->getId()
78 ': Parsing failed with message, "' . $e->getMessage() .
'".'
80 }
catch (ilWebLinkXMLParserException
$e) {
82 ': Parsing failed with message, "' . $e->getMessage() .
'".'
This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Le...
Component logger with individual log levels by component id.
static getInstanceByObjId(?int $obj_id, bool $stop_on_error=true)
get an instance of an Ilias object by object id
This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Le...
SaxParserException thrown by ilSaxParser if property throwException is set.
XML parser for weblink xml.
This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Le...
importXmlRepresentation(string $a_entity, string $a_id, string $a_xml, ilImportMapping $a_mapping)
@inheritDoc
This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Le...
if(!file_exists(getcwd() . '/ilias.ini.php'))
This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Le...
__construct(Container $dic, ilPlugin $plugin)
@inheritDoc