31 include_once
'class.ilMDBase.php';
45 include_once
'Services/Migration/DBUpdate_426/classes/class.ilMDTypicalAgeRange.php';
51 include_once
'Services/Migration/DBUpdate_426/classes/class.ilMDTypicalAgeRange.php';
53 if(!$a_typical_age_range_id)
58 $typ->setMetaId($a_typical_age_range_id);
64 include_once
'Services/Migration/DBUpdate_426/classes/class.ilMDTypicalAgeRange.php';
68 $typ->setParentType(
'meta_educational');
74 include_once
'Services/Migration/DBUpdate_426/classes/class.ilMDDescription.php';
80 include_once
'Services/Migration/DBUpdate_426/classes/class.ilMDDescription.php';
82 if(!$a_description_id)
87 $des->setMetaId($a_description_id);
93 include_once
'Services/Migration/DBUpdate_426/classes/class.ilMDDescription.php';
97 $des->setParentType(
'meta_educational');
103 include_once
'Services/Migration/DBUpdate_426/classes/class.ilMDLanguage.php';
109 include_once
'Services/Migration/DBUpdate_426/classes/class.ilMDLanguage.php';
116 $lan->setMetaId($a_language_id);
122 include_once
'Services/Migration/DBUpdate_426/classes/class.ilMDLanguage.php';
126 $lan->setParentType(
'meta_educational');
139 $this->interactivity_type = $a_iat;
148 return $this->interactivity_type;
156 case 'Questionnaire':
163 case 'NarrativeText':
166 case 'ProblemStatement':
167 case 'SelfAssessment':
169 $this->learning_resource_type = $a_lrt;
178 return $this->learning_resource_type;
189 $this->interactivity_level = $a_iat;
198 return $this->interactivity_level;
209 $this->semantic_density = $a_sd;
218 return $this->semantic_density;
228 $this->intended_end_user_role = $a_ieur;
237 return $this->intended_end_user_role;
244 case 'HigherEducation':
247 $this->context = $a_context;
256 return $this->context;
260 switch($a_difficulty)
266 case 'VeryDifficult':
267 $this->difficulty = $a_difficulty;
276 return $this->difficulty;
280 $this->typical_learning_time = $a_tlt;
284 return $this->typical_learning_time;
290 if($this->db->autoExecute(
'il_meta_educational',
291 $this->__getFields(),
292 DB_AUTOQUERY_INSERT))
294 $this->
setMetaId($this->db->getLastInsertId());
308 if($this->db->autoExecute(
'il_meta_educational',
309 $this->__getFields(),
311 "meta_educational_id = ".$ilDB->quote($this->
getMetaId())))
325 $query =
"DELETE FROM il_meta_educational ".
326 "WHERE meta_educational_id = ".$ilDB->quote($this->
getMetaId());
355 return array(
'rbac_id' => $this->
getRBACId(),
375 $query =
"SELECT * FROM il_meta_educational ".
376 "WHERE meta_educational_id = ".$ilDB->quote($this->
getMetaId());
406 $writer->xmlStartTag(
'Educational',
419 $key->toXML($writer);
428 $key->toXML($writer);
434 $lang->toXML($writer);
436 $writer->xmlEndTag(
'Educational');
443 $query =
"SELECT meta_educational_id FROM il_meta_educational ".
444 "WHERE rbac_id = ".$ilDB->quote($a_rbac_id).
" ".
445 "AND obj_id = ".$ilDB->quote($a_obj_id);
450 return $row->meta_educational_id;