31 include_once
'class.ilMDBase.php';
38 include_once
'Services/MetaData/classes/class.ilMDIdentifier_.php';
44 include_once
'Services/MetaData/classes/class.ilMDIdentifier_.php';
46 if(!$a_identifier__id)
51 $ide->setMetaId($a_identifier__id);
57 include_once
'Services/MetaData/classes/class.ilMDIdentifier_.php';
61 $ide->setParentType(
'meta_relation');
68 include_once
'Services/MetaData/classes/class.ilMDDescription.php';
74 include_once
'Services/MetaData/classes/class.ilMDDescription.php';
76 if(!$a_description_id)
81 $des->setMetaId($a_description_id);
87 include_once
'Services/MetaData/classes/class.ilMDDescription.php';
91 $des->setParentType(
'meta_relation');
107 case 'IsReferencedBy':
112 $this->kind = $a_kind;
130 $fields[
'meta_relation_id'] =
array(
'integer',$next_id = $ilDB->nextId(
'il_meta_relation'));
132 if($this->db->insert(
'il_meta_relation',$fields))
146 if($this->db->update(
'il_meta_relation',
147 $this->__getFields(),
162 $query =
"DELETE FROM il_meta_relation ".
163 "WHERE meta_relation_id = ".$ilDB->quote($this->
getMetaId() ,
'integer');
197 $query =
"SELECT * FROM il_meta_relation ".
198 "WHERE meta_relation_id = ".$ilDB->quote($this->
getMetaId() ,
'integer');
219 $writer->xmlStartTag(
'Relation',
array(
'Kind' => $this->
getKind()
222 $writer->xmlStartTag(
'Resource');
226 foreach($ides as $id)
229 $ide->toXML($writer);
233 include_once
'Services/MetaData/classes/class.ilMDIdentifier_.php';
235 $ide->toXML($writer);
240 foreach($dess as $id)
243 $des->toXML($writer);
247 include_once
'Services/MetaData/classes/class.ilMDDescription.php';
249 $des->toXML($writer);
252 $writer->xmlEndTag(
'Resource');
253 $writer->xmlEndTag(
'Relation');
263 $query =
"SELECT meta_relation_id FROM il_meta_relation ".
264 "WHERE rbac_id = ".$ilDB->quote($a_rbac_id ,
'integer').
" ".
265 "AND obj_id = ".$ilDB->quote($a_obj_id ,
'integer');
270 $ids[] =
$row->meta_relation_id;
272 return $ids ? $ids :
array();
static _getIds($a_rbac_id, $a_obj_id)
& getIdentifier_($a_identifier__id)
setMetaId($a_meta_id, $a_read_data=true)
Create styles array
The data for the language used.
static _getIds($a_rbac_id, $a_obj_id, $a_parent_id, $a_parent_type)
& getDescription($a_description_id)