31 include_once
'class.ilMDBase.php';
38 $this->description = $a_description;
46 if (is_object($lng_obj)) {
47 $this->description_language = $lng_obj;
52 return is_object($this->description_language) ? $this->description_language :
false;
56 return is_object($this->description_language) ? $this->description_language->getLanguageCode() :
false;
61 if ($this->db->autoExecute(
62 'il_meta_description',
66 $this->
setMetaId($this->db->getLastInsertId());
78 if ($this->db->autoExecute(
79 'il_meta_description',
82 "meta_description_id = " . $ilDB->quote($this->
getMetaId())
90 public function delete()
95 $query =
"DELETE FROM il_meta_description " .
96 "WHERE meta_description_id = " . $ilDB->quote($this->
getMetaId());
108 return array(
'rbac_id' => $this->
getRBACId(),
121 include_once
'Services/Migration/DBUpdate_426/classes/class.ilMDLanguageItem.php';
124 $query =
"SELECT * FROM il_meta_description " .
125 "WHERE meta_description_id = " . $ilDB->quote($this->
getMetaId());
153 public function _getIds($a_rbac_id, $a_obj_id, $a_parent_id, $a_parent_type)
157 $query =
"SELECT meta_description_id FROM il_meta_description " .
158 "WHERE rbac_id = " . $ilDB->quote($a_rbac_id) .
" " .
159 "AND obj_id = " . $ilDB->quote($a_obj_id) .
" " .
160 "AND parent_id = " . $ilDB->quote($a_parent_id) .
" " .
161 "AND parent_type = " . $ilDB->quote($a_parent_type) .
" " .
162 "ORDER BY meta_description_id";
166 $ids[] =
$row->meta_description_id;
168 return $ids ? $ids : array();
& getDescriptionLanguage()
setDescription($a_description)
setMetaId($a_meta_id, $a_read_data=true)
foreach($_POST as $key=> $value) $res
_getIds($a_rbac_id, $a_obj_id, $a_parent_id, $a_parent_type)
static stripSlashes($a_str, $a_strip_html=true, $a_allow="")
strip slashes if magic qoutes is enabled
setDescriptionLanguage(&$lng_obj)
static prepareDBString($a_str)
prepare a string for db writing (insert/update)
setParentType($a_parent_type)
getDescriptionLanguageCode()