31 include_once
'class.ilMDBase.php';
38 $this->catalog = $a_catalog;
42 return $this->catalog;
46 $this->entry = $a_entry;
56 if($this->db->autoExecute(
'il_meta_identifier_',
60 $this->
setMetaId($this->db->getLastInsertId());
73 if($this->db->autoExecute(
'il_meta_identifier_',
76 "meta_identifier__id = ".$ilDB->quote($this->
getMetaId())))
90 $query =
"DELETE FROM il_meta_identifier_ ".
91 "WHERE meta_identifier__id = ".$ilDB->quote($this->
getMetaId());
119 $query =
"SELECT * FROM il_meta_identifier_ ".
120 "WHERE meta_identifier__id = ".$ilDB->quote($this->
getMetaId());
144 $writer->xmlElement(
'Identifier_',
array(
'Catalog' => $this->
getCatalog(),
150 function _getIds($a_rbac_id,$a_obj_id,$a_parent_id,$a_parent_type)
154 $query =
"SELECT meta_identifier__id FROM il_meta_identifier_ ".
155 "WHERE rbac_id = ".$ilDB->quote($a_rbac_id).
" ".
156 "AND obj_id = ".$ilDB->quote($a_obj_id).
" ".
157 "AND parent_id = ".$ilDB->quote($a_parent_id).
" ".
158 "AND parent_type = ".$ilDB->quote($a_parent_type);
164 $ids[] =
$row->meta_identifier__id;
166 return $ids ? $ids :
array();
const MDB2_AUTOQUERY_UPDATE
setMetaId($a_meta_id, $a_read_data=true)
static stripSlashes($a_str, $a_strip_html=true, $a_allow="")
strip slashes if magic qoutes is enabled
Create styles array
The data for the language used.
_getIds($a_rbac_id, $a_obj_id, $a_parent_id, $a_parent_type)
static prepareDBString($a_str)
prepare a string for db writing (insert/update)
const MDB2_AUTOQUERY_INSERT
setParentType($a_parent_type)