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;
74 $fields[
'meta_taxon_id'] =
array(
'integer',$next_id = $ilDB->nextId(
'il_meta_taxon'));
76 if($this->db->insert(
'il_meta_taxon',$fields))
90 if($this->db->update(
'il_meta_taxon',
106 $query =
"DELETE FROM il_meta_taxon ".
107 "WHERE meta_taxon_id = ".$ilDB->quote($this->
getMetaId() ,
'integer');
133 include_once
'Services/MetaData/classes/class.ilMDLanguageItem.php';
137 $query =
"SELECT * FROM il_meta_taxon ".
138 "WHERE meta_taxon_id = ".$ilDB->quote($this->
getMetaId() ,
'integer');
173 static 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 ,
'integer').
" ".
179 "AND obj_id = ".$ilDB->quote($a_obj_id ,
'integer').
" ".
180 "AND parent_id = ".$ilDB->quote($a_parent_id ,
'integer').
" ".
181 "AND parent_type = ".$ilDB->quote($a_parent_type ,
'text');
187 $ids[] =
$row->meta_taxon_id;
189 return $ids ? $ids :
array();
setTaxonLanguage(&$lng_obj)
setMetaId($a_meta_id, $a_read_data=true)
Create styles array
The data for the language used.
static _getIds($a_rbac_id, $a_obj_id, $a_parent_id, $a_parent_type)
setParentType($a_parent_type)