32 include_once
'class.ilMDBase.php';
42 include_once
'Services/MetaData/classes/class.ilMDGeneral.php';
54 include_once
'Services/MetaData/classes/class.ilMDGeneral.php';
64 include_once
'Services/MetaData/classes/class.ilMDLifecycle.php';
76 include_once
'Services/MetaData/classes/class.ilMDLifecycle.php';
85 include_once
'Services/MetaData/classes/class.ilMDMetaMetadata.php';
97 include_once
'Services/MetaData/classes/class.ilMDMetaMetadata.php';
106 include_once
'Services/MetaData/classes/class.ilMDTechnical.php';
110 $tec->setMetaId(
$id);
118 include_once
'Services/MetaData/classes/class.ilMDTechnical.php';
127 include_once
'Services/MetaData/classes/class.ilMDEducational.php';
131 $edu->setMetaId(
$id);
139 include_once
'Services/MetaData/classes/class.ilMDEducational.php';
147 include_once
'Services/MetaData/classes/class.ilMDRights.php';
151 $rig->setMetaId(
$id);
159 include_once
'Services/MetaData/classes/class.ilMDRights.php';
168 include_once
'Services/MetaData/classes/class.ilMDRelation.php';
174 include_once
'Services/MetaData/classes/class.ilMDRelation.php';
176 if (!$a_relation_id) {
181 $rel->setMetaId($a_relation_id);
187 include_once
'Services/MetaData/classes/class.ilMDRelation.php';
197 include_once
'Services/MetaData/classes/class.ilMDAnnotation.php';
203 if (!$a_annotation_id) {
206 include_once
'Services/MetaData/classes/class.ilMDAnnotation.php';
209 $ann->setMetaId($a_annotation_id);
215 include_once
'Services/MetaData/classes/class.ilMDAnnotation.php';
224 include_once
'Services/MetaData/classes/class.ilMDClassification.php';
230 if (!$a_classification_id) {
234 include_once
'Services/MetaData/classes/class.ilMDClassification.php';
237 $cla->setMetaId($a_classification_id);
243 include_once
'Services/MetaData/classes/class.ilMDClassification.php';
257 $writer->xmlStartTag(
'MetaData');
262 $gen->toXML($writer);
265 include_once
'Services/MetaData/classes/class.ilMDGeneral.php';
268 $gen->toXML($writer);
274 $lif->toXML($writer);
279 $met->toXML($writer);
284 $tec->toXML($writer);
289 $edu->toXML($writer);
293 if (is_object($rig = &$this->
getRights())) {
294 $rig->toXML($writer);
300 $rel->toXML($writer);
306 $ann->toXML($writer);
312 $cla->toXML($writer);
315 $writer->xmlEndTag(
'MetaData');
326 public function &
cloneMD($a_rbac_id, $a_obj_id, $a_obj_type)
328 include_once
'Services/MetaData/classes/class.ilMD2XML.php';
333 $md2xml->startExport();
336 switch ($a_obj_type) {
339 $clone =
new ilMD($a_rbac_id, $a_obj_id, $a_obj_type);
343 include_once
'Services/MetaData/classes/class.ilMDXMLCopier.php';
344 $mdxmlcopier =
new ilMDXMLCopier($md2xml->getXML(), $a_rbac_id, $a_obj_id, $a_obj_type);
347 $identifier =
new ilMDIdentifier($a_rbac_id, $a_obj_id, $a_obj_type);
348 $identifier->setEntry(
'il__' . $a_obj_type .
'_' . $a_obj_id);
349 $identifier->update();
354 return $mdxmlcopier->getMDObject();
361 $ilDB = $DIC[
'ilDB'];
363 $tables = array(
'il_meta_annotation',
364 'il_meta_classification',
365 'il_meta_contribute',
366 'il_meta_description',
367 'il_meta_educational',
371 'il_meta_identifier',
372 'il_meta_identifier_',
379 'il_meta_requirement',
382 'il_meta_taxon_path',
386 foreach ($tables as
$table) {
387 $query =
"DELETE FROM " . $table .
" " .
& 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
if(!array_key_exists('StateId', $_REQUEST)) $id
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)
static _getId($a_rbac_id, $a_obj_id)
& getAnnotation($a_annotation_id)
if(empty($password)) $table