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) {
50 $typ->setMetaId($a_typical_age_range_id);
56 include_once
'Services/Migration/DBUpdate_426/classes/class.ilMDTypicalAgeRange.php';
60 $typ->setParentType(
'meta_educational');
66 include_once
'Services/Migration/DBUpdate_426/classes/class.ilMDDescription.php';
72 include_once
'Services/Migration/DBUpdate_426/classes/class.ilMDDescription.php';
74 if (!$a_description_id) {
78 $des->setMetaId($a_description_id);
84 include_once
'Services/Migration/DBUpdate_426/classes/class.ilMDDescription.php';
88 $des->setParentType(
'meta_educational');
94 include_once
'Services/Migration/DBUpdate_426/classes/class.ilMDLanguage.php';
100 include_once
'Services/Migration/DBUpdate_426/classes/class.ilMDLanguage.php';
102 if (!$a_language_id) {
106 $lan->setMetaId($a_language_id);
112 include_once
'Services/Migration/DBUpdate_426/classes/class.ilMDLanguage.php';
116 $lan->setParentType(
'meta_educational');
128 $this->interactivity_type = $a_iat;
137 return $this->interactivity_type;
144 case 'Questionnaire':
151 case 'NarrativeText':
154 case 'ProblemStatement':
155 case 'SelfAssessment':
157 $this->learning_resource_type = $a_lrt;
166 return $this->learning_resource_type;
176 $this->interactivity_level = $a_iat;
185 return $this->interactivity_level;
195 $this->semantic_density = $a_sd;
204 return $this->semantic_density;
213 $this->intended_end_user_role = $a_ieur;
222 return $this->intended_end_user_role;
226 switch ($a_context) {
228 case 'HigherEducation':
231 $this->context = $a_context;
240 return $this->context;
244 switch ($a_difficulty) {
249 case 'VeryDifficult':
250 $this->difficulty = $a_difficulty;
259 return $this->difficulty;
263 $this->typical_learning_time = $a_tlt;
267 return $this->typical_learning_time;
273 if ($this->db->autoExecute(
274 'il_meta_educational',
275 $this->__getFields(),
278 $this->
setMetaId($this->db->getLastInsertId());
291 if ($this->db->autoExecute(
292 'il_meta_educational',
293 $this->__getFields(),
295 "meta_educational_id = " . $ilDB->quote($this->
getMetaId())
303 public function delete()
308 $query =
"DELETE FROM il_meta_educational " .
309 "WHERE meta_educational_id = " . $ilDB->quote($this->
getMetaId());
353 $query =
"SELECT * FROM il_meta_educational " .
354 "WHERE meta_educational_id = " . $ilDB->quote($this->
getMetaId());
383 $writer->xmlStartTag(
397 $key->toXML($writer);
405 $key->toXML($writer);
410 $lang->toXML($writer);
412 $writer->xmlEndTag(
'Educational');
415 public function _getId($a_rbac_id, $a_obj_id)
419 $query =
"SELECT meta_educational_id FROM il_meta_educational " .
420 "WHERE rbac_id = " . $ilDB->quote($a_rbac_id) .
" " .
421 "AND obj_id = " . $ilDB->quote($a_obj_id);
425 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)
if(!array_key_exists('StateId', $_REQUEST)) $id
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)
foreach($_POST as $key=> $value) $res
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)
const MDB2_AUTOQUERY_INSERT
setIntendedEndUserRole($a_ieur)