31 include_once
'class.ilMDBase.php';
35 function ilMDTaxon($a_rbac_id = 0,$a_obj_id = 0,$a_obj_type =
'')
45 $this->taxon = $a_taxon;
53 if(is_object($lng_obj))
55 $this->taxon_language = $lng_obj;
60 return is_object($this->taxon_language) ? $this->taxon_language :
false;
64 return is_object($this->taxon_language) ? $this->taxon_language->getLanguageCode() :
false;
68 $this->taxon_id = $a_taxon_id;
72 return $this->taxon_id;
78 if($this->db->autoExecute(
'il_meta_taxon',
82 $this->
setMetaId($this->db->getLastInsertId());
95 if($this->db->autoExecute(
'il_meta_taxon',
98 "meta_taxon_id = ".$ilDB->quote($this->
getMetaId())))
110 $query =
"DELETE FROM il_meta_taxon ".
111 "WHERE meta_taxon_id = ".$ilDB->quote($this->
getMetaId());
123 return array(
'rbac_id' => $this->
getRBACId(),
137 include_once
'Services/Migration/DBUpdate_426/classes/class.ilMDLanguageItem.php';
141 $query =
"SELECT * FROM il_meta_taxon ".
142 "WHERE meta_taxon_id = ".$ilDB->quote($this->
getMetaId());
173 function _getIds($a_rbac_id,$a_obj_id,$a_parent_id,$a_parent_type)
177 $query =
"SELECT meta_taxon_id FROM il_meta_taxon ".
178 "WHERE rbac_id = ".$ilDB->quote($a_rbac_id).
" ".
179 "AND obj_id = ".$ilDB->quote($a_obj_id).
" ".
180 "AND parent_id = ".$ilDB->quote($a_parent_id).
" ".
181 "AND parent_type = ".$ilDB->quote($a_parent_type);
187 $ids[] =
$row->meta_taxon_id;
189 return $ids ? $ids : array();