19 declare(strict_types=1);
32 $this->
logger = $DIC->logger()->grp();
38 public function init(): void
50 'component' =>
'components/ILIAS/Container',
61 foreach ($a_ids as
$id) {
63 foreach ($rec_ids as $rec_id) {
64 $advmd_ids[] = $id .
":" . $rec_id;
68 if ($advmd_ids !== []) {
70 "component" =>
"components/ILIAS/AdvancedMetaData",
77 foreach ($a_ids as $grp_id) {
78 $md_ids[] = $grp_id .
":0:grp";
83 "component" =>
"components/ILIAS/MetaData",
97 $group_ref_id = end($refs);
101 $this->
logger->warning($a_id .
' is not instance of type group');
108 return $writer->getXML();
116 foreach ($record_obj->getAssignedObjectTypes() as $obj_info) {
117 if ($obj_info[
'obj_type'] ==
'grp' && $obj_info[
'optional'] == 0) {
118 $active[] = $record_obj->getRecordId();
122 $obj_info[
'obj_type'] ==
'grp' &&
123 $obj_info[
'optional'] == 1 &&
124 $a_id == $record_obj->getParentObject()
126 $active[] = $record_obj->getRecordId();
137 "namespace" =>
'http://www.ilias.de/Modules/Group/grp/11',
138 "xsd_file" =>
'ilias_grp_11_0.xsd',
139 "uses_dataset" =>
false,
144 "namespace" =>
'http://www.ilias.de/Modules/Group/grp/9',
145 "xsd_file" =>
'ilias_grp_9_0.xsd',
146 "uses_dataset" =>
false,
151 "namespace" =>
"http://www.ilias.de/Modules/Group/grp/4_1",
152 "xsd_file" =>
"ilias_grp_4_1.xsd",
153 "uses_dataset" =>
false,
158 "namespace" =>
"http://www.ilias.de/Modules/Group/grp/5_0",
159 "xsd_file" =>
"ilias_grp_5_0.xsd",
160 "uses_dataset" =>
false,
getActiveAdvMDRecords(int $a_id)
getXmlRepresentation(string $a_entity, string $a_schema_version, string $a_id)
static _getActivatedRecordsByObjectType(string $a_obj_type, string $a_sub_type="", bool $a_only_optional=false)
Get activated records by object type.
static _getAllReferences(int $id)
get all reference ids for object ID
getXmlExportHeadDependencies(string $a_entity, string $a_target_release, array $a_ids)
getValidSchemaVersions(string $a_entity)
static getInstanceByRefId(int $ref_id, bool $stop_on_error=true)
get an instance of an Ilias object by reference id
$id
plugin.php for ilComponentBuildPluginInfoObjectiveTest::testAddPlugins
getXmlExportTailDependencies(string $a_entity, string $a_target_release, array $a_ids)