19declare(strict_types=1);
25 protected const string ENTITY =
'cond';
29 public function init(): void
32 $this->
factory =
new ConditionExportFactory(
$DIC->database());
33 $this->tree =
$DIC->repositoryTree();
38 string $a_schema_version,
46 foreach ($this->tree->getSubTree($this->tree->getNodeData(
$ref_id)) as $node) {
47 if (((
int) $node[
'obj_id']) === (
int) $a_id) {
50 $obj_ids[] = (
int) $node[
'obj_id'];
52 $infos = $this->
factory->repository()->getInfosByObjectIds($obj_ids);
53 $writer = $this->
factory->xmlWriter();
54 $writer->writeAll($infos);
55 return $writer->__toString();
63 "namespace" =>
"http://www.ilias.de/Components/Conditions/cond/11_0",
64 "xsd_file" =>
"ilias_cond_11_0.xsd",
getXmlRepresentation(string $a_entity, string $a_schema_version, string $a_id)
getValidSchemaVersions(string $a_entity)
Returns schema versions that the component can export to.
ConditionExportFactory $factory
static _getAllReferences(int $id)
get all reference ids for object ID
Tree class data representation in hierachical trees using the Nested Set Model with Gaps by Joe Celco...
return['delivery_method'=> 'php',]
This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Le...
if(!file_exists('../ilias.ini.php'))