31 include_once
'class.ilMDBase.php';
45 $this->entity = $a_entity;
53 $this->date = $a_date;
61 $this->description = $a_desc;
65 return $this->description;
69 if(is_object($lng_obj))
71 $this->description_language =& $lng_obj;
76 return $this->description_language;
80 if(is_object($this->description_language))
82 return $this->description_language->getLanguageCode();
89 if($this->db->autoExecute(
'il_meta_annotation',
93 $this->
setMetaId($this->db->getLastInsertId());
106 if($this->db->autoExecute(
'il_meta_annotation',
107 $this->__getFields(),
109 "meta_annotation_id = ".$ilDB->quote($this->
getMetaId())))
123 $query =
"DELETE FROM il_meta_annotation ".
124 "WHERE meta_annotation_id = ".$ilDB->quote($this->
getMetaId());
136 return array(
'rbac_id' => $this->
getRBACId(),
149 include_once
'Services/Migration/DBUpdate_426/classes/class.ilMDLanguageItem.php';
153 $query =
"SELECT * FROM il_meta_annotation ".
154 "WHERE meta_annotation_id = ".$ilDB->quote($this->
getMetaId());
178 $writer->xmlStartTag(
'Annotation');
179 $writer->xmlElement(
'Entity',null,$this->
getEntity());
180 $writer->xmlElement(
'Date',null,$this->
getDate());
182 $writer->xmlEndTag(
'Annotation');
192 $query =
"SELECT meta_annotation_id FROM il_meta_annotation ".
193 "WHERE rbac_id = ".$ilDB->quote($a_rbac_id).
" ".
194 "AND obj_id = ".$ilDB->quote($a_obj_id);
200 $ids[] =
$row->meta_annotation_id;
202 return $ids ? $ids : array();