32 include_once
'class.ilMDBase.php';
39 $this->entity = $a_entity;
51 $fields[
'meta_entity_id'] =
array(
'integer',$next_id = $ilDB->nextId(
'il_meta_entity'));
53 if($this->db->insert(
'il_meta_entity',$fields))
67 if($this->db->update(
'il_meta_entity',
83 $query =
"DELETE FROM il_meta_entity ".
84 "WHERE meta_entity_id = ".$ilDB->quote($this->
getMetaId(),
'integer');
111 $query =
"SELECT * FROM il_meta_entity ".
112 "WHERE meta_entity_id = ".$ilDB->quote($this->
getMetaId() ,
'integer');
135 $writer->xmlElement(
'Entity',null,$this->
getEntity());
140 public static function _getIds($a_rbac_id,$a_obj_id,$a_parent_id,$a_parent_type)
144 $query =
"SELECT meta_entity_id FROM il_meta_entity ".
145 "WHERE rbac_id = ".$ilDB->quote($a_rbac_id ,
'integer').
" ".
146 "AND obj_id = ".$ilDB->quote($a_obj_id ,
'integer').
" ".
147 "AND parent_id = ".$ilDB->quote($a_parent_id ,
'integer').
" ".
148 "AND parent_type = ".$ilDB->quote($a_parent_type ,
'text').
" ".
149 "ORDER BY meta_entity_id ";
154 $ids[] =
$row->meta_entity_id;
156 return $ids ? $ids :
array();
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.
setParentType($a_parent_type)