31 include_once
'class.ilMDBase.php';
38 $this->location = $a_location;
46 $this->location_type = $a_location_type;
50 return $this->location_type;
55 if($this->db->autoExecute(
'il_meta_location',
59 $this->
setMetaId($this->db->getLastInsertId());
72 if($this->db->autoExecute(
'il_meta_location',
75 "meta_location_id = ".$ilDB->quote($this->
getMetaId())))
89 $query =
"DELETE FROM il_meta_location ".
90 "WHERE meta_location_id = ".$ilDB->quote($this->
getMetaId());
115 include_once
'Services/Migration/DBUpdate_426/classes/class.ilMDLanguageItem.php';
119 $query =
"SELECT * FROM il_meta_location ".
120 "WHERE meta_location_id = ".$ilDB->quote($this->
getMetaId());
149 function _getIds($a_rbac_id,$a_obj_id,$a_parent_id,$a_parent_type)
153 $query =
"SELECT meta_location_id FROM il_meta_location ".
154 "WHERE rbac_id = ".$ilDB->quote($a_rbac_id).
" ".
155 "AND obj_id = ".$ilDB->quote($a_obj_id).
" ".
156 "AND parent_id = ".$ilDB->quote($a_parent_id).
" ".
157 "AND parent_type = ".$ilDB->quote($a_parent_type);
162 $ids[] =
$row->meta_location_id;
164 return $ids ? $ids :
array();
setLocationType($a_location_type)
_getIds($a_rbac_id, $a_obj_id, $a_parent_id, $a_parent_type)
const MDB2_AUTOQUERY_UPDATE
setMetaId($a_meta_id, $a_read_data=true)
static stripSlashes($a_str, $a_strip_html=true, $a_allow="")
strip slashes if magic qoutes is enabled
Create styles array
The data for the language used.
static prepareDBString($a_str)
prepare a string for db writing (insert/update)
const MDB2_AUTOQUERY_INSERT
setParentType($a_parent_type)