ILIAS  release_5-2 Revision v5.2.25-18-g3f80b828510
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)
 
- 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)
 

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()

ilMD::_deleteAllByType (   $a_type)

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

367 {
368 global $ilDB;
369
370 $tables = array('il_meta_annotation',
371 'il_meta_classification',
372 'il_meta_contribute',
373 'il_meta_description',
374 'il_meta_educational',
375 'il_meta_entity',
376 'il_meta_format',
377 'il_meta_general',
378 'il_meta_identifier',
379 'il_meta_identifier_',
380 'il_meta_keyword',
381 'il_meta_language',
382 'il_meta_lifecycle',
383 'il_meta_location',
384 'il_meta_meta_data',
385 'il_meta_relation',
386 'il_meta_requirement',
387 'il_meta_rights',
388 'il_meta_taxon',
389 'il_meta_taxon_path',
390 'il_meta_technical',
391 'il_meta_typical_age_range');
392
393 foreach($tables as $table)
394 {
395 $query = "DELETE FROM ".$table." ".
396 "WHERE obj_type = ".$ilDB->quote($a_type)." ";
397 $res = $ilDB->query($query);
398 }
399
400 return true;
401 }
global $ilDB
$a_type
Definition: workflow.php:93

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

◆ addAnnotation() [1/2]

& ilMD::addAnnotation ( )

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

222 {
223 include_once 'Services/MetaData/classes/class.ilMDAnnotation.php';
224
225 $ann = new ilMDAnnotation($this->getRBACId(),$this->getObjId(),$this->getObjType());
226
227 return $ann;
228 }

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

+ Here is the call graph for this function:

◆ addAnnotation() [2/2]

& ilMD::addAnnotation ( )

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

223 {
224 include_once 'Services/Migration/DBUpdate_426/classes/class.ilMDAnnotation.php';
225
226 $ann = new ilMDAnnotation($this->getRBACId(),$this->getObjId(),$this->getObjType());
227
228 return $ann;
229 }

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

+ Here is the call graph for this function:

◆ addClassification() [1/2]

& ilMD::addClassification ( )

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

251 {
252 include_once 'Services/MetaData/classes/class.ilMDClassification.php';
253
254 $cla = new ilMDClassification($this->getRBACId(),$this->getObjId(),$this->getObjType());
255
256 return $cla;
257 }

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

+ Here is the call graph for this function:

◆ addClassification() [2/2]

& ilMD::addClassification ( )

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

252 {
253 include_once 'Services/Migration/DBUpdate_426/classes/class.ilMDClassification.php';
254
255 $cla = new ilMDClassification($this->getRBACId(),$this->getObjId(),$this->getObjType());
256
257 return $cla;
258 }

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

+ Here is the call graph for this function:

◆ addEducational() [1/2]

& ilMD::addEducational ( )

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

143 {
144 include_once 'Services/MetaData/classes/class.ilMDEducational.php';
145
146 $edu = new ilMDEducational($this->getRBACId(),$this->getObjId(),$this->getObjType());
147
148 return $edu;
149 }

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

+ Here is the call graph for this function:

◆ addEducational() [2/2]

& ilMD::addEducational ( )

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

144 {
145 include_once 'Services/Migration/DBUpdate_426/classes/class.ilMDEducational.php';
146
147 $edu = new ilMDEducational($this->getRBACId(),$this->getObjId(),$this->getObjType());
148
149 return $edu;
150 }

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

+ Here is the call graph for this function:

◆ addGeneral() [1/2]

& ilMD::addGeneral ( )

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

54 {
55 include_once 'Services/MetaData/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() [2/2]

& ilMD::addGeneral ( )

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

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

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

+ Here is the call graph for this function:

◆ addLifecycle() [1/2]

& ilMD::addLifecycle ( )

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

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

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

+ Here is the call graph for this function:

◆ addLifecycle() [2/2]

& ilMD::addLifecycle ( )

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

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

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

+ Here is the call graph for this function:

◆ addMetaMetadata() [1/2]

& ilMD::addMetaMetadata ( )

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

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

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

+ Here is the call graph for this function:

◆ addMetaMetadata() [2/2]

& ilMD::addMetaMetadata ( )

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

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

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

+ Here is the call graph for this function:

◆ addRelation() [1/2]

& ilMD::addRelation ( )

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

193 {
194 include_once 'Services/MetaData/classes/class.ilMDRelation.php';
195
196 $rel = new ilMDRelation($this->getRBACId(),$this->getObjId(),$this->getObjType());
197
198 return $rel;
199 }

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

+ Here is the call graph for this function:

◆ addRelation() [2/2]

& ilMD::addRelation ( )

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

194 {
195 include_once 'Services/Migration/DBUpdate_426/classes/class.ilMDRelation.php';
196
197 $rel = new ilMDRelation($this->getRBACId(),$this->getObjId(),$this->getObjType());
198
199 return $rel;
200 }

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

+ Here is the call graph for this function:

◆ addRights() [1/2]

& ilMD::addRights ( )

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

164 {
165 include_once 'Services/MetaData/classes/class.ilMDRights.php';
166
167 $rig = new ilMDRights($this->getRBACId(),$this->getObjId(),$this->getObjType());
168
169 return $rig;
170 }

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

+ Here is the call graph for this function:

◆ addRights() [2/2]

& ilMD::addRights ( )

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

165 {
166 include_once 'Services/Migration/DBUpdate_426/classes/class.ilMDRights.php';
167
168 $rig = new ilMDRights($this->getRBACId(),$this->getObjId(),$this->getObjType());
169
170 return $rig;
171 }

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

+ Here is the call graph for this function:

◆ addTechnical() [1/2]

& ilMD::addTechnical ( )

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

121 {
122 include_once 'Services/MetaData/classes/class.ilMDTechnical.php';
123
124 $tec = new ilMDTechnical($this->getRBACId(),$this->getObjId(),$this->getObjType());
125
126 return $tec;
127 }

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

+ Here is the call graph for this function:

◆ addTechnical() [2/2]

& ilMD::addTechnical ( )

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

122 {
123 include_once 'Services/Migration/DBUpdate_426/classes/class.ilMDTechnical.php';
124
125 $tec = new ilMDTechnical($this->getRBACId(),$this->getObjId(),$this->getObjType());
126
127 return $tec;
128 }

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

+ Here is the call graph for this function:

◆ cloneMD()

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

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

347 {
348 include_once 'Services/MetaData/classes/class.ilMD2XML.php';
349
350 // this method makes an xml export of the original meta data set
351 // and uses this xml string to clone the object
352 $md2xml = new ilMD2XML($this->getRBACId(),$this->getObjId(),$this->getObjType());
353 $md2xml->startExport();
354
355 // Create copier instance. For pg objects one could instantiate a ilMDXMLPageCopier class
356 switch($a_obj_type)
357 {
358 default:
359 include_once 'Services/MetaData/classes/class.ilMDXMLCopier.php';
360 $mdxmlcopier = new ilMDXMLCopier($md2xml->getXML(),$a_rbac_id,$a_obj_id,$a_obj_type);
361 break;
362 }
363 $mdxmlcopier->startParsing();
364
365 return $mdxmlcopier->getMDObject();
366 }

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

+ Here is the call graph for this function:

◆ deleteAll() [1/2]

ilMD::deleteAll ( )

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

369 {
370 global $ilDB;
371
372 $tables = array('il_meta_annotation',
373 'il_meta_classification',
374 'il_meta_contribute',
375 'il_meta_description',
376 'il_meta_educational',
377 'il_meta_entity',
378 'il_meta_format',
379 'il_meta_general',
380 'il_meta_identifier',
381 'il_meta_identifier_',
382 'il_meta_keyword',
383 'il_meta_language',
384 'il_meta_lifecycle',
385 'il_meta_location',
386 'il_meta_meta_data',
387 'il_meta_relation',
388 'il_meta_requirement',
389 'il_meta_rights',
390 'il_meta_taxon',
391 'il_meta_taxon_path',
392 'il_meta_technical',
393 'il_meta_tar');
394
395 foreach($tables as $table)
396 {
397 $query = "DELETE FROM ".$table." ".
398 "WHERE rbac_id = ".$ilDB->quote($this->getRBACId())." ".
399 "AND obj_id = ".$ilDB->quote($this->getObjId());
400
401 $this->db->query($query);
402 }
403
404 return true;
405 }

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

+ Here is the call graph for this function:

◆ deleteAll() [2/2]

ilMD::deleteAll ( )

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

330 {
331 global $ilDB;
332
333 $tables = array('il_meta_annotation',
334 'il_meta_classification',
335 'il_meta_contribute',
336 'il_meta_description',
337 'il_meta_educational',
338 'il_meta_entity',
339 'il_meta_format',
340 'il_meta_general',
341 'il_meta_identifier',
342 'il_meta_identifier_',
343 'il_meta_keyword',
344 'il_meta_language',
345 'il_meta_lifecycle',
346 'il_meta_location',
347 'il_meta_meta_data',
348 'il_meta_relation',
349 'il_meta_requirement',
350 'il_meta_rights',
351 'il_meta_taxon',
352 'il_meta_taxon_path',
353 'il_meta_technical',
354 'il_meta_typical_age_range');
355
356 foreach($tables as $table)
357 {
358 $query = "DELETE FROM ".$table." ".
359 "WHERE rbac_id = ".$ilDB->quote($this->getRBACId())." ".
360 "AND obj_id = ".$ilDB->quote($this->getObjId());
361 $res = $ilDB->query($query);
362 }
363
364 return true;
365 }

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

+ Here is the call graph for this function:

◆ getAnnotation() [1/2]

& ilMD::getAnnotation (   $a_annotation_id)

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

209 {
210 if(!$a_annotation_id)
211 {
212 return false;
213 }
214 include_once 'Services/MetaData/classes/class.ilMDAnnotation.php';
215
216 $ann = new ilMDAnnotation();
217 $ann->setMetaId($a_annotation_id);
218
219 return $ann;
220 }

Referenced by toXML().

+ Here is the caller graph for this function:

◆ getAnnotation() [2/2]

& ilMD::getAnnotation (   $a_annotation_id)

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

210 {
211 if(!$a_annotation_id)
212 {
213 return false;
214 }
215 include_once 'Services/Migration/DBUpdate_426/classes/class.ilMDAnnotation.php';
216
217 $ann = new ilMDAnnotation();
218 $ann->setMetaId($a_annotation_id);
219
220 return $ann;
221 }

◆ getAnnotationIds() [1/2]

& ilMD::getAnnotationIds ( )

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

203 {
204 include_once 'Services/MetaData/classes/class.ilMDAnnotation.php';
205
206 return ilMDAnnotation::_getIds($this->getRBACId(),$this->getObjId());
207 }
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/2]

& ilMD::getAnnotationIds ( )

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

204 {
205 include_once 'Services/Migration/DBUpdate_426/classes/class.ilMDAnnotation.php';
206
207 return ilMDAnnotation::_getIds($this->getRBACId(),$this->getObjId());
208 }

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

+ Here is the call graph for this function:

◆ getClassification() [1/2]

& ilMD::getClassification (   $a_classification_id)

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

237 {
238 if(!$a_classification_id)
239 {
240 return false;
241 }
242
243 include_once 'Services/MetaData/classes/class.ilMDClassification.php';
244
245 $cla = new ilMDClassification();
246 $cla->setMetaId($a_classification_id);
247
248 return $cla;
249 }

Referenced by toXML().

+ Here is the caller graph for this function:

◆ getClassification() [2/2]

& ilMD::getClassification (   $a_classification_id)

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

238 {
239 if(!$a_classification_id)
240 {
241 return false;
242 }
243
244 include_once 'Services/Migration/DBUpdate_426/classes/class.ilMDClassification.php';
245
246 $cla = new ilMDClassification();
247 $cla->setMetaId($a_classification_id);
248
249 return $cla;
250 }

◆ getClassificationIds() [1/2]

& ilMD::getClassificationIds ( )

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

231 {
232 include_once 'Services/MetaData/classes/class.ilMDClassification.php';
233
234 return ilMDClassification::_getIds($this->getRBACId(),$this->getObjId());
235 }
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/2]

& ilMD::getClassificationIds ( )

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

232 {
233 include_once 'Services/Migration/DBUpdate_426/classes/class.ilMDClassification.php';
234
235 return ilMDClassification::_getIds($this->getRBACId(),$this->getObjId());
236 }

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

+ Here is the call graph for this function:

◆ getEducational() [1/2]

& ilMD::getEducational ( )

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

130 {
131 include_once 'Services/MetaData/classes/class.ilMDEducational.php';
132
133 if($id = ilMDEducational::_getId($this->getRBACId(),$this->getObjId()))
134 {
135 $edu = new ilMDEducational();
136 $edu->setMetaId($id);
137
138 return $edu;
139 }
140 return false;
141 }
static _getId($a_rbac_id, $a_obj_id)

References 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/2]

& ilMD::getEducational ( )

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

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

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

+ Here is the call graph for this function:

◆ getGeneral() [1/2]

& 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 {
46 $gen = new ilMDGeneral();
47 $gen->setMetaId($id);
48
49 return $gen;
50 }
51 return false;
52 }
static _getId($a_rbac_id, $a_obj_id)

References 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/2]

& 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 {
47 $gen = new ilMDGeneral();
48 $gen->setMetaId($id);
49
50 return $gen;
51 }
52 return false;
53 }

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

+ Here is the call graph for this function:

◆ getLifecycle() [1/2]

& ilMD::getLifecycle ( )

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

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

References 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/2]

& ilMD::getLifecycle ( )

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

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

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

+ Here is the call graph for this function:

◆ getMetaMetadata() [1/2]

& ilMD::getMetaMetadata ( )

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

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

References 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/2]

& ilMD::getMetaMetadata ( )

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

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

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

+ Here is the call graph for this function:

◆ getRelation() [1/2]

& ilMD::getRelation (   $a_relation_id)

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

179 {
180 include_once 'Services/MetaData/classes/class.ilMDRelation.php';
181
182 if(!$a_relation_id)
183 {
184 return false;
185 }
186
187 $rel = new ilMDRelation();
188 $rel->setMetaId($a_relation_id);
189
190 return $rel;
191 }

Referenced by toXML().

+ Here is the caller graph for this function:

◆ getRelation() [2/2]

& ilMD::getRelation (   $a_relation_id)

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

180 {
181 include_once 'Services/Migration/DBUpdate_426/classes/class.ilMDRelation.php';
182
183 if(!$a_relation_id)
184 {
185 return false;
186 }
187
188 $rel = new ilMDRelation();
189 $rel->setMetaId($a_relation_id);
190
191 return $rel;
192 }

◆ getRelationIds() [1/2]

& ilMD::getRelationIds ( )

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

173 {
174 include_once 'Services/MetaData/classes/class.ilMDRelation.php';
175
176 return ilMDRelation::_getIds($this->getRBACId(),$this->getObjId());
177 }
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/2]

& ilMD::getRelationIds ( )

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

174 {
175 include_once 'Services/Migration/DBUpdate_426/classes/class.ilMDRelation.php';
176
177 return ilMDRelation::_getIds($this->getRBACId(),$this->getObjId());
178 }

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

+ Here is the call graph for this function:

◆ getRights() [1/2]

& ilMD::getRights ( )

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

151 {
152 include_once 'Services/MetaData/classes/class.ilMDRights.php';
153
154 if($id = ilMDRights::_getId($this->getRBACId(),$this->getObjId()))
155 {
156 $rig = new ilMDRights();
157 $rig->setMetaId($id);
158
159 return $rig;
160 }
161 return false;
162 }
static _getId($a_rbac_id, $a_obj_id)

References 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/2]

& ilMD::getRights ( )

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

152 {
153 include_once 'Services/Migration/DBUpdate_426/classes/class.ilMDRights.php';
154
155 if($id = ilMDRights::_getId($this->getRBACId(),$this->getObjId()))
156 {
157 $rig = new ilMDRights();
158 $rig->setMetaId($id);
159
160 return $rig;
161 }
162 return false;
163 }

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

+ Here is the call graph for this function:

◆ getTechnical() [1/2]

& ilMD::getTechnical ( )

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

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

References 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/2]

& ilMD::getTechnical ( )

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

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

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

+ Here is the call graph for this function:

◆ toXML() [1/2]

ilMD::toXML ( $writer)

Reimplemented from ilMDBase.

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

265 {
266 $writer->xmlStartTag('MetaData');
267
268 // General
269 if(is_object($gen =& $this->getGeneral()))
270 {
271 $gen->setExportMode($this->getExportMode());
272 $gen->toXML($writer);
273 }
274 else
275 {
276 // Defaults
277 include_once 'Services/MetaData/classes/class.ilMDGeneral.php';
278 $gen = new ilMDGeneral($this->getRBACId(),$this->getObjId(), $this->getObjType()); // added type, alex, 31 Oct 2007
279 $gen->setExportMode($this->getExportMode());
280 $gen->toXML($writer);
281 }
282
283
284 // Lifecycle
285 if(is_object($lif =& $this->getLifecycle()))
286 {
287 $lif->toXML($writer);
288 }
289
290 // Meta-Metadata
291 if(is_object($met =& $this->getMetaMetadata()))
292 {
293 $met->toXML($writer);
294 }
295
296 // Technical
297 if(is_object($tec =& $this->getTechnical()))
298 {
299 $tec->toXML($writer);
300 }
301
302 // Educational
303 if(is_object($edu =& $this->getEducational()))
304 {
305 $edu->toXML($writer);
306 }
307
308 // Rights
309 if(is_object($rig =& $this->getRights()))
310 {
311 $rig->toXML($writer);
312 }
313
314 // Relations
315 foreach($this->getRelationIds() as $id)
316 {
317 $rel =& $this->getRelation($id);
318 $rel->toXML($writer);
319 }
320
321 // Annotations
322 foreach($this->getAnnotationIds() as $id)
323 {
324 $ann =& $this->getAnnotation($id);
325 $ann->toXML($writer);
326 }
327
328 // Classification
329 foreach($this->getClassificationIds() as $id)
330 {
331 $cla =& $this->getClassification($id);
332 $cla->toXML($writer);
333 }
334
335 $writer->xmlEndTag('MetaData');
336 }
& getLifecycle()
Definition: class.ilMD.php:63
& getAnnotationIds()
Definition: class.ilMD.php:202
& getRelationIds()
Definition: class.ilMD.php:172
& getClassificationIds()
Definition: class.ilMD.php:230
& getGeneral()
Definition: class.ilMD.php:40
& getClassification($a_classification_id)
Definition: class.ilMD.php:236
& getEducational()
Definition: class.ilMD.php:129
& getRights()
Definition: class.ilMD.php:150
& getTechnical()
Definition: class.ilMD.php:107
& getMetaMetadata()
Definition: class.ilMD.php:85
& getRelation($a_relation_id)
Definition: class.ilMD.php:178
& getAnnotation($a_annotation_id)
Definition: class.ilMD.php:208

References 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/2]

ilMD::toXML ( $writer)

Reimplemented from ilMDBase.

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

266 {
267 $writer->xmlStartTag('Migration/DBUpdate_426');
268
269 // General
270 if(is_object($gen =& $this->getGeneral()))
271 {
272 $gen->toXML($writer);
273 }
274
275 // Lifecycle
276 if(is_object($lif =& $this->getLifecycle()))
277 {
278 $lif->toXML($writer);
279 }
280
281 // Meta-Metadata
282 if(is_object($met =& $this->getMetaMetadata()))
283 {
284 $met->toXML($writer);
285 }
286
287 // Technical
288 if(is_object($tec =& $this->getTechnical()))
289 {
290 $tec->toXML($writer);
291 }
292
293 // Educational
294 if(is_object($edu =& $this->getEducational()))
295 {
296 $edu->toXML($writer);
297 }
298
299 // Rights
300 if(is_object($rig =& $this->getRights()))
301 {
302 $rig->toXML($writer);
303 }
304
305 // Relations
306 foreach($this->getRelationIds() as $id)
307 {
308 $rel =& $this->getRelation($id);
309 $rel->toXML($writer);
310 }
311
312 // Annotations
313 foreach($this->getAnnotationIds() as $id)
314 {
315 $ann =& $this->getAnnotation($id);
316 $ann->toXML($writer);
317 }
318
319 // Classification
320 foreach($this->getClassificationIds() as $id)
321 {
322 $cla =& $this->getClassification($id);
323 $cla->toXML($writer);
324 }
325
326 $writer->xmlEndTag('Migration/DBUpdate_426');
327 }

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

+ Here is the call graph for this function:

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