31 include_once
'class.ilMDBase.php';
45 $this->description = $a_description;
49 return $this->description;
53 if(is_object($lng_obj))
55 $this->description_language = $lng_obj;
60 return is_object($this->description_language) ? $this->description_language :
false;
64 return is_object($this->description_language) ? $this->description_language->getLanguageCode() :
false;
69 if($this->db->autoExecute(
'il_meta_description',
73 $this->
setMetaId($this->db->getLastInsertId());
86 if($this->db->autoExecute(
'il_meta_description',
89 "meta_description_id = ".$ilDB->quote($this->
getMetaId())))
103 $query =
"DELETE FROM il_meta_description ".
104 "WHERE meta_description_id = ".$ilDB->quote($this->
getMetaId());
116 return array(
'rbac_id' => $this->
getRBACId(),
129 include_once
'Services/Migration/DBUpdate_426/classes/class.ilMDLanguageItem.php';
133 $query =
"SELECT * FROM il_meta_description ".
134 "WHERE meta_description_id = ".$ilDB->quote($this->
getMetaId());
163 function _getIds($a_rbac_id,$a_obj_id,$a_parent_id,$a_parent_type)
167 $query =
"SELECT meta_description_id FROM il_meta_description ".
168 "WHERE rbac_id = ".$ilDB->quote($a_rbac_id).
" ".
169 "AND obj_id = ".$ilDB->quote($a_obj_id).
" ".
170 "AND parent_id = ".$ilDB->quote($a_parent_id).
" ".
171 "AND parent_type = ".$ilDB->quote($a_parent_type).
" ".
172 "ORDER BY meta_description_id";
177 $ids[] =
$row->meta_description_id;
179 return $ids ? $ids : array();