19 declare(strict_types=1);
37 $this->
logger = $DIC->logger()->grp();
43 public function init(): void
55 'component' =>
'components/ILIAS/Container',
66 foreach ($a_ids as
$id) {
68 foreach ($rec_ids as $rec_id) {
69 $advmd_ids[] = $id .
":" . $rec_id;
73 if ($advmd_ids !== []) {
75 "component" =>
"components/ILIAS/AdvancedMetaData",
82 foreach ($a_ids as $grp_id) {
83 $md_ids[] = $grp_id .
":0:grp";
88 "component" =>
"components/ILIAS/MetaData",
102 $group_ref_id = end($refs);
106 $this->
logger->warning($a_id .
' is not instance of type group');
113 return $writer->getXML();
121 foreach ($record_obj->getAssignedObjectTypes() as $obj_info) {
122 if ($obj_info[
'obj_type'] ==
'grp' && $obj_info[
'optional'] == 0) {
123 $active[] = $record_obj->getRecordId();
127 $obj_info[
'obj_type'] ==
'grp' &&
128 $obj_info[
'optional'] == 1 &&
129 $a_id == $record_obj->getParentObject()
131 $active[] = $record_obj->getRecordId();
146 "namespace" =>
'http://www.ilias.de/Modules/Group/grp/9',
147 "xsd_file" =>
'ilias_grp_9_0.xsd',
148 "uses_dataset" =>
false,
153 "namespace" =>
"http://www.ilias.de/Modules/Group/grp/4_1",
154 "xsd_file" =>
"ilias_grp_4_1.xsd",
155 "uses_dataset" =>
false,
160 "namespace" =>
"http://www.ilias.de/Modules/Group/grp/5_0",
161 "xsd_file" =>
"ilias_grp_5_0.xsd",
162 "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)