31 include_once
'class.ilMDBase.php';
46 $this->catalog = $a_catalog;
50 return $this->catalog;
54 $this->entry = $a_entry;
64 if($this->db->autoExecute(
'il_meta_identifier',
68 $this->
setMetaId($this->db->getLastInsertId());
81 if($this->db->autoExecute(
'il_meta_identifier',
84 "meta_identifier_id = ".$ilDB->quote($this->
getMetaId())))
98 $query =
"DELETE FROM il_meta_identifier ".
99 "WHERE meta_identifier_id = ".$ilDB->quote($this->
getMetaId());
111 return array(
'rbac_id' => $this->
getRBACId(),
127 $query =
"SELECT * FROM il_meta_identifier ".
128 "WHERE meta_identifier_id = ".$ilDB->quote($this->
getMetaId());
152 $writer->xmlElement(
'Identifier',array(
'Catalog' => $this->
getCatalog(),
158 function _getIds($a_rbac_id,$a_obj_id,$a_parent_id,$a_parent_type)
162 $query =
"SELECT meta_identifier_id FROM il_meta_identifier ".
163 "WHERE rbac_id = ".$ilDB->quote($a_rbac_id).
" ".
164 "AND obj_id = ".$ilDB->quote($a_obj_id).
" ".
165 "AND parent_id = ".$ilDB->quote($a_parent_id).
" ".
166 "AND parent_type = ".$ilDB->quote($a_parent_type);
172 $ids[] =
$row->meta_identifier_id;
174 return $ids ? $ids : array();