31 include_once
'class.ilMDBase.php';
45 $this->catalog = $a_catalog;
49 return $this->catalog;
53 $this->entry = $a_entry;
66 $fields[
'meta_identifier__id'] = array(
'integer',$next_id = $ilDB->nextId(
'il_meta_identifier_'));
68 if($this->db->insert(
'il_meta_identifier_',$fields))
82 if($this->db->update(
'il_meta_identifier_',
84 array(
"meta_identifier__id" => array(
'integer',$this->
getMetaId()))))
98 $query =
"DELETE FROM il_meta_identifier_ ".
99 "WHERE meta_identifier__id = ".$ilDB->quote($this->
getMetaId() ,
'integer');
109 return array(
'rbac_id' => array(
'integer',$this->
getRBACId()),
110 'obj_id' => array(
'integer',$this->
getObjId()),
111 'obj_type' => array(
'text',$this->
getObjType()),
113 'parent_id' => array(
'integer',$this->
getParentId()),
114 'catalog' => array(
'text',$this->
getCatalog()),
115 'entry' => array(
'text',$this->
getEntry()));
124 $query =
"SELECT * FROM il_meta_identifier_ ".
125 "WHERE meta_identifier__id = ".$ilDB->quote($this->
getMetaId() ,
'integer');
149 $writer->xmlElement(
'Identifier_',array(
'Catalog' => $this->
getCatalog(),
155 function _getIds($a_rbac_id,$a_obj_id,$a_parent_id,$a_parent_type)
159 $query =
"SELECT meta_identifier__id FROM il_meta_identifier_ ".
160 "WHERE rbac_id = ".$ilDB->quote($a_rbac_id ,
'integer').
" ".
161 "AND obj_id = ".$ilDB->quote($a_obj_id ,
'integer').
" ".
162 "AND parent_id = ".$ilDB->quote($a_parent_id ,
'integer').
" ".
163 "AND parent_type = ".$ilDB->quote($a_parent_type ,
'text');
169 $ids[] =
$row->meta_identifier__id;
171 return $ids ? $ids : array();