31 include_once
'class.ilMDBase.php';
38 include_once
'Services/Migration/DBUpdate_426/classes/class.ilMDIdentifier.php';
44 include_once
'Services/Migration/DBUpdate_426/classes/class.ilMDIdentifier.php';
51 $ide->setMetaId($a_identifier_id);
57 include_once
'Services/Migration/DBUpdate_426/classes/class.ilMDIdentifier.php';
61 $ide->setParentType(
'meta_meta_data');
68 include_once
'Services/Migration/DBUpdate_426/classes/class.ilMDContribute.php';
74 include_once
'Services/Migration/DBUpdate_426/classes/class.ilMDContribute.php';
81 $con->setMetaId($a_contribute_id);
87 include_once
'Services/Migration/DBUpdate_426/classes/class.ilMDContribute.php';
91 $con->setParentType(
'meta_meta_data');
101 $this->meta_data_scheme = $a_val;
110 if(is_object($lng_obj))
121 return is_object($this->
language) ? $this->
language->getLanguageCode() :
false;
127 if($this->db->autoExecute(
'il_meta_meta_data',
128 $this->__getFields(),
131 $this->
setMetaId($this->db->getLastInsertId());
144 if($this->db->autoExecute(
'il_meta_meta_data',
145 $this->__getFields(),
147 "meta_meta_data_id = ".$ilDB->quote($this->
getMetaId())))
161 $query =
"DELETE FROM il_meta_meta_data ".
162 "WHERE meta_meta_data_id = ".$ilDB->quote($this->
getMetaId());
198 include_once
'Services/Migration/DBUpdate_426/classes/class.ilMDLanguageItem.php';
204 $query =
"SELECT * FROM il_meta_meta_data ".
205 "WHERE meta_meta_data_id = ".$ilDB->quote($this->
getMetaId());
229 if($this->getMigration/DBUpdate_426Scheme())
231 $attr[
'Metadata-Scheme'] = $this->getMigration/DBUpdate_426Scheme();
237 $writer->xmlStartTag(
'Meta-Metadata',$attr ? $attr : null);
243 $ide->toXML($writer);
250 $con->toXML($writer);
253 $writer->xmlEndTag(
'Meta-Metadata');
261 $query =
"SELECT meta_meta_data_id FROM il_meta_meta_data ".
262 "WHERE rbac_id = ".$ilDB->quote($a_rbac_id).
" ".
263 "AND obj_id = ".$ilDB->quote($a_obj_id);
268 return $row->meta_meta_data_id;
static _getIds($a_rbac_id, $a_obj_id, $a_parent_id, $a_parent_type)
static _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)
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