31 include_once
'class.ilMDBase.php';
38 $this->taxon = $a_taxon;
46 if(is_object($lng_obj))
48 $this->taxon_language = $lng_obj;
53 return is_object($this->taxon_language) ? $this->taxon_language :
false;
57 return is_object($this->taxon_language) ? $this->taxon_language->getLanguageCode() :
false;
61 $this->taxon_id = $a_taxon_id;
65 return $this->taxon_id;
71 if($this->db->autoExecute(
'il_meta_taxon',
75 $this->
setMetaId($this->db->getLastInsertId());
88 if($this->db->autoExecute(
'il_meta_taxon',
91 "meta_taxon_id = ".$ilDB->quote($this->
getMetaId())))
103 $query =
"DELETE FROM il_meta_taxon ".
104 "WHERE meta_taxon_id = ".$ilDB->quote($this->
getMetaId());
130 include_once
'Services/Migration/DBUpdate_426/classes/class.ilMDLanguageItem.php';
134 $query =
"SELECT * FROM il_meta_taxon ".
135 "WHERE meta_taxon_id = ".$ilDB->quote($this->
getMetaId());
166 function _getIds($a_rbac_id,$a_obj_id,$a_parent_id,$a_parent_type)
170 $query =
"SELECT meta_taxon_id FROM il_meta_taxon ".
171 "WHERE rbac_id = ".$ilDB->quote($a_rbac_id).
" ".
172 "AND obj_id = ".$ilDB->quote($a_obj_id).
" ".
173 "AND parent_id = ".$ilDB->quote($a_parent_id).
" ".
174 "AND parent_type = ".$ilDB->quote($a_parent_type);
180 $ids[] =
$row->meta_taxon_id;
182 return $ids ? $ids :
array();
setTaxonLanguage(&$lng_obj)
_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)
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)