31 include_once
'class.ilMDBase.php';
46 include_once
'Services/Migration/DBUpdate_426/classes/class.ilMDIdentifier.php';
52 include_once
'Services/Migration/DBUpdate_426/classes/class.ilMDIdentifier.php';
59 $ide->setMetaId($a_identifier_id);
65 include_once
'Services/Migration/DBUpdate_426/classes/class.ilMDIdentifier.php';
69 $ide->setParentType(
'meta_meta_data');
76 include_once
'Services/Migration/DBUpdate_426/classes/class.ilMDContribute.php';
82 include_once
'Services/Migration/DBUpdate_426/classes/class.ilMDContribute.php';
89 $con->setMetaId($a_contribute_id);
95 include_once
'Services/Migration/DBUpdate_426/classes/class.ilMDContribute.php';
99 $con->setParentType(
'meta_meta_data');
109 $this->meta_data_scheme = $a_val;
118 if(is_object($lng_obj))
120 $this->language = $lng_obj;
125 return is_object($this->language) ? $this->language :
false;
129 return is_object($this->language) ? $this->language->getLanguageCode() :
false;
135 if($this->db->autoExecute(
'il_meta_meta_data',
136 $this->__getFields(),
137 DB_AUTOQUERY_INSERT))
139 $this->
setMetaId($this->db->getLastInsertId());
152 if($this->db->autoExecute(
'il_meta_meta_data',
153 $this->__getFields(),
155 "meta_meta_data_id = ".$ilDB->quote($this->
getMetaId())))
169 $query =
"DELETE FROM il_meta_meta_data ".
170 "WHERE meta_meta_data_id = ".$ilDB->quote($this->
getMetaId());
195 return array(
'rbac_id' => $this->
getRBACId(),
206 include_once
'Services/Migration/DBUpdate_426/classes/class.ilMDLanguageItem.php';
212 $query =
"SELECT * FROM il_meta_meta_data ".
213 "WHERE meta_meta_data_id = ".$ilDB->quote($this->
getMetaId());
237 if($this->getMigration/DBUpdate_426Scheme())
239 $attr[
'Metadata-Scheme'] = $this->getMigration/DBUpdate_426Scheme();
245 $writer->xmlStartTag(
'Meta-Metadata',$attr ? $attr : null);
251 $ide->toXML($writer);
258 $con->toXML($writer);
261 $writer->xmlEndTag(
'Meta-Metadata');
269 $query =
"SELECT meta_meta_data_id FROM il_meta_meta_data ".
270 "WHERE rbac_id = ".$ilDB->quote($a_rbac_id).
" ".
271 "AND obj_id = ".$ilDB->quote($a_obj_id);
276 return $row->meta_meta_data_id;