31 include_once
'class.ilMDBase.php';
38 $this->entity = $a_entity;
46 $this->
date = $a_date;
54 $this->description = $a_desc;
58 return $this->description;
62 if(is_object($lng_obj))
64 $this->description_language =& $lng_obj;
69 return $this->description_language;
73 if(is_object($this->description_language))
75 return $this->description_language->getLanguageCode();
82 if($this->db->autoExecute(
'il_meta_annotation',
86 $this->
setMetaId($this->db->getLastInsertId());
99 if($this->db->autoExecute(
'il_meta_annotation',
100 $this->__getFields(),
102 "meta_annotation_id = ".$ilDB->quote($this->
getMetaId())))
116 $query =
"DELETE FROM il_meta_annotation ".
117 "WHERE meta_annotation_id = ".$ilDB->quote($this->
getMetaId());
142 include_once
'Services/Migration/DBUpdate_426/classes/class.ilMDLanguageItem.php';
146 $query =
"SELECT * FROM il_meta_annotation ".
147 "WHERE meta_annotation_id = ".$ilDB->quote($this->
getMetaId());
171 $writer->xmlStartTag(
'Annotation');
172 $writer->xmlElement(
'Entity',null,$this->
getEntity());
173 $writer->xmlElement(
'Date',null,$this->
getDate());
175 $writer->xmlEndTag(
'Annotation');
185 $query =
"SELECT meta_annotation_id FROM il_meta_annotation ".
186 "WHERE rbac_id = ".$ilDB->quote($a_rbac_id).
" ".
187 "AND obj_id = ".$ilDB->quote($a_obj_id);
193 $ids[] =
$row->meta_annotation_id;
195 return $ids ? $ids :
array();
const MDB2_AUTOQUERY_UPDATE
setMetaId($a_meta_id, $a_read_data=true)
date( 'd-M-Y', $objPHPExcel->getProperties() ->getCreated())
getDescriptionLanguageCode()
static stripSlashes($a_str, $a_strip_html=true, $a_allow="")
strip slashes if magic qoutes is enabled
_getIds($a_rbac_id, $a_obj_id)
Create styles array
The data for the language used.
static prepareDBString($a_str)
prepare a string for db writing (insert/update)
const MDB2_AUTOQUERY_INSERT
setDescriptionLanguage($lng_obj)
& getDescriptionLanguage()