31 include_once
'class.ilMDBase.php';
35 function ilMDLocation($a_rbac_id = 0,$a_obj_id = 0,$a_obj_type =
'')
45 $this->location = $a_location;
53 $this->location_type = $a_location_type;
57 return $this->location_type;
62 if($this->db->autoExecute(
'il_meta_location',
66 $this->
setMetaId($this->db->getLastInsertId());
79 if($this->db->autoExecute(
'il_meta_location',
82 "meta_location_id = ".$ilDB->quote($this->
getMetaId())))
96 $query =
"DELETE FROM il_meta_location ".
97 "WHERE meta_location_id = ".$ilDB->quote($this->
getMetaId());
109 return array(
'rbac_id' => $this->
getRBACId(),
122 include_once
'Services/Migration/DBUpdate_426/classes/class.ilMDLanguageItem.php';
126 $query =
"SELECT * FROM il_meta_location ".
127 "WHERE meta_location_id = ".$ilDB->quote($this->
getMetaId());
156 function _getIds($a_rbac_id,$a_obj_id,$a_parent_id,$a_parent_type)
160 $query =
"SELECT meta_location_id FROM il_meta_location ".
161 "WHERE rbac_id = ".$ilDB->quote($a_rbac_id).
" ".
162 "AND obj_id = ".$ilDB->quote($a_obj_id).
" ".
163 "AND parent_id = ".$ilDB->quote($a_parent_id).
" ".
164 "AND parent_type = ".$ilDB->quote($a_parent_type);
169 $ids[] =
$row->meta_location_id;
171 return $ids ? $ids : array();