31 include_once
'class.ilMDBase.php';
38 include_once
'Services/Migration/DBUpdate_426/classes/class.ilMDTaxon.php';
44 include_once
'Services/Migration/DBUpdate_426/classes/class.ilMDTaxon.php';
51 $tax->setMetaId($a_taxon_id);
57 include_once
'Services/Migration/DBUpdate_426/classes/class.ilMDTaxon.php';
61 $tax->setParentType(
'meta_taxon_path');
69 $this->source = $a_source;
77 if(is_object($lng_obj))
79 $this->source_language = $lng_obj;
84 return is_object($this->source_language) ? $this->source_language :
false;
88 return is_object($this->source_language) ? $this->source_language->getLanguageCode() :
false;
94 if($this->db->autoExecute(
'il_meta_taxon_path',
98 $this->
setMetaId($this->db->getLastInsertId());
111 if($this->db->autoExecute(
'il_meta_taxon_path',
112 $this->__getFields(),
114 "meta_taxon_path_id = ".$ilDB->quote($this->
getMetaId())))
128 $query =
"DELETE FROM il_meta_taxon_path ".
129 "WHERE meta_taxon_path_id = ".$ilDB->quote($this->
getMetaId());
160 include_once
'Services/Migration/DBUpdate_426/classes/class.ilMDLanguageItem.php';
164 $query =
"SELECT * FROM il_meta_taxon_path ".
165 "WHERE meta_taxon_path_id = ".$ilDB->quote($this->
getMetaId());
189 $writer->xmlStartTag(
'TaxonPath');
197 $tax->toXML($writer);
200 $writer->xmlEndTag(
'TaxonPath');
206 function _getIds($a_rbac_id,$a_obj_id,$a_parent_id,$a_parent_type)
210 $query =
"SELECT meta_taxon_path_id FROM il_meta_taxon_path ".
211 "WHERE rbac_id = ".$ilDB->quote($a_rbac_id).
" ".
212 "AND obj_id = ".$ilDB->quote($a_obj_id).
" ".
213 "AND parent_id = ".$ilDB->quote($a_parent_id).
" ".
214 "AND parent_type = ".$ilDB->quote($a_parent_type);
219 $ids[] =
$row->meta_taxon_path_id;
221 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.
setSourceLanguage(&$lng_obj)
static _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)
_getIds($a_rbac_id, $a_obj_id, $a_parent_id, $a_parent_type)