31 include_once
'class.ilMDBase.php';
38 $this->taxon = $a_taxon;
46 if (is_object($lng_obj)) {
47 $this->taxon_language = $lng_obj;
52 return is_object($this->taxon_language) ? $this->taxon_language :
false;
56 return is_object($this->taxon_language) ? $this->taxon_language->getLanguageCode() :
false;
60 $this->taxon_id = $a_taxon_id;
64 return $this->taxon_id;
70 if ($this->db->autoExecute(
75 $this->
setMetaId($this->db->getLastInsertId());
87 if ($this->db->autoExecute(
91 "meta_taxon_id = " . $ilDB->quote($this->
getMetaId())
99 public function delete()
102 $query =
"DELETE FROM il_meta_taxon " .
129 include_once
'Services/Migration/DBUpdate_426/classes/class.ilMDLanguageItem.php';
132 $query =
"SELECT * FROM il_meta_taxon " .
133 "WHERE meta_taxon_id = " . $ilDB->quote($this->
getMetaId());
163 public function _getIds($a_rbac_id, $a_obj_id, $a_parent_id, $a_parent_type)
167 $query =
"SELECT meta_taxon_id FROM il_meta_taxon " .
168 "WHERE rbac_id = " . $ilDB->quote($a_rbac_id) .
" " .
169 "AND obj_id = " . $ilDB->quote($a_obj_id) .
" " .
170 "AND parent_id = " . $ilDB->quote($a_parent_id) .
" " .
171 "AND parent_type = " . $ilDB->quote($a_parent_type);
176 $ids[] =
$row->meta_taxon_id;
178 return $ids ? $ids :
array();
setTaxonLanguage(&$lng_obj)
_getIds($a_rbac_id, $a_obj_id, $a_parent_id, $a_parent_type)
const MDB2_AUTOQUERY_UPDATE
setMetaId($a_meta_id, $a_read_data=true)
foreach($_POST as $key=> $value) $res
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.
static prepareDBString($a_str)
prepare a string for db writing (insert/update)
const MDB2_AUTOQUERY_INSERT
setParentType($a_parent_type)