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';
50 $tax->setMetaId($a_taxon_id);
56 include_once
'Services/Migration/DBUpdate_426/classes/class.ilMDTaxon.php';
60 $tax->setParentType(
'meta_taxon_path');
68 $this->source = $a_source;
76 if (is_object($lng_obj)) {
77 $this->source_language = $lng_obj;
82 return is_object($this->source_language) ? $this->source_language :
false;
86 return is_object($this->source_language) ? $this->source_language->getLanguageCode() :
false;
92 if ($this->db->autoExecute(
97 $this->
setMetaId($this->db->getLastInsertId());
109 if ($this->db->autoExecute(
110 'il_meta_taxon_path',
111 $this->__getFields(),
113 "meta_taxon_path_id = " . $ilDB->quote($this->
getMetaId())
121 public function delete()
126 $query =
"DELETE FROM il_meta_taxon_path " .
127 "WHERE meta_taxon_path_id = " . $ilDB->quote($this->
getMetaId());
157 include_once
'Services/Migration/DBUpdate_426/classes/class.ilMDLanguageItem.php';
160 $query =
"SELECT * FROM il_meta_taxon_path " .
161 "WHERE meta_taxon_path_id = " . $ilDB->quote($this->
getMetaId());
184 $writer->xmlStartTag(
'TaxonPath');
191 $tax->toXML($writer);
194 $writer->xmlEndTag(
'TaxonPath');
200 public function _getIds($a_rbac_id, $a_obj_id, $a_parent_id, $a_parent_type)
204 $query =
"SELECT meta_taxon_path_id FROM il_meta_taxon_path " .
205 "WHERE rbac_id = " . $ilDB->quote($a_rbac_id) .
" " .
206 "AND obj_id = " . $ilDB->quote($a_obj_id) .
" " .
207 "AND parent_id = " . $ilDB->quote($a_parent_id) .
" " .
208 "AND parent_type = " . $ilDB->quote($a_parent_type);
212 $ids[] =
$row->meta_taxon_path_id;
214 return $ids ? $ids :
array();
if(!array_key_exists('StateId', $_REQUEST)) $id
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.
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)