31 include_once
'class.ilMDBase.php';
41 $this->costs = $a_costs;
57 $this->caor = $a_caor;
70 $this->description = $a_description;
78 if (is_object($lng_obj)) {
79 $this->description_language = $lng_obj;
84 return is_object($this->description_language) ? $this->description_language :
false;
88 return is_object($this->description_language) ? $this->description_language->getLanguageCode() :
false;
93 if ($this->db->autoExecute(
98 $this->
setMetaId($this->db->getLastInsertId());
110 if ($this->db->autoExecute(
112 $this->__getFields(),
114 "meta_rights_id = " . $ilDB->quote($this->
getMetaId())
122 public function delete()
127 $query =
"DELETE FROM il_meta_rights " .
128 "WHERE meta_rights_id = " . $ilDB->quote($this->
getMetaId());
153 include_once
'Services/Migration/DBUpdate_426/classes/class.ilMDLanguageItem.php';
157 $query =
"SELECT * FROM il_meta_rights " .
158 "WHERE meta_rights_id = " . $ilDB->quote($this->
getMetaId());
183 $writer->xmlStartTag(
'Rights',
array(
'Costs' => $this->
getCosts(),
186 $writer->xmlEndTag(
'Rights');
190 public function _getId($a_rbac_id, $a_obj_id)
194 $query =
"SELECT meta_rights_id FROM il_meta_rights " .
195 "WHERE rbac_id = " . $ilDB->quote($a_rbac_id) .
" " .
196 "AND obj_id = " . $ilDB->quote($a_obj_id);
200 return $row->meta_rights_id;
getDescriptionLanguageCode()
& getDescriptionLanguage()
setDescriptionLanguage(&$lng_obj)
const MDB2_AUTOQUERY_UPDATE
setMetaId($a_meta_id, $a_read_data=true)
foreach($_POST as $key=> $value) $res
setCopyrightAndOtherRestrictions($a_caor)
_getId($a_rbac_id, $a_obj_id)
getCopyrightAndOtherRestrictions()
static stripSlashes($a_str, $a_strip_html=true, $a_allow="")
strip slashes if magic qoutes is enabled
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
setDescription($a_description)