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;
64 $fields[
'meta_description_id'] =
array(
'integer',$next_id = $ilDB->nextId(
'il_meta_description'));
66 if ($this->db->insert(
'il_meta_description', $fields)) {
78 if ($this->db->update(
79 'il_meta_description',
89 public function delete()
94 $query =
"DELETE FROM il_meta_description " .
95 "WHERE meta_description_id = " . $ilDB->quote($this->
getMetaId(),
'integer');
119 include_once
'Services/MetaData/classes/class.ilMDLanguageItem.php';
122 $query =
"SELECT * FROM il_meta_description " .
123 "WHERE meta_description_id = " . $ilDB->quote($this->
getMetaId(),
'integer');
157 public static function _getIds($a_rbac_id, $a_obj_id, $a_parent_id, $a_parent_type)
161 $query =
"SELECT meta_description_id FROM il_meta_description " .
162 "WHERE rbac_id = " . $ilDB->quote($a_rbac_id) .
" " .
163 "AND obj_id = " . $ilDB->quote($a_obj_id) .
" " .
164 "AND parent_id = " . $ilDB->quote($a_parent_id) .
" " .
165 "AND parent_type = " . $ilDB->quote($a_parent_type) .
" " .
166 "ORDER BY meta_description_id";
170 $ids[] =
$row->meta_description_id;
172 return $ids ? $ids :
array();
& getDescriptionLanguage()
static _getIds($a_rbac_id, $a_obj_id, $a_parent_id, $a_parent_type)
setDescription($a_description)
setMetaId($a_meta_id, $a_read_data=true)
foreach($_POST as $key=> $value) $res
Create styles array
The data for the language used.
setDescriptionLanguage(&$lng_obj)
setParentType($a_parent_type)
getDescriptionLanguageCode()