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';
46 if (!$a_identifier_id) {
50 $ide->setMetaId($a_identifier_id);
56 include_once
'Services/Migration/DBUpdate_426/classes/class.ilMDIdentifier.php';
60 $ide->setParentType(
'meta_meta_data');
67 include_once
'Services/Migration/DBUpdate_426/classes/class.ilMDContribute.php';
73 include_once
'Services/Migration/DBUpdate_426/classes/class.ilMDContribute.php';
75 if (!$a_contribute_id) {
79 $con->setMetaId($a_contribute_id);
85 include_once
'Services/Migration/DBUpdate_426/classes/class.ilMDContribute.php';
89 $con->setParentType(
'meta_meta_data');
99 $this->meta_data_scheme = $a_val;
108 if (is_object($lng_obj)) {
118 return is_object($this->
language) ? $this->
language->getLanguageCode() :
false;
124 if ($this->db->autoExecute(
126 $this->__getFields(),
129 $this->
setMetaId($this->db->getLastInsertId());
141 if ($this->db->autoExecute(
143 $this->__getFields(),
145 "meta_meta_data_id = " . $ilDB->quote($this->
getMetaId())
153 public function delete()
158 $query =
"DELETE FROM il_meta_meta_data " .
159 "WHERE meta_meta_data_id = " . $ilDB->quote($this->
getMetaId());
182 return array(
'rbac_id' => $this->
getRBACId(),
193 include_once
'Services/Migration/DBUpdate_426/classes/class.ilMDLanguageItem.php';
197 $query =
"SELECT * FROM il_meta_meta_data " .
198 "WHERE meta_meta_data_id = " . $ilDB->quote($this->
getMetaId());
221 if ($this->getMigration / DBUpdate_426Scheme()) {
222 $attr[
'Metadata-Scheme'] = $this->getMigration / DBUpdate_426Scheme();
227 $writer->xmlStartTag(
'Meta-Metadata', $attr ? $attr : null);
232 $ide->toXML($writer);
238 $con->toXML($writer);
241 $writer->xmlEndTag(
'Meta-Metadata');
245 public function _getId($a_rbac_id, $a_obj_id)
249 $query =
"SELECT meta_meta_data_id FROM il_meta_meta_data " .
250 "WHERE rbac_id = " . $ilDB->quote($a_rbac_id) .
" " .
251 "AND obj_id = " . $ilDB->quote($a_obj_id);
255 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)
if(!array_key_exists('StateId', $_REQUEST)) $id
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
static prepareDBString($a_str)
prepare a string for db writing (insert/update)