31 include_once
'class.ilMDBase.php';
45 include_once
'Services/Migration/DBUpdate_426/classes/class.ilMDTaxon.php';
51 include_once
'Services/Migration/DBUpdate_426/classes/class.ilMDTaxon.php';
58 $tax->setMetaId($a_taxon_id);
64 include_once
'Services/Migration/DBUpdate_426/classes/class.ilMDTaxon.php';
68 $tax->setParentType(
'meta_taxon_path');
76 $this->source = $a_source;
84 if(is_object($lng_obj))
86 $this->source_language = $lng_obj;
91 return is_object($this->source_language) ? $this->source_language :
false;
95 return is_object($this->source_language) ? $this->source_language->getLanguageCode() :
false;
101 if($this->db->autoExecute(
'il_meta_taxon_path',
102 $this->__getFields(),
103 DB_AUTOQUERY_INSERT))
105 $this->
setMetaId($this->db->getLastInsertId());
118 if($this->db->autoExecute(
'il_meta_taxon_path',
119 $this->__getFields(),
121 "meta_taxon_path_id = ".$ilDB->quote($this->
getMetaId())))
135 $query =
"DELETE FROM il_meta_taxon_path ".
136 "WHERE meta_taxon_path_id = ".$ilDB->quote($this->
getMetaId());
154 return array(
'rbac_id' => $this->
getRBACId(),
167 include_once
'Services/Migration/DBUpdate_426/classes/class.ilMDLanguageItem.php';
171 $query =
"SELECT * FROM il_meta_taxon_path ".
172 "WHERE meta_taxon_path_id = ".$ilDB->quote($this->
getMetaId());
196 $writer->xmlStartTag(
'TaxonPath');
204 $tax->toXML($writer);
207 $writer->xmlEndTag(
'TaxonPath');
213 function _getIds($a_rbac_id,$a_obj_id,$a_parent_id,$a_parent_type)
217 $query =
"SELECT meta_taxon_path_id FROM il_meta_taxon_path ".
218 "WHERE rbac_id = ".$ilDB->quote($a_rbac_id).
" ".
219 "AND obj_id = ".$ilDB->quote($a_obj_id).
" ".
220 "AND parent_id = ".$ilDB->quote($a_parent_id).
" ".
221 "AND parent_type = ".$ilDB->quote($a_parent_type);
226 $ids[] =
$row->meta_taxon_path_id;
228 return $ids ? $ids : array();