31 include_once
'class.ilMDBase.php';
45 $this->catalog = $a_catalog;
49 return $this->catalog;
53 $this->entry = $a_entry;
63 if($this->db->autoExecute(
'il_meta_identifier_',
67 $this->
setMetaId($this->db->getLastInsertId());
80 if($this->db->autoExecute(
'il_meta_identifier_',
83 "meta_identifier__id = ".$ilDB->quote($this->
getMetaId())))
97 $query =
"DELETE FROM il_meta_identifier_ ".
98 "WHERE meta_identifier__id = ".$ilDB->quote($this->
getMetaId());
110 return array(
'rbac_id' => $this->
getRBACId(),
126 $query =
"SELECT * FROM il_meta_identifier_ ".
127 "WHERE meta_identifier__id = ".$ilDB->quote($this->
getMetaId());
151 $writer->xmlElement(
'Identifier_',array(
'Catalog' => $this->
getCatalog(),
157 function _getIds($a_rbac_id,$a_obj_id,$a_parent_id,$a_parent_type)
161 $query =
"SELECT meta_identifier__id FROM il_meta_identifier_ ".
162 "WHERE rbac_id = ".$ilDB->quote($a_rbac_id).
" ".
163 "AND obj_id = ".$ilDB->quote($a_obj_id).
" ".
164 "AND parent_id = ".$ilDB->quote($a_parent_id).
" ".
165 "AND parent_type = ".$ilDB->quote($a_parent_type);
171 $ids[] =
$row->meta_identifier__id;
173 return $ids ? $ids : array();