31 include_once
'class.ilMDBase.php';
42 $this->costs = $a_costs;
59 $this->caor = $a_caor;
72 $this->description = $a_description;
76 return $this->description;
80 if(is_object($lng_obj))
82 $this->description_language = $lng_obj;
87 return is_object($this->description_language) ? $this->description_language :
false;
91 return is_object($this->description_language) ? $this->description_language->getLanguageCode() :
false;
99 $fields[
'meta_rights_id'] =
array(
'integer',$next_id = $ilDB->nextId(
'il_meta_rights'));
101 if($this->db->insert(
'il_meta_rights',$fields))
115 if($this->db->update(
'il_meta_rights',
116 $this->__getFields(),
131 $query =
"DELETE FROM il_meta_rights ".
132 "WHERE meta_rights_id = ".$ilDB->quote($this->
getMetaId() ,
'integer');
157 include_once
'Services/MetaData/classes/class.ilMDLanguageItem.php';
163 $query =
"SELECT * FROM il_meta_rights ".
164 "WHERE meta_rights_id = ".$ilDB->quote($this->
getMetaId() ,
'integer');
190 $writer->xmlStartTag(
'Rights',
array(
'Cost' => $this->
getCosts()
196 include_once
'./Services/MetaData/classes/class.ilMDCopyrightSelectionEntry.php';
203 $writer->xmlEndTag(
'Rights');
218 $query =
"SELECT description FROM il_meta_rights ".
219 "WHERE rbac_id = ".$ilDB->quote($a_rbac_id ,
'integer').
" ".
220 "AND obj_id = ".$ilDB->quote($a_obj_id ,
'integer').
" ";
223 return $row->description ?
$row->description :
'';
227 static function _getId($a_rbac_id,$a_obj_id)
231 $query =
"SELECT meta_rights_id FROM il_meta_rights ".
232 "WHERE rbac_id = ".$ilDB->quote($a_rbac_id ,
'integer').
" ".
233 "AND obj_id = ".$ilDB->quote($a_obj_id ,
'integer');
238 return $row->meta_rights_id;
static _getId($a_rbac_id, $a_obj_id)
getDescriptionLanguageCode()
& getDescriptionLanguage()
setDescriptionLanguage(&$lng_obj)
static _lookupDescription($a_rbac_id, $a_obj_id)
Lookup description (copyright)
setMetaId($a_meta_id, $a_read_data=true)
setCopyrightAndOtherRestrictions($a_caor)
getCopyrightAndOtherRestrictions()
Create styles array
The data for the language used.
static lookupCopyyrightTitle($a_cp_string)
Lookup copyright title.
setDescription($a_description)