4 include_once(
"./Services/Export/classes/class.ilXmlExporter.php");
64 $parts = explode(
":", $a_id);
65 if(
sizeof($parts) != 2)
72 include_once(
'Services/AdvancedMetaData/classes/class.ilAdvancedMDFieldDefinition.php');
76 $field_ids[] = $def->getFieldId();
79 if(!
sizeof($field_ids))
87 $query =
"SELECT field_id,value,sub_id,sub_type".
88 " FROM adv_md_values ".
89 " WHERE obj_id = ".$ilDB->quote($a_id,
"integer").
90 " AND ".$ilDB->in(
"field_id", $field_ids,
"",
"integer");
91 $set = $ilDB->query(
$query);
92 while(
$row = $ilDB->fetchAssoc($set))
94 if(trim(
$row[
'value']) !=
"")
96 $xml->xmlElement(
'Value',
99 'sub_id' =>
$row[
'sub_id'],
100 'sub_type' =>
$row[
'sub_type'],
106 $xml->xmlEndTag(
'AdvancedMetaData');
108 return $xml->xmlDumpMem(
false);
122 "namespace" =>
"http://www.ilias.de/Services/AdvancedMetaData/advmd/4_4",
123 "xsd_file" =>
"ilias_advmd_4_4.xsd",
124 "uses_dataset" =>
true,
static _getDefinitionsByRecordId($a_record_id)
get definitions
xmlStartTag($tag, $attrs=NULL, $empty=FALSE, $encode=TRUE, $escape=TRUE)
Writes a starttag.
static _lookupImportId($a_field_id)
Lookup import id.