31 include_once
'class.ilMDBase.php';
37 $subs[
'Identifier'] =
'meta_identifier';
38 $subs[
'Contribute'] =
'meta_contribute';
47 include_once
'Services/MetaData/classes/class.ilMDIdentifier.php';
53 include_once
'Services/MetaData/classes/class.ilMDIdentifier.php';
60 $ide->setMetaId($a_identifier_id);
66 include_once
'Services/MetaData/classes/class.ilMDIdentifier.php';
70 $ide->setParentType(
'meta_meta_data');
77 include_once
'Services/MetaData/classes/class.ilMDContribute.php';
83 include_once
'Services/MetaData/classes/class.ilMDContribute.php';
90 $con->setMetaId($a_contribute_id);
96 include_once
'Services/MetaData/classes/class.ilMDContribute.php';
100 $con->setParentType(
'meta_meta_data');
110 $this->meta_data_scheme = $a_val;
119 if(is_object($lng_obj))
130 return is_object($this->
language) ? $this->
language->getLanguageCode() :
false;
139 $fields[
'meta_meta_data_id'] =
array(
'integer',$next_id = $ilDB->nextId(
'il_meta_meta_data'));
141 if($this->db->insert(
'il_meta_meta_data',$fields))
155 if($this->db->update(
'il_meta_meta_data',
156 $this->__getFields(),
171 $query =
"DELETE FROM il_meta_meta_data ".
172 "WHERE meta_meta_data_id = ".$ilDB->quote($this->
getMetaId() ,
'integer');
207 include_once
'Services/MetaData/classes/class.ilMDLanguageItem.php';
213 $query =
"SELECT * FROM il_meta_meta_data ".
214 "WHERE meta_meta_data_id = ".$ilDB->quote($this->
getMetaId() ,
'integer');
246 $writer->xmlStartTag(
'Meta-Metadata',$attr ? $attr : null);
250 foreach($identifiers as $id)
253 $ide->toXML($writer);
255 if(!count($identifiers))
257 include_once
'Services/Metadata/classes/class.ilMDIdentifier.php';
259 $ide->toXML($writer);
264 foreach($contributes as $id)
267 $con->toXML($writer);
269 if(!count($contributes))
271 include_once
'Services/MetaData/classes/class.ilMDContribute.php';
273 $con->toXML($writer);
276 $writer->xmlEndTag(
'Meta-Metadata');
280 static function _getId($a_rbac_id,$a_obj_id)
284 $query =
"SELECT meta_meta_data_id FROM il_meta_meta_data ".
285 "WHERE rbac_id = ".$ilDB->quote($a_rbac_id ,
'integer').
" ".
286 "AND obj_id = ".$ilDB->quote($a_obj_id ,
'integer');
291 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)
setMetaId($a_meta_id, $a_read_data=true)
Create styles array
The data for the language used.