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(
61 $this->
setMetaId($this->db->getLastInsertId());
73 if ($this->db->autoExecute(
77 "meta_identifier_id = " . $ilDB->quote($this->
getMetaId())
85 public function delete()
90 $query =
"DELETE FROM il_meta_identifier " .
91 "WHERE meta_identifier_id = " . $ilDB->quote($this->
getMetaId());
117 $query =
"SELECT * FROM il_meta_identifier " .
118 "WHERE meta_identifier_id = " . $ilDB->quote($this->
getMetaId());
141 $writer->xmlElement(
'Identifier',
array(
'Catalog' => $this->
getCatalog(),
147 public function _getIds($a_rbac_id, $a_obj_id, $a_parent_id, $a_parent_type)
151 $query =
"SELECT meta_identifier_id FROM il_meta_identifier " .
152 "WHERE rbac_id = " . $ilDB->quote($a_rbac_id) .
" " .
153 "AND obj_id = " . $ilDB->quote($a_obj_id) .
" " .
154 "AND parent_id = " . $ilDB->quote($a_parent_id) .
" " .
155 "AND parent_type = " . $ilDB->quote($a_parent_type);
160 $ids[] =
$row->meta_identifier_id;
162 return $ids ? $ids :
array();
_getIds($a_rbac_id, $a_obj_id, $a_parent_id, $a_parent_type)
const MDB2_AUTOQUERY_UPDATE
setMetaId($a_meta_id, $a_read_data=true)
foreach($_POST as $key=> $value) $res
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.
static prepareDBString($a_str)
prepare a string for db writing (insert/update)
const MDB2_AUTOQUERY_INSERT
setParentType($a_parent_type)