19 declare(strict_types=1);
33 $this->add_header = $a_add_header;
39 $this->obj_id = $a_obj_id;
48 if ($this->add_header) {
51 $this->weblink->toXML($this);
66 protected function init(): void
78 'Invalid obj_id given: ' . $this->obj_id
81 if ($this->weblink->getType() !=
'webr') {
83 'Invalid obj_id given. Object is not of type webr'
__construct(bool $a_add_header)
xmlSetGenCmt(string $genCmt)
Sets generated comment.
while($session_entry=$r->fetchRow(ilDBConstants::FETCHMODE_ASSOC)) return null
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
__construct(Container $dic, ilPlugin $plugin)