31 include_once
'class.ilMDBase.php';
38 include_once
'Services/Migration/DBUpdate_426/classes/class.ilMDTypicalAgeRange.php';
44 include_once
'Services/Migration/DBUpdate_426/classes/class.ilMDTypicalAgeRange.php';
46 if(!$a_typical_age_range_id)
51 $typ->setMetaId($a_typical_age_range_id);
57 include_once
'Services/Migration/DBUpdate_426/classes/class.ilMDTypicalAgeRange.php';
61 $typ->setParentType(
'meta_educational');
67 include_once
'Services/Migration/DBUpdate_426/classes/class.ilMDDescription.php';
73 include_once
'Services/Migration/DBUpdate_426/classes/class.ilMDDescription.php';
75 if(!$a_description_id)
80 $des->setMetaId($a_description_id);
86 include_once
'Services/Migration/DBUpdate_426/classes/class.ilMDDescription.php';
90 $des->setParentType(
'meta_educational');
96 include_once
'Services/Migration/DBUpdate_426/classes/class.ilMDLanguage.php';
102 include_once
'Services/Migration/DBUpdate_426/classes/class.ilMDLanguage.php';
109 $lan->setMetaId($a_language_id);
115 include_once
'Services/Migration/DBUpdate_426/classes/class.ilMDLanguage.php';
119 $lan->setParentType(
'meta_educational');
132 $this->interactivity_type = $a_iat;
141 return $this->interactivity_type;
149 case 'Questionnaire':
156 case 'NarrativeText':
159 case 'ProblemStatement':
160 case 'SelfAssessment':
162 $this->learning_resource_type = $a_lrt;
171 return $this->learning_resource_type;
182 $this->interactivity_level = $a_iat;
191 return $this->interactivity_level;
202 $this->semantic_density = $a_sd;
211 return $this->semantic_density;
221 $this->intended_end_user_role = $a_ieur;
230 return $this->intended_end_user_role;
237 case 'HigherEducation':
240 $this->context = $a_context;
249 return $this->context;
253 switch($a_difficulty)
259 case 'VeryDifficult':
260 $this->difficulty = $a_difficulty;
269 return $this->difficulty;
273 $this->typical_learning_time = $a_tlt;
277 return $this->typical_learning_time;
283 if($this->db->autoExecute(
'il_meta_educational',
284 $this->__getFields(),
287 $this->
setMetaId($this->db->getLastInsertId());
301 if($this->db->autoExecute(
'il_meta_educational',
302 $this->__getFields(),
304 "meta_educational_id = ".$ilDB->quote($this->
getMetaId())))
318 $query =
"DELETE FROM il_meta_educational ".
319 "WHERE meta_educational_id = ".$ilDB->quote($this->
getMetaId());
368 $query =
"SELECT * FROM il_meta_educational ".
369 "WHERE meta_educational_id = ".$ilDB->quote($this->
getMetaId());
399 $writer->xmlStartTag(
'Educational',
412 $key->toXML($writer);
421 $key->toXML($writer);
427 $lang->toXML($writer);
429 $writer->xmlEndTag(
'Educational');
436 $query =
"SELECT meta_educational_id FROM il_meta_educational ".
437 "WHERE rbac_id = ".$ilDB->quote($a_rbac_id).
" ".
438 "AND obj_id = ".$ilDB->quote($a_obj_id);
443 return $row->meta_educational_id;
setInteractivityType($a_iat)
static _getIds($a_rbac_id, $a_obj_id, $a_parent_id, $a_parent_type)
& getLanguage($a_language_id)
& getTypicalAgeRangeIds()
setDifficulty($a_difficulty)
& getDescription($a_description_id)
static _getIds($a_rbac_id, $a_obj_id, $a_parent_id, $a_parent_type)
setInteractivityLevel($a_iat)
getLearningResourceType()
& getTypicalAgeRange($a_typical_age_range_id)
static _getIds($a_rbac_id, $a_obj_id, $a_parent_id, $a_parent_type)
const MDB2_AUTOQUERY_UPDATE
setMetaId($a_meta_id, $a_read_data=true)
setLearningResourceType($a_lrt)
_getId($a_rbac_id, $a_obj_id)
setTypicalLearningTime($a_tlt)
static stripSlashes($a_str, $a_strip_html=true, $a_allow="")
strip slashes if magic qoutes is enabled
Create styles array
The data for the language used.
setSemanticDensity($a_sd)
static prepareDBString($a_str)
prepare a string for db writing (insert/update)
for($i=1; $i<=count($kw_cases_sel); $i+=1) $lang
const MDB2_AUTOQUERY_INSERT
setIntendedEndUserRole($a_ieur)