19 declare(strict_types=1);
30 public function init(): void
36 $this->writer = $services->xml()->standardWriter();
37 $this->
repository = $services->repository()->repository();
42 $id = explode(
":", $a_id);
46 $type = (string)
$id[2];
52 $md = $this->
repository->getMD($obj_id, $sub_id, $type);
53 $xml = $this->writer->write($md);
55 return trim(str_replace(
'<?xml version="1.0"?>',
'', $xml->asXML()));
68 "namespace" =>
"http://www.ilias.de/Services/MetaData/md/10_0",
69 "xsd_file" =>
"ilias_md_10_0.xsd",
74 "namespace" =>
"http://www.ilias.de/Services/MetaData/md/4_1",
75 "xsd_file" =>
"ilias_md_4_1.xsd",
repository()
description: > Example for rendering a repository card
$id
plugin.php for ilComponentBuildPluginInfoObjectiveTest::testAddPlugins