31include_once 
'class.ilMD5295Base.php';
 
   41                $this->costs = $a_costs;
 
   57                $this->caor = $a_caor;
 
   70        $this->description = $a_description;
 
   74        return $this->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;
 
   98        $fields[
'meta_rights_id'] = array(
'integer',$next_id = 
$ilDB->nextId(
'il_meta_rights'));
 
  100        if ($this->db->insert(
'il_meta_rights', $fields)) {
 
  114            if ($this->db->update(
 
  116                $this->__getFields(),
 
  117                array(
"meta_rights_id" => array(
'integer',$this->
getMetaId()))
 
  125    public function delete()
 
  132            $query = 
"DELETE FROM il_meta_rights " .
 
  133                "WHERE meta_rights_id = " . 
$ilDB->quote($this->
getMetaId(), 
'integer');
 
  145        return array(
'rbac_id' => array(
'integer',$this->
getRBACId()),
 
  146                     'obj_id' => array(
'integer',$this->
getObjId()),
 
  147                     'obj_type' => array(
'text',$this->
getObjType()),
 
  148                     'costs' => array(
'text',$this->
getCosts()),
 
  160        include_once 
'Services/Migration/DBUpdate_5295/classes/class.ilMD5295LanguageItem.php';
 
  164            $query = 
"SELECT * FROM il_meta_rights " .
 
  165                "WHERE meta_rights_id = " . 
$ilDB->quote($this->
getMetaId(), 
'integer');
 
  190        $writer->xmlStartTag(
'Rights', array(
'Cost' => $this->
getCosts()
 
  196        include_once 
'./Services/Migration/DBUpdate_5295/classes/class.ilMD5295CopyrightSelectionEntry.php';
 
  202            ilMD5295CopyrightSelectionEntry::lookupCopyyrightTitle($this->
getDescription())
 
  204        $writer->xmlEndTag(
'Rights');
 
  221        $query = 
"SELECT description FROM il_meta_rights " .
 
  222            "WHERE rbac_id = " . 
$ilDB->quote($a_rbac_id, 
'integer') . 
" " .
 
  223            "AND obj_id = " . 
$ilDB->quote($a_obj_id, 
'integer') . 
" ";
 
  226        return $row->description ? $row->description : 
'';
 
  230    public static function _getId($a_rbac_id, $a_obj_id)
 
  236        $query = 
"SELECT meta_rights_id FROM il_meta_rights " .
 
  237            "WHERE rbac_id = " . 
$ilDB->quote($a_rbac_id, 
'integer') . 
" " .
 
  238            "AND obj_id = " . 
$ilDB->quote($a_obj_id, 
'integer');
 
  242            return $row->meta_rights_id;
 
An exception for terminatinating execution or to throw for unit testing.
setMetaId($a_meta_id, $a_read_data=true)
getCopyrightAndOtherRestrictions()
& getDescriptionLanguage()
static _lookupDescription($a_rbac_id, $a_obj_id)
Lookup description (copyright)
getDescriptionLanguageCode()
setDescriptionLanguage(&$lng_obj)
setDescription($a_description)
setCopyrightAndOtherRestrictions($a_caor)
static _getId($a_rbac_id, $a_obj_id)
foreach($_POST as $key=> $value) $res