31 include_once
'class.ilMDBase.php';
38 include_once
'Services/MetaData/classes/class.ilMDTaxon.php';
44 include_once
'Services/MetaData/classes/class.ilMDTaxon.php';
51 $tax->setMetaId($a_taxon_id);
57 include_once
'Services/MetaData/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;
97 $fields[
'meta_taxon_path_id'] =
array(
'integer',$next_id = $ilDB->nextId(
'il_meta_taxon_path'));
99 if($this->db->insert(
'il_meta_taxon_path',$fields))
113 if($this->db->update(
'il_meta_taxon_path',
114 $this->__getFields(),
129 $query =
"DELETE FROM il_meta_taxon_path ".
130 "WHERE meta_taxon_path_id = ".$ilDB->quote($this->
getMetaId(),
'integer');
160 include_once
'Services/MetaData/classes/class.ilMDLanguageItem.php';
164 $query =
"SELECT * FROM il_meta_taxon_path ".
165 "WHERE meta_taxon_path_id = ".$ilDB->quote($this->
getMetaId() ,
'integer');
189 $writer->xmlStartTag(
'TaxonPath');
198 foreach($taxs as $id)
201 $tax->toXML($writer);
205 include_once
'Services/MetaData/classes/class.ilMDTaxon.php';
207 $tax->toXML($writer);
210 $writer->xmlEndTag(
'TaxonPath');
216 static function _getIds($a_rbac_id,$a_obj_id,$a_parent_id,$a_parent_type)
220 $query =
"SELECT meta_taxon_path_id FROM il_meta_taxon_path ".
221 "WHERE rbac_id = ".$ilDB->quote($a_rbac_id ,
'integer').
" ".
222 "AND obj_id = ".$ilDB->quote($a_obj_id ,
'integer').
" ".
223 "AND parent_id = ".$ilDB->quote($a_parent_id ,
'integer').
" ".
224 "AND parent_type = ".$ilDB->quote($a_parent_type ,
'text');
229 $ids[] =
$row->meta_taxon_path_id;
231 return $ids ? $ids :
array();
static _getIds($a_rbac_id, $a_obj_id, $a_parent_id, $a_parent_type)
setMetaId($a_meta_id, $a_read_data=true)
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)
setParentType($a_parent_type)