32 include_once
'class.ilMDBase.php';
42 include_once
'Services/MetaData/classes/class.ilMDGeneral.php';
55 include_once
'Services/MetaData/classes/class.ilMDGeneral.php';
65 include_once
'Services/MetaData/classes/class.ilMDLifecycle.php';
78 include_once
'Services/MetaData/classes/class.ilMDLifecycle.php';
87 include_once
'Services/MetaData/classes/class.ilMDMetaMetadata.php';
100 include_once
'Services/MetaData/classes/class.ilMDMetaMetadata.php';
109 include_once
'Services/MetaData/classes/class.ilMDTechnical.php';
114 $tec->setMetaId($id);
122 include_once
'Services/MetaData/classes/class.ilMDTechnical.php';
131 include_once
'Services/MetaData/classes/class.ilMDEducational.php';
136 $edu->setMetaId($id);
144 include_once
'Services/MetaData/classes/class.ilMDEducational.php';
152 include_once
'Services/MetaData/classes/class.ilMDRights.php';
157 $rig->setMetaId($id);
165 include_once
'Services/MetaData/classes/class.ilMDRights.php';
174 include_once
'Services/MetaData/classes/class.ilMDRelation.php';
180 include_once
'Services/MetaData/classes/class.ilMDRelation.php';
188 $rel->setMetaId($a_relation_id);
194 include_once
'Services/MetaData/classes/class.ilMDRelation.php';
204 include_once
'Services/MetaData/classes/class.ilMDAnnotation.php';
210 if(!$a_annotation_id)
214 include_once
'Services/MetaData/classes/class.ilMDAnnotation.php';
217 $ann->setMetaId($a_annotation_id);
223 include_once
'Services/MetaData/classes/class.ilMDAnnotation.php';
232 include_once
'Services/MetaData/classes/class.ilMDClassification.php';
238 if(!$a_classification_id)
243 include_once
'Services/MetaData/classes/class.ilMDClassification.php';
246 $cla->setMetaId($a_classification_id);
252 include_once
'Services/MetaData/classes/class.ilMDClassification.php';
266 $writer->xmlStartTag(
'MetaData');
272 $gen->toXML($writer);
277 include_once
'Services/MetaData/classes/class.ilMDGeneral.php';
280 $gen->toXML($writer);
287 $lif->toXML($writer);
293 $met->toXML($writer);
299 $tec->toXML($writer);
305 $edu->toXML($writer);
309 if(is_object($rig =& $this->
getRights()))
311 $rig->toXML($writer);
318 $rel->toXML($writer);
325 $ann->toXML($writer);
332 $cla->toXML($writer);
335 $writer->xmlEndTag(
'MetaData');
346 function &
cloneMD($a_rbac_id,$a_obj_id,$a_obj_type)
348 include_once
'Services/MetaData/classes/class.ilMD2XML.php';
353 $md2xml->startExport();
359 include_once
'Services/MetaData/classes/class.ilMDXMLCopier.php';
360 $mdxmlcopier =
new ilMDXMLCopier($md2xml->getXML(),$a_rbac_id,$a_obj_id,$a_obj_type);
365 return $mdxmlcopier->getMDObject();
372 $tables =
array(
'il_meta_annotation',
373 'il_meta_classification',
374 'il_meta_contribute',
375 'il_meta_description',
376 'il_meta_educational',
380 'il_meta_identifier',
381 'il_meta_identifier_',
388 'il_meta_requirement',
391 'il_meta_taxon_path',
395 foreach($tables as $table)
397 $query =
"DELETE FROM ".$table.
" ".
398 "WHERE rbac_id = ".$ilDB->quote($this->
getRBACId()).
" ".
399 "AND obj_id = ".$ilDB->quote($this->
getObjId());
& cloneMD($a_rbac_id, $a_obj_id, $a_obj_type)
static _getIds($a_rbac_id, $a_obj_id)
static _getIds($a_rbac_id, $a_obj_id)
& getClassification($a_classification_id)
startParsing()
stores xml data in array
static _getIds($a_rbac_id, $a_obj_id)
static _getId($a_rbac_id, $a_obj_id)
& getRelation($a_relation_id)
static _getId($a_rbac_id, $a_obj_id)
static _getId($a_rbac_id, $a_obj_id)
static _getId($a_rbac_id, $a_obj_id)
Create styles array
The data for the language used.
static _getId($a_rbac_id, $a_obj_id)
& getAnnotation($a_annotation_id)