ILIAS  release_5-0 Revision 5.0.0-1144-gc4397b1f870
All Data Structures Namespaces Files Functions Variables Modules Pages
ilMD Class Reference
+ Inheritance diagram for ilMD:
+ Collaboration diagram for ilMD:

Public Member Functions

 ilMD ($a_rbac_id, $a_obj_id, $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 ()
 
 ilMD ($a_rbac_id, $a_obj_id, $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)
 
 deleteAll ()
 
 _deleteAllByType ($a_type)
 
- Public Member Functions inherited from ilMDBase
 ilMDBase ($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)
 
 ilMDBase ($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
 

Detailed Description

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

Member Function Documentation

◆ _deleteAllByType()

ilMD::_deleteAllByType (   $a_type)

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

References $ilDB, $query, and $res.

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

◆ addAnnotation() [1/2]

& ilMD::addAnnotation ( )

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

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

228  {
229  include_once 'Services/Migration/DBUpdate_426/classes/class.ilMDAnnotation.php';
230 
231  $ann =& new ilMDAnnotation($this->getRBACId(),$this->getObjId(),$this->getObjType());
232 
233  return $ann;
234  }
+ Here is the call graph for this function:

◆ addAnnotation() [2/2]

& ilMD::addAnnotation ( )

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

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

237  {
238  include_once 'Services/MetaData/classes/class.ilMDAnnotation.php';
239 
240  $ann =& new ilMDAnnotation($this->getRBACId(),$this->getObjId(),$this->getObjType());
241 
242  return $ann;
243  }
+ Here is the call graph for this function:

◆ addClassification() [1/2]

& ilMD::addClassification ( )

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

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

257  {
258  include_once 'Services/Migration/DBUpdate_426/classes/class.ilMDClassification.php';
259 
260  $cla =& new ilMDClassification($this->getRBACId(),$this->getObjId(),$this->getObjType());
261 
262  return $cla;
263  }
+ Here is the call graph for this function:

◆ addClassification() [2/2]

& ilMD::addClassification ( )

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

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

266  {
267  include_once 'Services/MetaData/classes/class.ilMDClassification.php';
268 
269  $cla =& new ilMDClassification($this->getRBACId(),$this->getObjId(),$this->getObjType());
270 
271  return $cla;
272  }
+ Here is the call graph for this function:

◆ addEducational() [1/2]

& ilMD::addEducational ( )

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

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

149  {
150  include_once 'Services/Migration/DBUpdate_426/classes/class.ilMDEducational.php';
151 
152  $edu =& new ilMDEducational($this->getRBACId(),$this->getObjId(),$this->getObjType());
153 
154  return $edu;
155  }
+ Here is the call graph for this function:

◆ addEducational() [2/2]

& ilMD::addEducational ( )

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

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

158  {
159  include_once 'Services/MetaData/classes/class.ilMDEducational.php';
160 
161  $edu =& new ilMDEducational($this->getRBACId(),$this->getObjId(),$this->getObjType());
162 
163  return $edu;
164  }
+ Here is the call graph for this function:

◆ addGeneral() [1/2]

& ilMD::addGeneral ( )

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

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

60  {
61  include_once 'Services/Migration/DBUpdate_426/classes/class.ilMDGeneral.php';
62 
63  $gen =& new ilMDGeneral($this->getRBACId(),$this->getObjId(),$this->getObjType());
64 
65  return $gen;
66  }
+ Here is the call graph for this function:

◆ addGeneral() [2/2]

& ilMD::addGeneral ( )

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

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

69  {
70  include_once 'Services/MetaData/classes/class.ilMDGeneral.php';
71 
72  $gen =& new ilMDGeneral($this->getRBACId(),$this->getObjId(),$this->getObjType());
73 
74  return $gen;
75  }
+ Here is the call graph for this function:

◆ addLifecycle() [1/2]

& ilMD::addLifecycle ( )

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

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

83  {
84  include_once 'Services/Migration/DBUpdate_426/classes/class.ilMDLifecycle.php';
85 
86  $lif =& new ilMDLifecycle($this->getRBACId(),$this->getObjId(),$this->getObjType());
87 
88  return $lif;
89  }
+ Here is the call graph for this function:

◆ addLifecycle() [2/2]

& ilMD::addLifecycle ( )

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

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

92  {
93  include_once 'Services/MetaData/classes/class.ilMDLifecycle.php';
94 
95  $lif =& new ilMDLifecycle($this->getRBACId(),$this->getObjId(),$this->getObjType());
96 
97  return $lif;
98  }
+ Here is the call graph for this function:

◆ addMetaMetadata() [1/2]

& ilMD::addMetaMetadata ( )

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

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

105  {
106  include_once 'Services/Migration/DBUpdate_426/classes/class.ilMDMetaMetadata.php';
107 
108  $met =& new ilMDMetaMetadata($this->getRBACId(),$this->getObjId(),$this->getObjType());
109 
110  return $met;
111  }
+ Here is the call graph for this function:

◆ addMetaMetadata() [2/2]

& ilMD::addMetaMetadata ( )

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

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

114  {
115  include_once 'Services/MetaData/classes/class.ilMDMetaMetadata.php';
116 
117  $met =& new ilMDMetaMetadata($this->getRBACId(),$this->getObjId(),$this->getObjType());
118 
119  return $met;
120  }
+ Here is the call graph for this function:

◆ addRelation() [1/2]

& ilMD::addRelation ( )

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

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

199  {
200  include_once 'Services/Migration/DBUpdate_426/classes/class.ilMDRelation.php';
201 
202  $rel =& new ilMDRelation($this->getRBACId(),$this->getObjId(),$this->getObjType());
203 
204  return $rel;
205  }
+ Here is the call graph for this function:

◆ addRelation() [2/2]

& ilMD::addRelation ( )

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

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

208  {
209  include_once 'Services/MetaData/classes/class.ilMDRelation.php';
210 
211  $rel =& new ilMDRelation($this->getRBACId(),$this->getObjId(),$this->getObjType());
212 
213  return $rel;
214  }
+ Here is the call graph for this function:

◆ addRights() [1/2]

& ilMD::addRights ( )

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

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

170  {
171  include_once 'Services/Migration/DBUpdate_426/classes/class.ilMDRights.php';
172 
173  $rig =& new ilMDRights($this->getRBACId(),$this->getObjId(),$this->getObjType());
174 
175  return $rig;
176  }
+ Here is the call graph for this function:

◆ addRights() [2/2]

& ilMD::addRights ( )

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

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

179  {
180  include_once 'Services/MetaData/classes/class.ilMDRights.php';
181 
182  $rig =& new ilMDRights($this->getRBACId(),$this->getObjId(),$this->getObjType());
183 
184  return $rig;
185  }
+ Here is the call graph for this function:

◆ addTechnical() [1/2]

& ilMD::addTechnical ( )

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

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

127  {
128  include_once 'Services/Migration/DBUpdate_426/classes/class.ilMDTechnical.php';
129 
130  $tec =& new ilMDTechnical($this->getRBACId(),$this->getObjId(),$this->getObjType());
131 
132  return $tec;
133  }
+ Here is the call graph for this function:

◆ addTechnical() [2/2]

& ilMD::addTechnical ( )

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

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

136  {
137  include_once 'Services/MetaData/classes/class.ilMDTechnical.php';
138 
139  $tec =& new ilMDTechnical($this->getRBACId(),$this->getObjId(),$this->getObjType());
140 
141  return $tec;
142  }
+ Here is the call graph for this function:

◆ cloneMD()

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

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

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

Referenced by ilGlossaryTerm\_copyTerm(), ilLMPageObject\_splitPage(), ilLMObject\pasteTree(), and ilSCORM2004Node\pasteTree().

362  {
363  include_once 'Services/MetaData/classes/class.ilMD2XML.php';
364 
365  // this method makes an xml export of the original meta data set
366  // and uses this xml string to clone the object
367  $md2xml = new ilMD2XML($this->getRBACId(),$this->getObjId(),$this->getObjType());
368  $md2xml->startExport();
369 
370  // Create copier instance. For pg objects one could instantiate a ilMDXMLPageCopier class
371  switch($a_obj_type)
372  {
373  default:
374  include_once 'Services/MetaData/classes/class.ilMDXMLCopier.php';
375  $mdxmlcopier =& new ilMDXMLCopier($md2xml->getXML(),$a_rbac_id,$a_obj_id,$a_obj_type);
376  break;
377  }
378  $mdxmlcopier->startParsing();
379 
380  return $mdxmlcopier->getMDObject();
381  }
startParsing()
stores xml data in array
+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ deleteAll() [1/2]

ilMD::deleteAll ( )

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

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

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

◆ deleteAll() [2/2]

ilMD::deleteAll ( )

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

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

Referenced by ilSoapCourseAdministration\updateCourse().

384  {
385  global $ilDB;
386 
387  $tables = array('il_meta_annotation',
388  'il_meta_classification',
389  'il_meta_contribute',
390  'il_meta_description',
391  'il_meta_educational',
392  'il_meta_entity',
393  'il_meta_format',
394  'il_meta_general',
395  'il_meta_identifier',
396  'il_meta_identifier_',
397  'il_meta_keyword',
398  'il_meta_language',
399  'il_meta_lifecycle',
400  'il_meta_location',
401  'il_meta_meta_data',
402  'il_meta_relation',
403  'il_meta_requirement',
404  'il_meta_rights',
405  'il_meta_taxon',
406  'il_meta_taxon_path',
407  'il_meta_technical',
408  'il_meta_tar');
409 
410  foreach($tables as $table)
411  {
412  $query = "DELETE FROM ".$table." ".
413  "WHERE rbac_id = ".$ilDB->quote($this->getRBACId())." ".
414  "AND obj_id = ".$ilDB->quote($this->getObjId());
415 
416  $this->db->query($query);
417  }
418 
419  return true;
420  }
global $ilDB
+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ getAnnotation() [1/2]

& ilMD::getAnnotation (   $a_annotation_id)

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

215  {
216  if(!$a_annotation_id)
217  {
218  return false;
219  }
220  include_once 'Services/Migration/DBUpdate_426/classes/class.ilMDAnnotation.php';
221 
222  $ann =& new ilMDAnnotation();
223  $ann->setMetaId($a_annotation_id);
224 
225  return $ann;
226  }

◆ getAnnotation() [2/2]

& ilMD::getAnnotation (   $a_annotation_id)

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

Referenced by toXML().

224  {
225  if(!$a_annotation_id)
226  {
227  return false;
228  }
229  include_once 'Services/MetaData/classes/class.ilMDAnnotation.php';
230 
231  $ann =& new ilMDAnnotation();
232  $ann->setMetaId($a_annotation_id);
233 
234  return $ann;
235  }
+ Here is the caller graph for this function:

◆ getAnnotationIds() [1/2]

& ilMD::getAnnotationIds ( )

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

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

209  {
210  include_once 'Services/Migration/DBUpdate_426/classes/class.ilMDAnnotation.php';
211 
212  return ilMDAnnotation::_getIds($this->getRBACId(),$this->getObjId());
213  }
_getIds($a_rbac_id, $a_obj_id)
+ Here is the call graph for this function:

◆ getAnnotationIds() [2/2]

& ilMD::getAnnotationIds ( )

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

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

Referenced by toXML().

218  {
219  include_once 'Services/MetaData/classes/class.ilMDAnnotation.php';
220 
221  return ilMDAnnotation::_getIds($this->getRBACId(),$this->getObjId());
222  }
_getIds($a_rbac_id, $a_obj_id)
+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ getClassification() [1/2]

& ilMD::getClassification (   $a_classification_id)

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

243  {
244  if(!$a_classification_id)
245  {
246  return false;
247  }
248 
249  include_once 'Services/Migration/DBUpdate_426/classes/class.ilMDClassification.php';
250 
251  $cla =& new ilMDClassification();
252  $cla->setMetaId($a_classification_id);
253 
254  return $cla;
255  }

◆ getClassification() [2/2]

& ilMD::getClassification (   $a_classification_id)

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

Referenced by toXML().

252  {
253  if(!$a_classification_id)
254  {
255  return false;
256  }
257 
258  include_once 'Services/MetaData/classes/class.ilMDClassification.php';
259 
260  $cla =& new ilMDClassification();
261  $cla->setMetaId($a_classification_id);
262 
263  return $cla;
264  }
+ Here is the caller graph for this function:

◆ getClassificationIds() [1/2]

& ilMD::getClassificationIds ( )

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

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

237  {
238  include_once 'Services/Migration/DBUpdate_426/classes/class.ilMDClassification.php';
239 
240  return ilMDClassification::_getIds($this->getRBACId(),$this->getObjId());
241  }
_getIds($a_rbac_id, $a_obj_id)
+ Here is the call graph for this function:

◆ getClassificationIds() [2/2]

& ilMD::getClassificationIds ( )

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

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

Referenced by toXML().

246  {
247  include_once 'Services/MetaData/classes/class.ilMDClassification.php';
248 
249  return ilMDClassification::_getIds($this->getRBACId(),$this->getObjId());
250  }
_getIds($a_rbac_id, $a_obj_id)
+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ getEducational() [1/2]

& ilMD::getEducational ( )

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

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

136  {
137  include_once 'Services/Migration/DBUpdate_426/classes/class.ilMDEducational.php';
138 
139  if($id = ilMDEducational::_getId($this->getRBACId(),$this->getObjId()))
140  {
141  $edu =& new ilMDEducational();
142  $edu->setMetaId($id);
143 
144  return $edu;
145  }
146  return false;
147  }
_getId($a_rbac_id, $a_obj_id)
+ Here is the call graph for this function:

◆ getEducational() [2/2]

& ilMD::getEducational ( )

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

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

Referenced by toXML().

145  {
146  include_once 'Services/MetaData/classes/class.ilMDEducational.php';
147 
148  if($id = ilMDEducational::_getId($this->getRBACId(),$this->getObjId()))
149  {
150  $edu =& new ilMDEducational();
151  $edu->setMetaId($id);
152 
153  return $edu;
154  }
155  return false;
156  }
_getId($a_rbac_id, $a_obj_id)
+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ getGeneral() [1/2]

& ilMD::getGeneral ( )

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

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

47  {
48  include_once 'Services/Migration/DBUpdate_426/classes/class.ilMDGeneral.php';
49 
50  if($id = ilMDGeneral::_getId($this->getRBACId(),$this->getObjId()))
51  {
52  $gen =& new ilMDGeneral();
53  $gen->setMetaId($id);
54 
55  return $gen;
56  }
57  return false;
58  }
_getId($a_rbac_id, $a_obj_id)
+ Here is the call graph for this function:

◆ getGeneral() [2/2]

& ilMD::getGeneral ( )

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

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

Referenced by ilObjTestSettingsGeneralGUI\addGeneralProperties(), ilTermDefinitionEditorGUI\executeCommand(), ilObjSurveyGUI\initPropertiesForm(), ilSCORM2004Asset\renderMetaPage(), ilObjSCORM2004LearningModuleGUI\saveAllTitles(), ilObjTestSettingsGeneralGUI\saveGeneralProperties(), ilObjSurveyGUI\savePropertiesObject(), ilLMObject\saveTitles(), ilSCORM2004ScoGUI\sco_preview(), ilLMPresentationGUI\showPrintView(), ilSCORM2004ScoGUI\showProperties(), toXML(), and ilSCORM2004ScoGUI\updateProperties().

56  {
57  include_once 'Services/MetaData/classes/class.ilMDGeneral.php';
58 
59  if($id = ilMDGeneral::_getId($this->getRBACId(),$this->getObjId()))
60  {
61  $gen =& new ilMDGeneral();
62  $gen->setMetaId($id);
63 
64  return $gen;
65  }
66  return false;
67  }
_getId($a_rbac_id, $a_obj_id)
+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ getLifecycle() [1/2]

& ilMD::getLifecycle ( )

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

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

70  {
71  include_once 'Services/Migration/DBUpdate_426/classes/class.ilMDLifecycle.php';
72 
73  if($id = ilMDLifecycle::_getId($this->getRBACId(),$this->getObjId()))
74  {
75  $lif =& new ilMDLifecycle();
76  $lif->setMetaId($id);
77 
78  return $lif;
79  }
80  return false;
81  }
_getId($a_rbac_id, $a_obj_id)
+ Here is the call graph for this function:

◆ getLifecycle() [2/2]

& ilMD::getLifecycle ( )

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

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

Referenced by toXML().

79  {
80  include_once 'Services/MetaData/classes/class.ilMDLifecycle.php';
81 
82  if($id = ilMDLifecycle::_getId($this->getRBACId(),$this->getObjId()))
83  {
84  $lif =& new ilMDLifecycle();
85  $lif->setMetaId($id);
86 
87  return $lif;
88  }
89  return false;
90  }
_getId($a_rbac_id, $a_obj_id)
+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ getMetaMetadata() [1/2]

& ilMD::getMetaMetadata ( )

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

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

92  {
93  include_once 'Services/Migration/DBUpdate_426/classes/class.ilMDMetaMetadata.php';
94 
95  if($id = ilMDMetaMetadata::_getId($this->getRBACId(),$this->getObjId()))
96  {
97  $met =& new ilMDMetaMetadata();
98  $met->setMetaId($id);
99 
100  return $met;
101  }
102  return false;
103  }
_getId($a_rbac_id, $a_obj_id)
+ Here is the call graph for this function:

◆ getMetaMetadata() [2/2]

& ilMD::getMetaMetadata ( )

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

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

Referenced by toXML().

101  {
102  include_once 'Services/MetaData/classes/class.ilMDMetaMetadata.php';
103 
104  if($id = ilMDMetaMetadata::_getId($this->getRBACId(),$this->getObjId()))
105  {
106  $met =& new ilMDMetaMetadata();
107  $met->setMetaId($id);
108 
109  return $met;
110  }
111  return false;
112  }
_getId($a_rbac_id, $a_obj_id)
+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ getRelation() [1/2]

& ilMD::getRelation (   $a_relation_id)

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

185  {
186  include_once 'Services/Migration/DBUpdate_426/classes/class.ilMDRelation.php';
187 
188  if(!$a_relation_id)
189  {
190  return false;
191  }
192 
193  $rel =& new ilMDRelation();
194  $rel->setMetaId($a_relation_id);
195 
196  return $rel;
197  }

◆ getRelation() [2/2]

& ilMD::getRelation (   $a_relation_id)

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

Referenced by toXML().

194  {
195  include_once 'Services/MetaData/classes/class.ilMDRelation.php';
196 
197  if(!$a_relation_id)
198  {
199  return false;
200  }
201 
202  $rel =& new ilMDRelation();
203  $rel->setMetaId($a_relation_id);
204 
205  return $rel;
206  }
+ Here is the caller graph for this function:

◆ getRelationIds() [1/2]

& ilMD::getRelationIds ( )

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

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

179  {
180  include_once 'Services/Migration/DBUpdate_426/classes/class.ilMDRelation.php';
181 
182  return ilMDRelation::_getIds($this->getRBACId(),$this->getObjId());
183  }
_getIds($a_rbac_id, $a_obj_id)
+ Here is the call graph for this function:

◆ getRelationIds() [2/2]

& ilMD::getRelationIds ( )

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

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

Referenced by toXML().

188  {
189  include_once 'Services/MetaData/classes/class.ilMDRelation.php';
190 
191  return ilMDRelation::_getIds($this->getRBACId(),$this->getObjId());
192  }
_getIds($a_rbac_id, $a_obj_id)
+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ getRights() [1/2]

& ilMD::getRights ( )

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

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

157  {
158  include_once 'Services/Migration/DBUpdate_426/classes/class.ilMDRights.php';
159 
160  if($id = ilMDRights::_getId($this->getRBACId(),$this->getObjId()))
161  {
162  $rig =& new ilMDRights();
163  $rig->setMetaId($id);
164 
165  return $rig;
166  }
167  return false;
168  }
_getId($a_rbac_id, $a_obj_id)
+ Here is the call graph for this function:

◆ getRights() [2/2]

& ilMD::getRights ( )

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

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

Referenced by toXML().

166  {
167  include_once 'Services/MetaData/classes/class.ilMDRights.php';
168 
169  if($id = ilMDRights::_getId($this->getRBACId(),$this->getObjId()))
170  {
171  $rig =& new ilMDRights();
172  $rig->setMetaId($id);
173 
174  return $rig;
175  }
176  return false;
177  }
_getId($a_rbac_id, $a_obj_id)
+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ getTechnical() [1/2]

& ilMD::getTechnical ( )

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

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

114  {
115  include_once 'Services/Migration/DBUpdate_426/classes/class.ilMDTechnical.php';
116 
117  if($id = ilMDTechnical::_getId($this->getRBACId(),$this->getObjId()))
118  {
119  $tec =& new ilMDTechnical();
120  $tec->setMetaId($id);
121 
122  return $tec;
123  }
124  return false;
125  }
_getId($a_rbac_id, $a_obj_id)
+ Here is the call graph for this function:

◆ getTechnical() [2/2]

& ilMD::getTechnical ( )

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

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

Referenced by toXML().

123  {
124  include_once 'Services/MetaData/classes/class.ilMDTechnical.php';
125 
126  if($id = ilMDTechnical::_getId($this->getRBACId(),$this->getObjId()))
127  {
128  $tec =& new ilMDTechnical();
129  $tec->setMetaId($id);
130 
131  return $tec;
132  }
133  return false;
134  }
_getId($a_rbac_id, $a_obj_id)
+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ ilMD() [1/2]

ilMD::ilMD (   $a_rbac_id,
  $a_obj_id,
  $a_type 
)

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

42  {
43  parent::ilMDBase($a_rbac_id,$a_obj_id,$a_type);
44  }

◆ ilMD() [2/2]

ilMD::ilMD (   $a_rbac_id,
  $a_obj_id,
  $a_type 
)

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

51  {
52  parent::ilMDBase($a_rbac_id,$a_obj_id,$a_type);
53  }

◆ toXML() [1/2]

ilMD::toXML ( $writer)

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

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

271  {
272  $writer->xmlStartTag('Migration/DBUpdate_426');
273 
274  // General
275  if(is_object($gen =& $this->getGeneral()))
276  {
277  $gen->toXML($writer);
278  }
279 
280  // Lifecycle
281  if(is_object($lif =& $this->getLifecycle()))
282  {
283  $lif->toXML($writer);
284  }
285 
286  // Meta-Metadata
287  if(is_object($met =& $this->getMetaMetadata()))
288  {
289  $met->toXML($writer);
290  }
291 
292  // Technical
293  if(is_object($tec =& $this->getTechnical()))
294  {
295  $tec->toXML($writer);
296  }
297 
298  // Educational
299  if(is_object($edu =& $this->getEducational()))
300  {
301  $edu->toXML($writer);
302  }
303 
304  // Rights
305  if(is_object($rig =& $this->getRights()))
306  {
307  $rig->toXML($writer);
308  }
309 
310  // Relations
311  foreach($this->getRelationIds() as $id)
312  {
313  $rel =& $this->getRelation($id);
314  $rel->toXML($writer);
315  }
316 
317  // Annotations
318  foreach($this->getAnnotationIds() as $id)
319  {
320  $ann =& $this->getAnnotation($id);
321  $ann->toXML($writer);
322  }
323 
324  // Classification
325  foreach($this->getClassificationIds() as $id)
326  {
327  $cla =& $this->getClassification($id);
328  $cla->toXML($writer);
329  }
330 
331  $writer->xmlEndTag('Migration/DBUpdate_426');
332  }
& getEducational()
Definition: class.ilMD.php:144
& getClassification($a_classification_id)
Definition: class.ilMD.php:251
& getTechnical()
Definition: class.ilMD.php:122
& getRelation($a_relation_id)
Definition: class.ilMD.php:193
& getRights()
Definition: class.ilMD.php:165
& getGeneral()
Definition: class.ilMD.php:55
& getMetaMetadata()
Definition: class.ilMD.php:100
& getAnnotationIds()
Definition: class.ilMD.php:217
& getLifecycle()
Definition: class.ilMD.php:78
& getAnnotation($a_annotation_id)
Definition: class.ilMD.php:223
& getClassificationIds()
Definition: class.ilMD.php:245
& getRelationIds()
Definition: class.ilMD.php:187
+ Here is the call graph for this function:

◆ toXML() [2/2]

ilMD::toXML ( $writer)

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

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

280  {
281  $writer->xmlStartTag('MetaData');
282 
283  // General
284  if(is_object($gen =& $this->getGeneral()))
285  {
286  $gen->setExportMode($this->getExportMode());
287  $gen->toXML($writer);
288  }
289  else
290  {
291  // Defaults
292  include_once 'Services/MetaData/classes/class.ilMDGeneral.php';
293  $gen = new ilMDGeneral($this->getRBACId(),$this->getObjId(), $this->getObjType()); // added type, alex, 31 Oct 2007
294  $gen->setExportMode($this->getExportMode());
295  $gen->toXML($writer);
296  }
297 
298 
299  // Lifecycle
300  if(is_object($lif =& $this->getLifecycle()))
301  {
302  $lif->toXML($writer);
303  }
304 
305  // Meta-Metadata
306  if(is_object($met =& $this->getMetaMetadata()))
307  {
308  $met->toXML($writer);
309  }
310 
311  // Technical
312  if(is_object($tec =& $this->getTechnical()))
313  {
314  $tec->toXML($writer);
315  }
316 
317  // Educational
318  if(is_object($edu =& $this->getEducational()))
319  {
320  $edu->toXML($writer);
321  }
322 
323  // Rights
324  if(is_object($rig =& $this->getRights()))
325  {
326  $rig->toXML($writer);
327  }
328 
329  // Relations
330  foreach($this->getRelationIds() as $id)
331  {
332  $rel =& $this->getRelation($id);
333  $rel->toXML($writer);
334  }
335 
336  // Annotations
337  foreach($this->getAnnotationIds() as $id)
338  {
339  $ann =& $this->getAnnotation($id);
340  $ann->toXML($writer);
341  }
342 
343  // Classification
344  foreach($this->getClassificationIds() as $id)
345  {
346  $cla =& $this->getClassification($id);
347  $cla->toXML($writer);
348  }
349 
350  $writer->xmlEndTag('MetaData');
351  }
& getEducational()
Definition: class.ilMD.php:144
& getClassification($a_classification_id)
Definition: class.ilMD.php:251
& getTechnical()
Definition: class.ilMD.php:122
& getRelation($a_relation_id)
Definition: class.ilMD.php:193
& getRights()
Definition: class.ilMD.php:165
& getGeneral()
Definition: class.ilMD.php:55
& getMetaMetadata()
Definition: class.ilMD.php:100
& getAnnotationIds()
Definition: class.ilMD.php:217
& getLifecycle()
Definition: class.ilMD.php:78
& getAnnotation($a_annotation_id)
Definition: class.ilMD.php:223
& getClassificationIds()
Definition: class.ilMD.php:245
& getRelationIds()
Definition: class.ilMD.php:187
+ Here is the call graph for this function:

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