4 include_once(
"./Services/Export/classes/class.ilXmlExporter.php");
62 $parts = explode(
":", $a_id);
63 if(
sizeof($parts) != 2)
71 include_once(
'Services/AdvancedMetaData/classes/class.ilAdvancedMDValues.php');
80 foreach($raw as $item)
82 $sub_items[$item[
"sub_type"]][] = $item[
"sub_id"];
87 foreach($sub_items as $sub_type => $sub_ids)
89 foreach(array_unique($sub_ids) as $sub_id)
92 $defs = $values_record->getDefinitions();
93 $values_record->read();
94 foreach($values_record->getADTGroup()->getElements() as $element_id => $element)
96 if(!$element->isNull())
98 $def = $defs[$element_id];
99 $items[$rec_id][] =array(
100 'id' => $def->getImportId(),
101 'sub_type' => $sub_type,
103 'value' => $def->getValueForXML($element)
115 foreach($items as $record_id => $record_items)
120 foreach($record_items as $item)
126 'sub_type' => $item[
'sub_type'],
127 'sub_id' => $item[
'sub_id']
133 $xml->xmlEndTag(
'AdvancedMetaData');
136 return $xml->xmlDumpMem(
false);
151 "namespace" =>
"http://www.ilias.de/Services/AdvancedMetaData/advmd/4_4",
152 "xsd_file" =>
"ilias_advmd_4_4.xsd",
153 "uses_dataset" =>
true,
xmlStartTag($tag, $attrs=NULL, $empty=FALSE, $encode=TRUE, $escape=TRUE)
Writes a starttag.
static findByObjectId($a_obj_id)
Find all entries for object (regardless of sub-type/sub-id)