31 include_once
'class.ilMDBase.php';
45 include_once
'Services/Migration/DBUpdate_426/classes/class.ilMDTaxonPath.php';
51 include_once
'Services/Migration/DBUpdate_426/classes/class.ilMDTaxonPath.php';
58 $tax->setMetaId($a_taxon_path_id);
64 include_once
'Services/Migration/DBUpdate_426/classes/class.ilMDTaxonPath.php';
68 $tax->setParentType(
'meta_classification');
75 include_once
'Services/Migration/DBUpdate_426/classes/class.ilMDKeyword.php';
81 include_once
'Services/Migration/DBUpdate_426/classes/class.ilMDKeyword.php';
88 $key->setMetaId($a_keyword_id);
94 include_once
'Services/Migration/DBUpdate_426/classes/class.ilMDKeyword.php';
98 $key->setParentType(
'meta_classification');
111 case 'EducationalObjective':
112 case 'AccessibilityRestrictions':
113 case 'EducationalLevel':
115 case 'SecurityLevel':
117 $this->purpose = $a_purpose;
126 return $this->purpose;
130 $this->description = $a_description;
134 return $this->description;
138 if(is_object($lng_obj))
140 $this->description_language =& $lng_obj;
145 return is_object($this->description_language) ? $this->description_language :
false;
149 return is_object($this->description_language) ? $this->description_language->getLanguageCode() :
false;
155 if($this->db->autoExecute(
'il_meta_classification',
156 $this->__getFields(),
157 DB_AUTOQUERY_INSERT))
159 $this->
setMetaId($this->db->getLastInsertId());
172 if($this->db->autoExecute(
'il_meta_classification',
173 $this->__getFields(),
175 "meta_classification_id = ".$ilDB->quote($this->
getMetaId())))
189 $query =
"DELETE FROM il_meta_classification ".
190 "WHERE meta_classification_id = ".$ilDB->quote($this->
getMetaId());
213 return array(
'rbac_id' => $this->
getRBACId(),
225 include_once
'Services/Migration/DBUpdate_426/classes/class.ilMDLanguageItem.php';
229 $query =
"SELECT * FROM il_meta_classification ".
230 "WHERE meta_classification_id = ".$ilDB->quote($this->
getMetaId());
253 $writer->xmlStartTag(
'Classification',array(
'Purpose' => $this->
getPurpose()));
259 $tax->toXML($writer);
268 $key->toXML($writer);
270 $writer->xmlEndTag(
'Classification');
280 $query =
"SELECT meta_classification_id FROM il_meta_classification ".
281 "WHERE rbac_id = ".$ilDB->quote($a_rbac_id).
" ".
282 "AND obj_id = ".$ilDB->quote($a_obj_id);
288 $ids[] =
$row->meta_classification_id;
290 return $ids ? $ids : array();