3 declare(strict_types=1);
35 $this->add_header = $a_add_header;
41 $this->obj_id = $a_obj_id;
50 if ($this->add_header) {
53 $this->weblink->toXML($this);
68 protected function init(): void
80 'Invalid obj_id given: ' . $this->obj_id
83 if ($this->weblink->getType() !=
'webr') {
85 'Invalid obj_id given. Object is not of type webr'
__construct(bool $a_add_header)
This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Le...
xmlSetGenCmt(string $genCmt)
Sets generated comment.
ilObjLinkResource $weblink
xmlHeader()
Writes xml header.
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...