31 include_once
'class.ilMDBase.php';
45 $this->typical_age_range = $a_typical_age_range;
49 return $this->typical_age_range;
53 if(is_object($lng_obj))
55 $this->typical_age_range_language = $lng_obj;
60 return is_object($this->typical_age_range_language) ? $this->typical_age_range_language :
false;
64 return is_object($this->typical_age_range_language) ? $this->typical_age_range_language->getLanguageCode() :
false;
69 $this->typical_age_range_minimum = $a_min;
73 return $this->typical_age_range_minimum;
77 $this->typical_age_range_maximum = $a_max;
81 return $this->typical_age_range_maximum;
90 $fields[
'meta_tar_id'] = array(
'integer',$next_id = $ilDB->nextId(
'il_meta_tar'));
92 if($this->db->insert(
'il_meta_tar',$fields))
107 if($this->db->update(
'il_meta_tar',
108 $this->__getFields(),
109 array(
"meta_tar_id" => array(
'integer',$this->
getMetaId()))))
123 $query =
"DELETE FROM il_meta_tar ".
124 "WHERE meta_tar_id = ".$ilDB->quote($this->
getMetaId() ,
'integer');
134 return array(
'rbac_id' => array(
'integer',$this->
getRBACId()),
135 'obj_id' => array(
'integer',$this->
getObjId()),
136 'obj_type' => array(
'text',$this->
getObjType()),
138 'parent_id' => array(
'integer',$this->
getParentId()),
149 include_once
'Services/MetaData/classes/class.ilMDLanguageItem.php';
153 $query =
"SELECT * FROM il_meta_tar ".
154 "WHERE meta_tar_id = ".$ilDB->quote($this->
getMetaId() ,
'integer');
188 function _getIds($a_rbac_id,$a_obj_id,$a_parent_id,$a_parent_type)
192 $query =
"SELECT meta_tar_id FROM il_meta_tar ".
193 "WHERE rbac_id = ".$ilDB->quote($a_rbac_id ,
'integer').
" ".
194 "AND obj_id = ".$ilDB->quote($a_obj_id ,
'integer').
" ".
195 "AND parent_id = ".$ilDB->quote($a_parent_id ,
'integer').
" ".
196 "AND parent_type = ".$ilDB->quote($a_parent_type ,
'text');
201 $ids[] =
$row->meta_tar_id;
203 return $ids ? $ids : array();
211 if(!$matches[2] and !$matches[3])
213 $min = $max = $matches[1];
215 elseif($matches[2] and !$matches[3])