ILIAS  release_5-4 Revision v5.4.26-12-gabc799a52e6
ilMD Class Reference
+ Inheritance diagram for ilMD:
+ Collaboration diagram for ilMD:

Public Member Functions

getGeneral ()
 
addGeneral ()
 
getLifecycle ()
 
addLifecycle ()
 
getMetaMetadata ()
 
addMetaMetadata ()
 
getTechnical ()
 
addTechnical ()
 
getEducational ()
 
addEducational ()
 
getRights ()
 
addRights ()
 
getRelationIds ()
 
getRelation ($a_relation_id)
 
addRelation ()
 
getAnnotationIds ()
 
getAnnotation ($a_annotation_id)
 
addAnnotation ()
 
getClassificationIds ()
 
getClassification ($a_classification_id)
 
addClassification ()
 
 toXML (&$writer)
 
cloneMD ($a_rbac_id, $a_obj_id, $a_obj_type)
 
 deleteAll ()
 
getGeneral ()
 
addGeneral ()
 
getLifecycle ()
 
addLifecycle ()
 
getMetaMetadata ()
 
addMetaMetadata ()
 
getTechnical ()
 
addTechnical ()
 
getEducational ()
 
addEducational ()
 
getRights ()
 
addRights ()
 
getRelationIds ()
 
getRelation ($a_relation_id)
 
addRelation ()
 
getAnnotationIds ()
 
getAnnotation ($a_annotation_id)
 
addAnnotation ()
 
getClassificationIds ()
 
getClassification ($a_classification_id)
 
addClassification ()
 
 toXML (&$writer)
 
 deleteAll ()
 
 _deleteAllByType ($a_type)
 
getGeneral ()
 
addGeneral ()
 
getLifecycle ()
 
addLifecycle ()
 
getMetaMetadata ()
 
addMetaMetadata ()
 
getTechnical ()
 
addTechnical ()
 
getEducational ()
 
addEducational ()
 
getRights ()
 
addRights ()
 
getRelationIds ()
 
getRelation ($a_relation_id)
 
addRelation ()
 
getAnnotationIds ()
 
getAnnotation ($a_annotation_id)
 
addAnnotation ()
 
getClassificationIds ()
 
getClassification ($a_classification_id)
 
addClassification ()
 
 toXML (&$writer)
 
cloneMD ($a_rbac_id, $a_obj_id, $a_obj_type)
 
 deleteAll ()
 
- Public Member Functions inherited from ilMDBase
 __construct ( $a_rbac_id=0, $a_obj_id=0, $a_type=0)
 
 setRBACId ($a_id)
 
 getRBACId ()
 
 setObjId ($a_id)
 
 getObjId ()
 
 setObjType ($a_type)
 
 getObjType ()
 
 setMetaId ($a_meta_id, $a_read_data=true)
 
 getMetaId ()
 
 setParentType ($a_parent_type)
 
 getParentType ()
 
 setParentId ($a_id)
 
 getParentId ()
 
 setExportMode ($a_export_mode=true)
 
 getExportMode ()
 
 validate ()
 
 update ()
 
 save ()
 
 delete ()
 
 toXML (&$writer)
 
 __construct ( $a_rbac_id=0, $a_obj_id=0, $a_type=0)
 
 setRBACId ($a_id)
 
 getRBACId ()
 
 setObjId ($a_id)
 
 getObjId ()
 
 setObjType ($a_type)
 
 getObjType ()
 
 setMetaId ($a_meta_id, $a_read_data=true)
 
 getMetaId ()
 
 setParentType ($a_parent_type)
 
 getParentType ()
 
 setParentId ($a_id)
 
 getParentId ()
 
 validate ()
 
 update ()
 
 save ()
 
 delete ()
 
 toXML (&$writer)
 
 __construct ( $a_rbac_id=0, $a_obj_id=0, $a_type=0)
 
 setRBACId ($a_id)
 
 getRBACId ()
 
 setObjId ($a_id)
 
 getObjId ()
 
 setObjType ($a_type)
 
 getObjType ()
 
 setMetaId ($a_meta_id, $a_read_data=true)
 
 getMetaId ()
 
 setParentType ($a_parent_type)
 
 getParentType ()
 
 setParentId ($a_id)
 
 getParentId ()
 
 setExportMode ($a_export_mode=true)
 
 getExportMode ()
 
 validate ()
 
 update ()
 
 save ()
 
 delete ()
 
 toXML (&$writer)
 

Static Public Member Functions

static _deleteAllByType ($a_type)
 

Additional Inherited Members

- Data Fields inherited from ilMDBase
 $rbac_id
 
 $obj_id
 
 $obj_type
 
 $export_mode = false
 
- Protected Attributes inherited from ilMDBase
 $log
 

Detailed Description

Definition at line 34 of file class.ilMD.php.

Member Function Documentation

◆ _deleteAllByType() [1/2]

ilMD::_deleteAllByType (   $a_type)

Definition at line 347 of file class.ilMD.php.

348 {
349 global $ilDB;
350
351 $tables = array('il_meta_annotation',
352 'il_meta_classification',
353 'il_meta_contribute',
354 'il_meta_description',
355 'il_meta_educational',
356 'il_meta_entity',
357 'il_meta_format',
358 'il_meta_general',
359 'il_meta_identifier',
360 'il_meta_identifier_',
361 'il_meta_keyword',
362 'il_meta_language',
363 'il_meta_lifecycle',
364 'il_meta_location',
365 'il_meta_meta_data',
366 'il_meta_relation',
367 'il_meta_requirement',
368 'il_meta_rights',
369 'il_meta_taxon',
370 'il_meta_taxon_path',
371 'il_meta_technical',
372 'il_meta_typical_age_range');
373
374 foreach ($tables as $table) {
375 $query = "DELETE FROM " . $table . " " .
376 "WHERE obj_type = " . $ilDB->quote($a_type) . " ";
377 $res = $ilDB->query($query);
378 }
379
380 return true;
381 }
$query
if(empty($password)) $table
Definition: pwgen.php:24
foreach($_POST as $key=> $value) $res
global $ilDB
$a_type
Definition: workflow.php:92

References $a_type, $ilDB, $query, $res, and $table.

◆ _deleteAllByType() [2/2]

static ilMD::_deleteAllByType (   $a_type)
static

Definition at line 387 of file class.ilMD.php.

388 {
389 global $ilDB;
390
391 $tables = array('il_meta_annotation',
392 'il_meta_classification',
393 'il_meta_contribute',
394 'il_meta_description',
395 'il_meta_educational',
396 'il_meta_entity',
397 'il_meta_format',
398 'il_meta_general',
399 'il_meta_identifier',
400 'il_meta_identifier_',
401 'il_meta_keyword',
402 'il_meta_language',
403 'il_meta_lifecycle',
404 'il_meta_location',
405 'il_meta_meta_data',
406 'il_meta_relation',
407 'il_meta_requirement',
408 'il_meta_rights',
409 'il_meta_taxon',
410 'il_meta_taxon_path',
411 'il_meta_technical',
412 'il_meta_tar');
413
414 foreach ($tables as $table) {
415 $query = "DELETE FROM " . $table . " " .
416 "WHERE obj_type = " . $ilDB->quote($a_type, 'text') . " ";
417 $res = $ilDB->query($query);
418 }
419
420 return true;
421 }

References $a_type, $ilDB, $query, $res, and $table.

◆ addAnnotation() [1/3]

& ilMD::addAnnotation ( )

Definition at line 213 of file class.ilMD.php.

214 {
215 include_once 'Services/MetaData/classes/class.ilMDAnnotation.php';
216
217 $ann = new ilMDAnnotation($this->getRBACId(), $this->getObjId(), $this->getObjType());
218
219 return $ann;
220 }

References ilMDBase\getObjId(), ilMDBase\getObjType(), and ilMDBase\getRBACId().

+ Here is the call graph for this function:

◆ addAnnotation() [2/3]

& ilMD::addAnnotation ( )

Definition at line 214 of file class.ilMD.php.

215 {
216 include_once 'Services/Migration/DBUpdate_426/classes/class.ilMDAnnotation.php';
217
218 $ann = new ilMDAnnotation($this->getRBACId(), $this->getObjId(), $this->getObjType());
219
220 return $ann;
221 }

References ilMDBase\getObjId(), ilMDBase\getObjType(), and ilMDBase\getRBACId().

+ Here is the call graph for this function:

◆ addAnnotation() [3/3]

& ilMD::addAnnotation ( )

Definition at line 213 of file class.ilMD.php.

214 {
215 include_once 'Services/Migration/DBUpdate_5295/classes/class.ilMDAnnotation.php';
216
217 $ann = new ilMDAnnotation($this->getRBACId(), $this->getObjId(), $this->getObjType());
218
219 return $ann;
220 }

References ilMDBase\getObjId(), ilMDBase\getObjType(), and ilMDBase\getRBACId().

+ Here is the call graph for this function:

◆ addClassification() [1/3]

& ilMD::addClassification ( )

Definition at line 241 of file class.ilMD.php.

242 {
243 include_once 'Services/MetaData/classes/class.ilMDClassification.php';
244
245 $cla = new ilMDClassification($this->getRBACId(), $this->getObjId(), $this->getObjType());
246
247 return $cla;
248 }

References ilMDBase\getObjId(), ilMDBase\getObjType(), and ilMDBase\getRBACId().

+ Here is the call graph for this function:

◆ addClassification() [2/3]

& ilMD::addClassification ( )

Definition at line 242 of file class.ilMD.php.

243 {
244 include_once 'Services/Migration/DBUpdate_426/classes/class.ilMDClassification.php';
245
246 $cla = new ilMDClassification($this->getRBACId(), $this->getObjId(), $this->getObjType());
247
248 return $cla;
249 }

References ilMDBase\getObjId(), ilMDBase\getObjType(), and ilMDBase\getRBACId().

+ Here is the call graph for this function:

◆ addClassification() [3/3]

& ilMD::addClassification ( )

Definition at line 241 of file class.ilMD.php.

242 {
243 include_once 'Services/Migration/DBUpdate_5295/classes/class.ilMDClassification.php';
244
245 $cla = new ilMDClassification($this->getRBACId(), $this->getObjId(), $this->getObjType());
246
247 return $cla;
248 }

References ilMDBase\getObjId(), ilMDBase\getObjType(), and ilMDBase\getRBACId().

+ Here is the call graph for this function:

◆ addEducational() [1/3]

& ilMD::addEducational ( )

Definition at line 137 of file class.ilMD.php.

138 {
139 include_once 'Services/MetaData/classes/class.ilMDEducational.php';
140
141 $edu = new ilMDEducational($this->getRBACId(), $this->getObjId(), $this->getObjType());
142
143 return $edu;
144 }

References ilMDBase\getObjId(), ilMDBase\getObjType(), and ilMDBase\getRBACId().

+ Here is the call graph for this function:

◆ addEducational() [2/3]

& ilMD::addEducational ( )

Definition at line 138 of file class.ilMD.php.

139 {
140 include_once 'Services/Migration/DBUpdate_426/classes/class.ilMDEducational.php';
141
142 $edu = new ilMDEducational($this->getRBACId(), $this->getObjId(), $this->getObjType());
143
144 return $edu;
145 }

References ilMDBase\getObjId(), ilMDBase\getObjType(), and ilMDBase\getRBACId().

+ Here is the call graph for this function:

◆ addEducational() [3/3]

& ilMD::addEducational ( )

Definition at line 137 of file class.ilMD.php.

138 {
139 include_once 'Services/Migration/DBUpdate_5295/classes/class.ilMDEducational.php';
140
141 $edu = new ilMDEducational($this->getRBACId(), $this->getObjId(), $this->getObjType());
142
143 return $edu;
144 }

References ilMDBase\getObjId(), ilMDBase\getObjType(), and ilMDBase\getRBACId().

+ Here is the call graph for this function:

◆ addGeneral() [1/3]

& ilMD::addGeneral ( )

Definition at line 52 of file class.ilMD.php.

53 {
54 include_once 'Services/MetaData/classes/class.ilMDGeneral.php';
55
56 $gen = new ilMDGeneral($this->getRBACId(), $this->getObjId(), $this->getObjType());
57
58 return $gen;
59 }

References ilMDBase\getObjId(), ilMDBase\getObjType(), and ilMDBase\getRBACId().

+ Here is the call graph for this function:

◆ addGeneral() [2/3]

& ilMD::addGeneral ( )

Definition at line 53 of file class.ilMD.php.

54 {
55 include_once 'Services/Migration/DBUpdate_426/classes/class.ilMDGeneral.php';
56
57 $gen = new ilMDGeneral($this->getRBACId(), $this->getObjId(), $this->getObjType());
58
59 return $gen;
60 }

References ilMDBase\getObjId(), ilMDBase\getObjType(), and ilMDBase\getRBACId().

+ Here is the call graph for this function:

◆ addGeneral() [3/3]

& ilMD::addGeneral ( )

Definition at line 52 of file class.ilMD.php.

53 {
54 include_once 'Services/Migration/DBUpdate_5295/classes/class.ilMDGeneral.php';
55
56 $gen = new ilMDGeneral($this->getRBACId(), $this->getObjId(), $this->getObjType());
57
58 return $gen;
59 }

References ilMDBase\getObjId(), ilMDBase\getObjType(), and ilMDBase\getRBACId().

+ Here is the call graph for this function:

◆ addLifecycle() [1/3]

& ilMD::addLifecycle ( )

Definition at line 74 of file class.ilMD.php.

75 {
76 include_once 'Services/MetaData/classes/class.ilMDLifecycle.php';
77
78 $lif = new ilMDLifecycle($this->getRBACId(), $this->getObjId(), $this->getObjType());
79
80 return $lif;
81 }

References ilMDBase\getObjId(), ilMDBase\getObjType(), and ilMDBase\getRBACId().

+ Here is the call graph for this function:

◆ addLifecycle() [2/3]

& ilMD::addLifecycle ( )

Definition at line 75 of file class.ilMD.php.

76 {
77 include_once 'Services/Migration/DBUpdate_426/classes/class.ilMDLifecycle.php';
78
79 $lif = new ilMDLifecycle($this->getRBACId(), $this->getObjId(), $this->getObjType());
80
81 return $lif;
82 }

References ilMDBase\getObjId(), ilMDBase\getObjType(), and ilMDBase\getRBACId().

+ Here is the call graph for this function:

◆ addLifecycle() [3/3]

& ilMD::addLifecycle ( )

Definition at line 74 of file class.ilMD.php.

75 {
76 include_once 'Services/Migration/DBUpdate_5295/classes/class.ilMDLifecycle.php';
77
78 $lif = new ilMDLifecycle($this->getRBACId(), $this->getObjId(), $this->getObjType());
79
80 return $lif;
81 }

References ilMDBase\getObjId(), ilMDBase\getObjType(), and ilMDBase\getRBACId().

+ Here is the call graph for this function:

◆ addMetaMetadata() [1/3]

& ilMD::addMetaMetadata ( )

Definition at line 95 of file class.ilMD.php.

96 {
97 include_once 'Services/MetaData/classes/class.ilMDMetaMetadata.php';
98
99 $met = new ilMDMetaMetadata($this->getRBACId(), $this->getObjId(), $this->getObjType());
100
101 return $met;
102 }

References ilMDBase\getObjId(), ilMDBase\getObjType(), and ilMDBase\getRBACId().

+ Here is the call graph for this function:

◆ addMetaMetadata() [2/3]

& ilMD::addMetaMetadata ( )

Definition at line 96 of file class.ilMD.php.

97 {
98 include_once 'Services/Migration/DBUpdate_426/classes/class.ilMDMetaMetadata.php';
99
100 $met = new ilMDMetaMetadata($this->getRBACId(), $this->getObjId(), $this->getObjType());
101
102 return $met;
103 }

References ilMDBase\getObjId(), ilMDBase\getObjType(), and ilMDBase\getRBACId().

+ Here is the call graph for this function:

◆ addMetaMetadata() [3/3]

& ilMD::addMetaMetadata ( )

Definition at line 95 of file class.ilMD.php.

96 {
97 include_once 'Services/Migration/DBUpdate_5295/classes/class.ilMDMetaMetadata.php';
98
99 $met = new ilMDMetaMetadata($this->getRBACId(), $this->getObjId(), $this->getObjType());
100
101 return $met;
102 }

References ilMDBase\getObjId(), ilMDBase\getObjType(), and ilMDBase\getRBACId().

+ Here is the call graph for this function:

◆ addRelation() [1/3]

& ilMD::addRelation ( )

Definition at line 185 of file class.ilMD.php.

186 {
187 include_once 'Services/MetaData/classes/class.ilMDRelation.php';
188
189 $rel = new ilMDRelation($this->getRBACId(), $this->getObjId(), $this->getObjType());
190
191 return $rel;
192 }

References ilMDBase\getObjId(), ilMDBase\getObjType(), and ilMDBase\getRBACId().

+ Here is the call graph for this function:

◆ addRelation() [2/3]

& ilMD::addRelation ( )

Definition at line 186 of file class.ilMD.php.

187 {
188 include_once 'Services/Migration/DBUpdate_426/classes/class.ilMDRelation.php';
189
190 $rel = new ilMDRelation($this->getRBACId(), $this->getObjId(), $this->getObjType());
191
192 return $rel;
193 }

References ilMDBase\getObjId(), ilMDBase\getObjType(), and ilMDBase\getRBACId().

+ Here is the call graph for this function:

◆ addRelation() [3/3]

& ilMD::addRelation ( )

Definition at line 185 of file class.ilMD.php.

186 {
187 include_once 'Services/Migration/DBUpdate_5295/classes/class.ilMDRelation.php';
188
189 $rel = new ilMDRelation($this->getRBACId(), $this->getObjId(), $this->getObjType());
190
191 return $rel;
192 }

References ilMDBase\getObjId(), ilMDBase\getObjType(), and ilMDBase\getRBACId().

+ Here is the call graph for this function:

◆ addRights() [1/3]

& ilMD::addRights ( )

Definition at line 157 of file class.ilMD.php.

158 {
159 include_once 'Services/MetaData/classes/class.ilMDRights.php';
160
161 $rig = new ilMDRights($this->getRBACId(), $this->getObjId(), $this->getObjType());
162
163 return $rig;
164 }

References ilMDBase\getObjId(), ilMDBase\getObjType(), and ilMDBase\getRBACId().

+ Here is the call graph for this function:

◆ addRights() [2/3]

& ilMD::addRights ( )

Definition at line 158 of file class.ilMD.php.

159 {
160 include_once 'Services/Migration/DBUpdate_426/classes/class.ilMDRights.php';
161
162 $rig = new ilMDRights($this->getRBACId(), $this->getObjId(), $this->getObjType());
163
164 return $rig;
165 }

References ilMDBase\getObjId(), ilMDBase\getObjType(), and ilMDBase\getRBACId().

+ Here is the call graph for this function:

◆ addRights() [3/3]

& ilMD::addRights ( )

Definition at line 157 of file class.ilMD.php.

158 {
159 include_once 'Services/Migration/DBUpdate_5295/classes/class.ilMDRights.php';
160
161 $rig = new ilMDRights($this->getRBACId(), $this->getObjId(), $this->getObjType());
162
163 return $rig;
164 }

References ilMDBase\getObjId(), ilMDBase\getObjType(), and ilMDBase\getRBACId().

+ Here is the call graph for this function:

◆ addTechnical() [1/3]

& ilMD::addTechnical ( )

Definition at line 116 of file class.ilMD.php.

117 {
118 include_once 'Services/MetaData/classes/class.ilMDTechnical.php';
119
120 $tec = new ilMDTechnical($this->getRBACId(), $this->getObjId(), $this->getObjType());
121
122 return $tec;
123 }

References ilMDBase\getObjId(), ilMDBase\getObjType(), and ilMDBase\getRBACId().

+ Here is the call graph for this function:

◆ addTechnical() [2/3]

& ilMD::addTechnical ( )

Definition at line 117 of file class.ilMD.php.

118 {
119 include_once 'Services/Migration/DBUpdate_426/classes/class.ilMDTechnical.php';
120
121 $tec = new ilMDTechnical($this->getRBACId(), $this->getObjId(), $this->getObjType());
122
123 return $tec;
124 }

References ilMDBase\getObjId(), ilMDBase\getObjType(), and ilMDBase\getRBACId().

+ Here is the call graph for this function:

◆ addTechnical() [3/3]

& ilMD::addTechnical ( )

Definition at line 116 of file class.ilMD.php.

117 {
118 include_once 'Services/Migration/DBUpdate_5295/classes/class.ilMDTechnical.php';
119
120 $tec = new ilMDTechnical($this->getRBACId(), $this->getObjId(), $this->getObjType());
121
122 return $tec;
123 }

References ilMDBase\getObjId(), ilMDBase\getObjType(), and ilMDBase\getRBACId().

+ Here is the call graph for this function:

◆ cloneMD() [1/2]

& ilMD::cloneMD (   $a_rbac_id,
  $a_obj_id,
  $a_obj_type 
)

Definition at line 326 of file class.ilMD.php.

327 {
328 include_once 'Services/MetaData/classes/class.ilMD2XML.php';
329
330 // this method makes an xml export of the original meta data set
331 // and uses this xml string to clone the object
332 $md2xml = new ilMD2XML($this->getRBACId(), $this->getObjId(), $this->getObjType());
333 $md2xml->startExport();
334
335 // Create copier instance. For pg objects one could instantiate a ilMDXMLPageCopier class
336 switch ($a_obj_type) {
337 default:
338 // delete existing entries from creations process
339 $clone = new ilMD($a_rbac_id, $a_obj_id, $a_obj_type);
340 $clone->deleteAll();
341
342
343 include_once 'Services/MetaData/classes/class.ilMDXMLCopier.php';
344 $mdxmlcopier = new ilMDXMLCopier($md2xml->getXML(), $a_rbac_id, $a_obj_id, $a_obj_type);
345
346 // rewrite autogenerated entry
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();
350 break;
351 }
352 $mdxmlcopier->startParsing();
353
354 return $mdxmlcopier->getMDObject();
355 }

References ilMDBase\getObjId(), ilMDBase\getObjType(), and ilMDBase\getRBACId().

+ Here is the call graph for this function:

◆ cloneMD() [2/2]

& ilMD::cloneMD (   $a_rbac_id,
  $a_obj_id,
  $a_obj_type 
)

Definition at line 326 of file class.ilMD.php.

327 {
328 include_once 'Services/Migration/DBUpdate_5295/classes/class.ilMD2XML.php';
329
330 // this method makes an xml export of the original meta data set
331 // and uses this xml string to clone the object
332 $md2xml = new ilMD2XML($this->getRBACId(), $this->getObjId(), $this->getObjType());
333 $md2xml->startExport();
334
335 // Create copier instance. For pg objects one could instantiate a ilMDXMLPageCopier class
336 switch ($a_obj_type) {
337 default:
338 include_once 'Services/Migration/DBUpdate_5295/classes/class.ilMDXMLCopier.php';
339 $mdxmlcopier = new ilMDXMLCopier($md2xml->getXML(), $a_rbac_id, $a_obj_id, $a_obj_type);
340 break;
341 }
342 $mdxmlcopier->startParsing();
343
344 return $mdxmlcopier->getMDObject();
345 }

References ilMDBase\getObjId(), ilMDBase\getObjType(), and ilMDBase\getRBACId().

+ Here is the call graph for this function:

◆ deleteAll() [1/3]

ilMD::deleteAll ( )

Definition at line 357 of file class.ilMD.php.

358 {
359 global $DIC;
360
361 $ilDB = $DIC['ilDB'];
362
363 $tables = array('il_meta_annotation',
364 'il_meta_classification',
365 'il_meta_contribute',
366 'il_meta_description',
367 'il_meta_educational',
368 'il_meta_entity',
369 'il_meta_format',
370 'il_meta_general',
371 'il_meta_identifier',
372 'il_meta_identifier_',
373 'il_meta_keyword',
374 'il_meta_language',
375 'il_meta_lifecycle',
376 'il_meta_location',
377 'il_meta_meta_data',
378 'il_meta_relation',
379 'il_meta_requirement',
380 'il_meta_rights',
381 'il_meta_taxon',
382 'il_meta_taxon_path',
383 'il_meta_technical',
384 'il_meta_tar');
385
386 foreach ($tables as $table) {
387 $query = "DELETE FROM " . $table . " " .
388 "WHERE rbac_id = " . $ilDB->quote($this->getRBACId()) . " " .
389 "AND obj_id = " . $ilDB->quote($this->getObjId());
390
391 $this->db->query($query);
392 }
393
394 return true;
395 }
global $DIC
Definition: saml.php:7

References $DIC, $ilDB, $query, $table, ilMDBase\getObjId(), and ilMDBase\getRBACId().

+ Here is the call graph for this function:

◆ deleteAll() [2/3]

ilMD::deleteAll ( )

Definition at line 311 of file class.ilMD.php.

312 {
313 global $ilDB;
314
315 $tables = array('il_meta_annotation',
316 'il_meta_classification',
317 'il_meta_contribute',
318 'il_meta_description',
319 'il_meta_educational',
320 'il_meta_entity',
321 'il_meta_format',
322 'il_meta_general',
323 'il_meta_identifier',
324 'il_meta_identifier_',
325 'il_meta_keyword',
326 'il_meta_language',
327 'il_meta_lifecycle',
328 'il_meta_location',
329 'il_meta_meta_data',
330 'il_meta_relation',
331 'il_meta_requirement',
332 'il_meta_rights',
333 'il_meta_taxon',
334 'il_meta_taxon_path',
335 'il_meta_technical',
336 'il_meta_typical_age_range');
337
338 foreach ($tables as $table) {
339 $query = "DELETE FROM " . $table . " " .
340 "WHERE rbac_id = " . $ilDB->quote($this->getRBACId()) . " " .
341 "AND obj_id = " . $ilDB->quote($this->getObjId());
342 $res = $ilDB->query($query);
343 }
344
345 return true;
346 }

References $ilDB, $query, $res, $table, ilMDBase\getObjId(), and ilMDBase\getRBACId().

+ Here is the call graph for this function:

◆ deleteAll() [3/3]

ilMD::deleteAll ( )

Definition at line 347 of file class.ilMD.php.

348 {
349 global $DIC;
350
351 $ilDB = $DIC['ilDB'];
352
353 $tables = array('il_meta_annotation',
354 'il_meta_classification',
355 'il_meta_contribute',
356 'il_meta_description',
357 'il_meta_educational',
358 'il_meta_entity',
359 'il_meta_format',
360 'il_meta_general',
361 'il_meta_identifier',
362 'il_meta_identifier_',
363 'il_meta_keyword',
364 'il_meta_language',
365 'il_meta_lifecycle',
366 'il_meta_location',
367 'il_meta_meta_data',
368 'il_meta_relation',
369 'il_meta_requirement',
370 'il_meta_rights',
371 'il_meta_taxon',
372 'il_meta_taxon_path',
373 'il_meta_technical',
374 'il_meta_tar');
375
376 foreach ($tables as $table) {
377 $query = "DELETE FROM " . $table . " " .
378 "WHERE rbac_id = " . $ilDB->quote($this->getRBACId()) . " " .
379 "AND obj_id = " . $ilDB->quote($this->getObjId());
380
381 $this->db->query($query);
382 }
383
384 return true;
385 }

References $DIC, $ilDB, $query, $table, ilMDBase\getObjId(), and ilMDBase\getRBACId().

+ Here is the call graph for this function:

◆ getAnnotation() [1/3]

& ilMD::getAnnotation (   $a_annotation_id)

Definition at line 201 of file class.ilMD.php.

202 {
203 if (!$a_annotation_id) {
204 return false;
205 }
206 include_once 'Services/MetaData/classes/class.ilMDAnnotation.php';
207
208 $ann = new ilMDAnnotation();
209 $ann->setMetaId($a_annotation_id);
210
211 return $ann;
212 }

Referenced by toXML().

+ Here is the caller graph for this function:

◆ getAnnotation() [2/3]

& ilMD::getAnnotation (   $a_annotation_id)

Definition at line 202 of file class.ilMD.php.

203 {
204 if (!$a_annotation_id) {
205 return false;
206 }
207 include_once 'Services/Migration/DBUpdate_426/classes/class.ilMDAnnotation.php';
208
209 $ann = new ilMDAnnotation();
210 $ann->setMetaId($a_annotation_id);
211
212 return $ann;
213 }

◆ getAnnotation() [3/3]

& ilMD::getAnnotation (   $a_annotation_id)

Definition at line 201 of file class.ilMD.php.

202 {
203 if (!$a_annotation_id) {
204 return false;
205 }
206 include_once 'Services/Migration/DBUpdate_5295/classes/class.ilMDAnnotation.php';
207
208 $ann = new ilMDAnnotation();
209 $ann->setMetaId($a_annotation_id);
210
211 return $ann;
212 }

◆ getAnnotationIds() [1/3]

& ilMD::getAnnotationIds ( )

Definition at line 195 of file class.ilMD.php.

196 {
197 include_once 'Services/MetaData/classes/class.ilMDAnnotation.php';
198
199 return ilMDAnnotation::_getIds($this->getRBACId(), $this->getObjId());
200 }
static _getIds($a_rbac_id, $a_obj_id)

References ilMDAnnotation\_getIds(), ilMDBase\getObjId(), and ilMDBase\getRBACId().

Referenced by toXML().

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ getAnnotationIds() [2/3]

& ilMD::getAnnotationIds ( )

Definition at line 196 of file class.ilMD.php.

197 {
198 include_once 'Services/Migration/DBUpdate_426/classes/class.ilMDAnnotation.php';
199
200 return ilMDAnnotation::_getIds($this->getRBACId(), $this->getObjId());
201 }

References ilMDAnnotation\_getIds(), ilMDBase\getObjId(), and ilMDBase\getRBACId().

+ Here is the call graph for this function:

◆ getAnnotationIds() [3/3]

& ilMD::getAnnotationIds ( )

Definition at line 195 of file class.ilMD.php.

196 {
197 include_once 'Services/Migration/DBUpdate_5295/classes/class.ilMDAnnotation.php';
198
199 return ilMDAnnotation::_getIds($this->getRBACId(), $this->getObjId());
200 }

References ilMDAnnotation\_getIds(), ilMDBase\getObjId(), and ilMDBase\getRBACId().

+ Here is the call graph for this function:

◆ getClassification() [1/3]

& ilMD::getClassification (   $a_classification_id)

Definition at line 228 of file class.ilMD.php.

229 {
230 if (!$a_classification_id) {
231 return false;
232 }
233
234 include_once 'Services/MetaData/classes/class.ilMDClassification.php';
235
236 $cla = new ilMDClassification();
237 $cla->setMetaId($a_classification_id);
238
239 return $cla;
240 }

Referenced by toXML().

+ Here is the caller graph for this function:

◆ getClassification() [2/3]

& ilMD::getClassification (   $a_classification_id)

Definition at line 229 of file class.ilMD.php.

230 {
231 if (!$a_classification_id) {
232 return false;
233 }
234
235 include_once 'Services/Migration/DBUpdate_426/classes/class.ilMDClassification.php';
236
237 $cla = new ilMDClassification();
238 $cla->setMetaId($a_classification_id);
239
240 return $cla;
241 }

◆ getClassification() [3/3]

& ilMD::getClassification (   $a_classification_id)

Definition at line 228 of file class.ilMD.php.

229 {
230 if (!$a_classification_id) {
231 return false;
232 }
233
234 include_once 'Services/Migration/DBUpdate_5295/classes/class.ilMDClassification.php';
235
236 $cla = new ilMDClassification();
237 $cla->setMetaId($a_classification_id);
238
239 return $cla;
240 }

◆ getClassificationIds() [1/3]

& ilMD::getClassificationIds ( )

Definition at line 222 of file class.ilMD.php.

223 {
224 include_once 'Services/MetaData/classes/class.ilMDClassification.php';
225
226 return ilMDClassification::_getIds($this->getRBACId(), $this->getObjId());
227 }
static _getIds($a_rbac_id, $a_obj_id)

References ilMDClassification\_getIds(), ilMDBase\getObjId(), and ilMDBase\getRBACId().

Referenced by toXML().

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ getClassificationIds() [2/3]

& ilMD::getClassificationIds ( )

Definition at line 223 of file class.ilMD.php.

224 {
225 include_once 'Services/Migration/DBUpdate_426/classes/class.ilMDClassification.php';
226
227 return ilMDClassification::_getIds($this->getRBACId(), $this->getObjId());
228 }

References ilMDClassification\_getIds(), ilMDBase\getObjId(), and ilMDBase\getRBACId().

+ Here is the call graph for this function:

◆ getClassificationIds() [3/3]

& ilMD::getClassificationIds ( )

Definition at line 222 of file class.ilMD.php.

223 {
224 include_once 'Services/Migration/DBUpdate_5295/classes/class.ilMDClassification.php';
225
226 return ilMDClassification::_getIds($this->getRBACId(), $this->getObjId());
227 }

References ilMDClassification\_getIds(), ilMDBase\getObjId(), and ilMDBase\getRBACId().

+ Here is the call graph for this function:

◆ getEducational() [1/3]

& ilMD::getEducational ( )

Definition at line 125 of file class.ilMD.php.

126 {
127 include_once 'Services/MetaData/classes/class.ilMDEducational.php';
128
129 if ($id = ilMDEducational::_getId($this->getRBACId(), $this->getObjId())) {
130 $edu = new ilMDEducational();
131 $edu->setMetaId($id);
132
133 return $edu;
134 }
135 return false;
136 }
static _getId($a_rbac_id, $a_obj_id)
if(!array_key_exists('StateId', $_REQUEST)) $id

References $id, ilMDEducational\_getId(), ilMDBase\getObjId(), and ilMDBase\getRBACId().

Referenced by toXML().

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ getEducational() [2/3]

& ilMD::getEducational ( )

Definition at line 126 of file class.ilMD.php.

127 {
128 include_once 'Services/Migration/DBUpdate_426/classes/class.ilMDEducational.php';
129
130 if ($id = ilMDEducational::_getId($this->getRBACId(), $this->getObjId())) {
131 $edu = new ilMDEducational();
132 $edu->setMetaId($id);
133
134 return $edu;
135 }
136 return false;
137 }

References $id, ilMDEducational\_getId(), ilMDBase\getObjId(), and ilMDBase\getRBACId().

+ Here is the call graph for this function:

◆ getEducational() [3/3]

& ilMD::getEducational ( )

Definition at line 125 of file class.ilMD.php.

126 {
127 include_once 'Services/Migration/DBUpdate_5295/classes/class.ilMDEducational.php';
128
129 if ($id = ilMDEducational::_getId($this->getRBACId(), $this->getObjId())) {
130 $edu = new ilMDEducational();
131 $edu->setMetaId($id);
132
133 return $edu;
134 }
135 return false;
136 }

References $id, ilMDEducational\_getId(), ilMDBase\getObjId(), and ilMDBase\getRBACId().

+ Here is the call graph for this function:

◆ getGeneral() [1/3]

& ilMD::getGeneral ( )

Definition at line 40 of file class.ilMD.php.

41 {
42 include_once 'Services/MetaData/classes/class.ilMDGeneral.php';
43
44 if ($id = ilMDGeneral::_getId($this->getRBACId(), $this->getObjId())) {
45 $gen = new ilMDGeneral();
46 $gen->setMetaId($id);
47
48 return $gen;
49 }
50 return false;
51 }
static _getId($a_rbac_id, $a_obj_id)

References $id, ilMDGeneral\_getId(), ilMDBase\getObjId(), and ilMDBase\getRBACId().

Referenced by toXML().

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ getGeneral() [2/3]

& ilMD::getGeneral ( )

Definition at line 41 of file class.ilMD.php.

42 {
43 include_once 'Services/Migration/DBUpdate_426/classes/class.ilMDGeneral.php';
44
45 if ($id = ilMDGeneral::_getId($this->getRBACId(), $this->getObjId())) {
46 $gen = new ilMDGeneral();
47 $gen->setMetaId($id);
48
49 return $gen;
50 }
51 return false;
52 }

References $id, ilMDGeneral\_getId(), ilMDBase\getObjId(), and ilMDBase\getRBACId().

+ Here is the call graph for this function:

◆ getGeneral() [3/3]

& ilMD::getGeneral ( )

Definition at line 40 of file class.ilMD.php.

41 {
42 include_once 'Services/Migration/DBUpdate_5295/classes/class.ilMDGeneral.php';
43
44 if ($id = ilMDGeneral::_getId($this->getRBACId(), $this->getObjId())) {
45 $gen = new ilMDGeneral();
46 $gen->setMetaId($id);
47
48 return $gen;
49 }
50 return false;
51 }

References $id, ilMDGeneral\_getId(), ilMDBase\getObjId(), and ilMDBase\getRBACId().

+ Here is the call graph for this function:

◆ getLifecycle() [1/3]

& ilMD::getLifecycle ( )

Definition at line 62 of file class.ilMD.php.

63 {
64 include_once 'Services/MetaData/classes/class.ilMDLifecycle.php';
65
66 if ($id = ilMDLifecycle::_getId($this->getRBACId(), $this->getObjId())) {
67 $lif = new ilMDLifecycle();
68 $lif->setMetaId($id);
69
70 return $lif;
71 }
72 return false;
73 }
static _getId($a_rbac_id, $a_obj_id)

References $id, ilMDLifecycle\_getId(), ilMDBase\getObjId(), and ilMDBase\getRBACId().

Referenced by toXML().

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ getLifecycle() [2/3]

& ilMD::getLifecycle ( )

Definition at line 63 of file class.ilMD.php.

64 {
65 include_once 'Services/Migration/DBUpdate_426/classes/class.ilMDLifecycle.php';
66
67 if ($id = ilMDLifecycle::_getId($this->getRBACId(), $this->getObjId())) {
68 $lif = new ilMDLifecycle();
69 $lif->setMetaId($id);
70
71 return $lif;
72 }
73 return false;
74 }

References $id, ilMDLifecycle\_getId(), ilMDBase\getObjId(), and ilMDBase\getRBACId().

+ Here is the call graph for this function:

◆ getLifecycle() [3/3]

& ilMD::getLifecycle ( )

Definition at line 62 of file class.ilMD.php.

63 {
64 include_once 'Services/Migration/DBUpdate_5295/classes/class.ilMDLifecycle.php';
65
66 if ($id = ilMDLifecycle::_getId($this->getRBACId(), $this->getObjId())) {
67 $lif = new ilMDLifecycle();
68 $lif->setMetaId($id);
69
70 return $lif;
71 }
72 return false;
73 }

References $id, ilMDLifecycle\_getId(), ilMDBase\getObjId(), and ilMDBase\getRBACId().

+ Here is the call graph for this function:

◆ getMetaMetadata() [1/3]

& ilMD::getMetaMetadata ( )

Definition at line 83 of file class.ilMD.php.

84 {
85 include_once 'Services/MetaData/classes/class.ilMDMetaMetadata.php';
86
87 if ($id = ilMDMetaMetadata::_getId($this->getRBACId(), $this->getObjId())) {
88 $met = new ilMDMetaMetadata();
89 $met->setMetaId($id);
90
91 return $met;
92 }
93 return false;
94 }
static _getId($a_rbac_id, $a_obj_id)

References $id, ilMDMetaMetadata\_getId(), ilMDBase\getObjId(), and ilMDBase\getRBACId().

Referenced by toXML().

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ getMetaMetadata() [2/3]

& ilMD::getMetaMetadata ( )

Definition at line 84 of file class.ilMD.php.

85 {
86 include_once 'Services/Migration/DBUpdate_426/classes/class.ilMDMetaMetadata.php';
87
88 if ($id = ilMDMetaMetadata::_getId($this->getRBACId(), $this->getObjId())) {
89 $met = new ilMDMetaMetadata();
90 $met->setMetaId($id);
91
92 return $met;
93 }
94 return false;
95 }

References $id, ilMDMetaMetadata\_getId(), ilMDBase\getObjId(), and ilMDBase\getRBACId().

+ Here is the call graph for this function:

◆ getMetaMetadata() [3/3]

& ilMD::getMetaMetadata ( )

Definition at line 83 of file class.ilMD.php.

84 {
85 include_once 'Services/Migration/DBUpdate_5295/classes/class.ilMDMetaMetadata.php';
86
87 if ($id = ilMDMetaMetadata::_getId($this->getRBACId(), $this->getObjId())) {
88 $met = new ilMDMetaMetadata();
89 $met->setMetaId($id);
90
91 return $met;
92 }
93 return false;
94 }

References $id, ilMDMetaMetadata\_getId(), ilMDBase\getObjId(), and ilMDBase\getRBACId().

+ Here is the call graph for this function:

◆ getRelation() [1/3]

& ilMD::getRelation (   $a_relation_id)

Definition at line 172 of file class.ilMD.php.

173 {
174 include_once 'Services/MetaData/classes/class.ilMDRelation.php';
175
176 if (!$a_relation_id) {
177 return false;
178 }
179
180 $rel = new ilMDRelation();
181 $rel->setMetaId($a_relation_id);
182
183 return $rel;
184 }

Referenced by toXML().

+ Here is the caller graph for this function:

◆ getRelation() [2/3]

& ilMD::getRelation (   $a_relation_id)

Definition at line 173 of file class.ilMD.php.

174 {
175 include_once 'Services/Migration/DBUpdate_426/classes/class.ilMDRelation.php';
176
177 if (!$a_relation_id) {
178 return false;
179 }
180
181 $rel = new ilMDRelation();
182 $rel->setMetaId($a_relation_id);
183
184 return $rel;
185 }

◆ getRelation() [3/3]

& ilMD::getRelation (   $a_relation_id)

Definition at line 172 of file class.ilMD.php.

173 {
174 include_once 'Services/Migration/DBUpdate_5295/classes/class.ilMDRelation.php';
175
176 if (!$a_relation_id) {
177 return false;
178 }
179
180 $rel = new ilMDRelation();
181 $rel->setMetaId($a_relation_id);
182
183 return $rel;
184 }

◆ getRelationIds() [1/3]

& ilMD::getRelationIds ( )

Definition at line 166 of file class.ilMD.php.

167 {
168 include_once 'Services/MetaData/classes/class.ilMDRelation.php';
169
170 return ilMDRelation::_getIds($this->getRBACId(), $this->getObjId());
171 }
static _getIds($a_rbac_id, $a_obj_id)

References ilMDRelation\_getIds(), ilMDBase\getObjId(), and ilMDBase\getRBACId().

Referenced by toXML().

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ getRelationIds() [2/3]

& ilMD::getRelationIds ( )

Definition at line 167 of file class.ilMD.php.

168 {
169 include_once 'Services/Migration/DBUpdate_426/classes/class.ilMDRelation.php';
170
171 return ilMDRelation::_getIds($this->getRBACId(), $this->getObjId());
172 }

References ilMDRelation\_getIds(), ilMDBase\getObjId(), and ilMDBase\getRBACId().

+ Here is the call graph for this function:

◆ getRelationIds() [3/3]

& ilMD::getRelationIds ( )

Definition at line 166 of file class.ilMD.php.

167 {
168 include_once 'Services/Migration/DBUpdate_5295/classes/class.ilMDRelation.php';
169
170 return ilMDRelation::_getIds($this->getRBACId(), $this->getObjId());
171 }

References ilMDRelation\_getIds(), ilMDBase\getObjId(), and ilMDBase\getRBACId().

+ Here is the call graph for this function:

◆ getRights() [1/3]

& ilMD::getRights ( )

Definition at line 145 of file class.ilMD.php.

146 {
147 include_once 'Services/MetaData/classes/class.ilMDRights.php';
148
149 if ($id = ilMDRights::_getId($this->getRBACId(), $this->getObjId())) {
150 $rig = new ilMDRights();
151 $rig->setMetaId($id);
152
153 return $rig;
154 }
155 return false;
156 }
static _getId($a_rbac_id, $a_obj_id)

References $id, ilMDRights\_getId(), ilMDBase\getObjId(), and ilMDBase\getRBACId().

Referenced by toXML().

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ getRights() [2/3]

& ilMD::getRights ( )

Definition at line 146 of file class.ilMD.php.

147 {
148 include_once 'Services/Migration/DBUpdate_426/classes/class.ilMDRights.php';
149
150 if ($id = ilMDRights::_getId($this->getRBACId(), $this->getObjId())) {
151 $rig = new ilMDRights();
152 $rig->setMetaId($id);
153
154 return $rig;
155 }
156 return false;
157 }

References $id, ilMDRights\_getId(), ilMDBase\getObjId(), and ilMDBase\getRBACId().

+ Here is the call graph for this function:

◆ getRights() [3/3]

& ilMD::getRights ( )

Definition at line 145 of file class.ilMD.php.

146 {
147 include_once 'Services/Migration/DBUpdate_5295/classes/class.ilMDRights.php';
148
149 if ($id = ilMDRights::_getId($this->getRBACId(), $this->getObjId())) {
150 $rig = new ilMDRights();
151 $rig->setMetaId($id);
152
153 return $rig;
154 }
155 return false;
156 }

References $id, ilMDRights\_getId(), ilMDBase\getObjId(), and ilMDBase\getRBACId().

+ Here is the call graph for this function:

◆ getTechnical() [1/3]

& ilMD::getTechnical ( )

Definition at line 104 of file class.ilMD.php.

105 {
106 include_once 'Services/MetaData/classes/class.ilMDTechnical.php';
107
108 if ($id = ilMDTechnical::_getId($this->getRBACId(), $this->getObjId())) {
109 $tec = new ilMDTechnical();
110 $tec->setMetaId($id);
111
112 return $tec;
113 }
114 return false;
115 }
static _getId($a_rbac_id, $a_obj_id)

References $id, ilMDTechnical\_getId(), ilMDBase\getObjId(), and ilMDBase\getRBACId().

Referenced by toXML().

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ getTechnical() [2/3]

& ilMD::getTechnical ( )

Definition at line 105 of file class.ilMD.php.

106 {
107 include_once 'Services/Migration/DBUpdate_426/classes/class.ilMDTechnical.php';
108
109 if ($id = ilMDTechnical::_getId($this->getRBACId(), $this->getObjId())) {
110 $tec = new ilMDTechnical();
111 $tec->setMetaId($id);
112
113 return $tec;
114 }
115 return false;
116 }

References $id, ilMDTechnical\_getId(), ilMDBase\getObjId(), and ilMDBase\getRBACId().

+ Here is the call graph for this function:

◆ getTechnical() [3/3]

& ilMD::getTechnical ( )

Definition at line 104 of file class.ilMD.php.

105 {
106 include_once 'Services/Migration/DBUpdate_5295/classes/class.ilMDTechnical.php';
107
108 if ($id = ilMDTechnical::_getId($this->getRBACId(), $this->getObjId())) {
109 $tec = new ilMDTechnical();
110 $tec->setMetaId($id);
111
112 return $tec;
113 }
114 return false;
115 }

References $id, ilMDTechnical\_getId(), ilMDBase\getObjId(), and ilMDBase\getRBACId().

+ Here is the call graph for this function:

◆ toXML() [1/3]

ilMD::toXML ( $writer)

Reimplemented from ilMDBase.

Definition at line 255 of file class.ilMD.php.

256 {
257 $writer->xmlStartTag('MetaData');
258
259 // General
260 if (is_object($gen = &$this->getGeneral())) {
261 $gen->setExportMode($this->getExportMode());
262 $gen->toXML($writer);
263 } else {
264 // Defaults
265 include_once 'Services/MetaData/classes/class.ilMDGeneral.php';
266 $gen = new ilMDGeneral($this->getRBACId(), $this->getObjId(), $this->getObjType()); // added type, alex, 31 Oct 2007
267 $gen->setExportMode($this->getExportMode());
268 $gen->toXML($writer);
269 }
270
271
272 // Lifecycle
273 if (is_object($lif = &$this->getLifecycle())) {
274 $lif->toXML($writer);
275 }
276
277 // Meta-Metadata
278 if (is_object($met = &$this->getMetaMetadata())) {
279 $met->toXML($writer);
280 }
281
282 // Technical
283 if (is_object($tec = &$this->getTechnical())) {
284 $tec->toXML($writer);
285 }
286
287 // Educational
288 if (is_object($edu = &$this->getEducational())) {
289 $edu->toXML($writer);
290 }
291
292 // Rights
293 if (is_object($rig = &$this->getRights())) {
294 $rig->toXML($writer);
295 }
296
297 // Relations
298 foreach ($this->getRelationIds() as $id) {
299 $rel = &$this->getRelation($id);
300 $rel->toXML($writer);
301 }
302
303 // Annotations
304 foreach ($this->getAnnotationIds() as $id) {
305 $ann = &$this->getAnnotation($id);
306 $ann->toXML($writer);
307 }
308
309 // Classification
310 foreach ($this->getClassificationIds() as $id) {
311 $cla = &$this->getClassification($id);
312 $cla->toXML($writer);
313 }
314
315 $writer->xmlEndTag('MetaData');
316 }
& getLifecycle()
Definition: class.ilMD.php:62
& getAnnotationIds()
Definition: class.ilMD.php:195
& getRelationIds()
Definition: class.ilMD.php:166
& getClassificationIds()
Definition: class.ilMD.php:222
& getGeneral()
Definition: class.ilMD.php:40
& getClassification($a_classification_id)
Definition: class.ilMD.php:228
& getEducational()
Definition: class.ilMD.php:125
& getRights()
Definition: class.ilMD.php:145
& getTechnical()
Definition: class.ilMD.php:104
& getMetaMetadata()
Definition: class.ilMD.php:83
& getRelation($a_relation_id)
Definition: class.ilMD.php:172
& getAnnotation($a_annotation_id)
Definition: class.ilMD.php:201

References $id, getAnnotation(), getAnnotationIds(), getClassification(), getClassificationIds(), getEducational(), ilMDBase\getExportMode(), getGeneral(), getLifecycle(), getMetaMetadata(), ilMDBase\getObjId(), ilMDBase\getObjType(), ilMDBase\getRBACId(), getRelation(), getRelationIds(), getRights(), and getTechnical().

+ Here is the call graph for this function:

◆ toXML() [2/3]

ilMD::toXML ( $writer)

Reimplemented from ilMDBase.

Definition at line 256 of file class.ilMD.php.

257 {
258 $writer->xmlStartTag('Migration/DBUpdate_426');
259
260 // General
261 if (is_object($gen = &$this->getGeneral())) {
262 $gen->toXML($writer);
263 }
264
265 // Lifecycle
266 if (is_object($lif = &$this->getLifecycle())) {
267 $lif->toXML($writer);
268 }
269
270 // Meta-Metadata
271 if (is_object($met = &$this->getMetaMetadata())) {
272 $met->toXML($writer);
273 }
274
275 // Technical
276 if (is_object($tec = &$this->getTechnical())) {
277 $tec->toXML($writer);
278 }
279
280 // Educational
281 if (is_object($edu = &$this->getEducational())) {
282 $edu->toXML($writer);
283 }
284
285 // Rights
286 if (is_object($rig = &$this->getRights())) {
287 $rig->toXML($writer);
288 }
289
290 // Relations
291 foreach ($this->getRelationIds() as $id) {
292 $rel = &$this->getRelation($id);
293 $rel->toXML($writer);
294 }
295
296 // Annotations
297 foreach ($this->getAnnotationIds() as $id) {
298 $ann = &$this->getAnnotation($id);
299 $ann->toXML($writer);
300 }
301
302 // Classification
303 foreach ($this->getClassificationIds() as $id) {
304 $cla = &$this->getClassification($id);
305 $cla->toXML($writer);
306 }
307
308 $writer->xmlEndTag('Migration/DBUpdate_426');
309 }

References $id, getAnnotation(), getAnnotationIds(), getClassification(), getClassificationIds(), getEducational(), getGeneral(), getLifecycle(), getMetaMetadata(), getRelation(), getRelationIds(), getRights(), and getTechnical().

+ Here is the call graph for this function:

◆ toXML() [3/3]

ilMD::toXML ( $writer)

Reimplemented from ilMDBase.

Definition at line 255 of file class.ilMD.php.

256 {
257 $writer->xmlStartTag('MetaData');
258
259 // General
260 if (is_object($gen = &$this->getGeneral())) {
261 $gen->setExportMode($this->getExportMode());
262 $gen->toXML($writer);
263 } else {
264 // Defaults
265 include_once 'Services/Migration/DBUpdate_5295/classes/class.ilMDGeneral.php';
266 $gen = new ilMDGeneral($this->getRBACId(), $this->getObjId(), $this->getObjType()); // added type, alex, 31 Oct 2007
267 $gen->setExportMode($this->getExportMode());
268 $gen->toXML($writer);
269 }
270
271
272 // Lifecycle
273 if (is_object($lif = &$this->getLifecycle())) {
274 $lif->toXML($writer);
275 }
276
277 // Meta-Metadata
278 if (is_object($met = &$this->getMetaMetadata())) {
279 $met->toXML($writer);
280 }
281
282 // Technical
283 if (is_object($tec = &$this->getTechnical())) {
284 $tec->toXML($writer);
285 }
286
287 // Educational
288 if (is_object($edu = &$this->getEducational())) {
289 $edu->toXML($writer);
290 }
291
292 // Rights
293 if (is_object($rig = &$this->getRights())) {
294 $rig->toXML($writer);
295 }
296
297 // Relations
298 foreach ($this->getRelationIds() as $id) {
299 $rel = &$this->getRelation($id);
300 $rel->toXML($writer);
301 }
302
303 // Annotations
304 foreach ($this->getAnnotationIds() as $id) {
305 $ann = &$this->getAnnotation($id);
306 $ann->toXML($writer);
307 }
308
309 // Classification
310 foreach ($this->getClassificationIds() as $id) {
311 $cla = &$this->getClassification($id);
312 $cla->toXML($writer);
313 }
314
315 $writer->xmlEndTag('MetaData');
316 }

References $id, getAnnotation(), getAnnotationIds(), getClassification(), getClassificationIds(), getEducational(), ilMDBase\getExportMode(), getGeneral(), getLifecycle(), getMetaMetadata(), ilMDBase\getObjId(), ilMDBase\getObjType(), ilMDBase\getRBACId(), getRelation(), getRelationIds(), getRights(), and getTechnical().

+ Here is the call graph for this function:

The documentation for this class was generated from the following files: