32 include_once
'class.ilMDBase.php';
41 function ilMD($a_rbac_id,$a_obj_id,$a_type)
48 include_once
'Services/Migration/DBUpdate_426/classes/class.ilMDGeneral.php';
61 include_once
'Services/Migration/DBUpdate_426/classes/class.ilMDGeneral.php';
71 include_once
'Services/Migration/DBUpdate_426/classes/class.ilMDLifecycle.php';
84 include_once
'Services/Migration/DBUpdate_426/classes/class.ilMDLifecycle.php';
93 include_once
'Services/Migration/DBUpdate_426/classes/class.ilMDMetaMetadata.php';
106 include_once
'Services/Migration/DBUpdate_426/classes/class.ilMDMetaMetadata.php';
115 include_once
'Services/Migration/DBUpdate_426/classes/class.ilMDTechnical.php';
120 $tec->setMetaId($id);
128 include_once
'Services/Migration/DBUpdate_426/classes/class.ilMDTechnical.php';
137 include_once
'Services/Migration/DBUpdate_426/classes/class.ilMDEducational.php';
142 $edu->setMetaId($id);
150 include_once
'Services/Migration/DBUpdate_426/classes/class.ilMDEducational.php';
158 include_once
'Services/Migration/DBUpdate_426/classes/class.ilMDRights.php';
163 $rig->setMetaId($id);
171 include_once
'Services/Migration/DBUpdate_426/classes/class.ilMDRights.php';
180 include_once
'Services/Migration/DBUpdate_426/classes/class.ilMDRelation.php';
186 include_once
'Services/Migration/DBUpdate_426/classes/class.ilMDRelation.php';
194 $rel->setMetaId($a_relation_id);
200 include_once
'Services/Migration/DBUpdate_426/classes/class.ilMDRelation.php';
210 include_once
'Services/Migration/DBUpdate_426/classes/class.ilMDAnnotation.php';
216 if(!$a_annotation_id)
220 include_once
'Services/Migration/DBUpdate_426/classes/class.ilMDAnnotation.php';
223 $ann->setMetaId($a_annotation_id);
229 include_once
'Services/Migration/DBUpdate_426/classes/class.ilMDAnnotation.php';
238 include_once
'Services/Migration/DBUpdate_426/classes/class.ilMDClassification.php';
244 if(!$a_classification_id)
249 include_once
'Services/Migration/DBUpdate_426/classes/class.ilMDClassification.php';
252 $cla->setMetaId($a_classification_id);
258 include_once
'Services/Migration/DBUpdate_426/classes/class.ilMDClassification.php';
272 $writer->xmlStartTag(
'Migration/DBUpdate_426');
277 $gen->toXML($writer);
283 $lif->toXML($writer);
289 $met->toXML($writer);
295 $tec->toXML($writer);
301 $edu->toXML($writer);
305 if(is_object($rig =& $this->
getRights()))
307 $rig->toXML($writer);
314 $rel->toXML($writer);
321 $ann->toXML($writer);
328 $cla->toXML($writer);
331 $writer->xmlEndTag(
'Migration/DBUpdate_426');
338 $tables = array(
'il_meta_annotation',
339 'il_meta_classification',
340 'il_meta_contribute',
341 'il_meta_description',
342 'il_meta_educational',
346 'il_meta_identifier',
347 'il_meta_identifier_',
354 'il_meta_requirement',
357 'il_meta_taxon_path',
359 'il_meta_typical_age_range');
361 foreach($tables as $table)
363 $query =
"DELETE FROM ".$table.
" ".
364 "WHERE rbac_id = ".$ilDB->quote($this->
getRBACId()).
" ".
365 "AND obj_id = ".$ilDB->quote($this->
getObjId());
375 $tables = array(
'il_meta_annotation',
376 'il_meta_classification',
377 'il_meta_contribute',
378 'il_meta_description',
379 'il_meta_educational',
383 'il_meta_identifier',
384 'il_meta_identifier_',
391 'il_meta_requirement',
394 'il_meta_taxon_path',
396 'il_meta_typical_age_range');
398 foreach($tables as $table)
400 $query =
"DELETE FROM ".$table.
" ".
401 "WHERE obj_type = ".$ilDB->quote($a_type).
" ";