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;
96 $fields[
'meta_rights_id'] =
array(
'integer',$next_id = $ilDB->nextId(
'il_meta_rights'));
98 if ($this->db->insert(
'il_meta_rights', $fields)) {
110 if ($this->db->update(
112 $this->__getFields(),
121 public function delete()
126 $query =
"DELETE FROM il_meta_rights " .
127 "WHERE meta_rights_id = " . $ilDB->quote($this->
getMetaId(),
'integer');
152 include_once
'Services/MetaData/classes/class.ilMDLanguageItem.php';
156 $query =
"SELECT * FROM il_meta_rights " .
157 "WHERE meta_rights_id = " . $ilDB->quote($this->
getMetaId(),
'integer');
182 $writer->xmlStartTag(
'Rights',
array(
'Cost' => $this->
getCosts()
188 include_once
'./Services/MetaData/classes/class.ilMDCopyrightSelectionEntry.php';
196 $writer->xmlEndTag(
'Rights');
211 $query =
"SELECT description FROM il_meta_rights " .
212 "WHERE rbac_id = " . $ilDB->quote($a_rbac_id,
'integer') .
" " .
213 "AND obj_id = " . $ilDB->quote($a_obj_id,
'integer') .
" ";
216 return $row->description ?
$row->description :
'';
220 public static function _getId($a_rbac_id, $a_obj_id)
224 $query =
"SELECT meta_rights_id FROM il_meta_rights " .
225 "WHERE rbac_id = " . $ilDB->quote($a_rbac_id,
'integer') .
" " .
226 "AND obj_id = " . $ilDB->quote($a_obj_id,
'integer');
230 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)
foreach($_POST as $key=> $value) $res
setCopyrightAndOtherRestrictions($a_caor)
getCopyrightAndOtherRestrictions()
Create styles array
The data for the language used.
static lookupCopyyrightTitle($a_cp_string)
Lookup copyright title.
setDescription($a_description)