31 include_once
'class.ilMDBase.php';
35 function ilMDRights($a_rbac_id = 0,$a_obj_id = 0,$a_obj_type =
'')
49 $this->costs = $a_costs;
66 $this->caor = $a_caor;
79 $this->description = $a_description;
83 return $this->description;
87 if(is_object($lng_obj))
89 $this->description_language = $lng_obj;
94 return is_object($this->description_language) ? $this->description_language :
false;
98 return is_object($this->description_language) ? $this->description_language->getLanguageCode() :
false;
103 if($this->db->autoExecute(
'il_meta_rights',
104 $this->__getFields(),
105 DB_AUTOQUERY_INSERT))
107 $this->
setMetaId($this->db->getLastInsertId());
120 if($this->db->autoExecute(
'il_meta_rights',
121 $this->__getFields(),
123 "meta_rights_id = ".$ilDB->quote($this->
getMetaId())))
137 $query =
"DELETE FROM il_meta_rights ".
138 "WHERE meta_rights_id = ".$ilDB->quote($this->
getMetaId());
150 return array(
'rbac_id' => $this->
getRBACId(),
163 include_once
'Services/Migration/DBUpdate_426/classes/class.ilMDLanguageItem.php';
169 $query =
"SELECT * FROM il_meta_rights ".
170 "WHERE meta_rights_id = ".$ilDB->quote($this->
getMetaId());
196 $writer->xmlStartTag(
'Rights',array(
'Costs' => $this->
getCosts(),
199 $writer->xmlEndTag(
'Rights');
207 $query =
"SELECT meta_rights_id FROM il_meta_rights ".
208 "WHERE rbac_id = ".$ilDB->quote($a_rbac_id).
" ".
209 "AND obj_id = ".$ilDB->quote($a_obj_id);
214 return $row->meta_rights_id;