31 include_once
'class.ilMDBase.php';
38 $this->typical_age_range = $a_typical_age_range;
42 return $this->typical_age_range;
46 if(is_object($lng_obj))
48 $this->typical_age_range_language = $lng_obj;
53 return is_object($this->typical_age_range_language) ? $this->typical_age_range_language :
false;
57 return is_object($this->typical_age_range_language) ? $this->typical_age_range_language->getLanguageCode() :
false;
62 $this->typical_age_range_minimum = $a_min;
66 return $this->typical_age_range_minimum;
70 $this->typical_age_range_maximum = $a_max;
74 return $this->typical_age_range_maximum;
83 $fields[
'meta_tar_id'] =
array(
'integer',$next_id = $ilDB->nextId(
'il_meta_tar'));
85 if($this->db->insert(
'il_meta_tar',$fields))
100 if($this->db->update(
'il_meta_tar',
101 $this->__getFields(),
116 $query =
"DELETE FROM il_meta_tar ".
117 "WHERE meta_tar_id = ".$ilDB->quote($this->
getMetaId() ,
'integer');
142 include_once
'Services/MetaData/classes/class.ilMDLanguageItem.php';
146 $query =
"SELECT * FROM il_meta_tar ".
147 "WHERE meta_tar_id = ".$ilDB->quote($this->
getMetaId() ,
'integer');
181 static function _getIds($a_rbac_id,$a_obj_id,$a_parent_id,$a_parent_type)
185 $query =
"SELECT meta_tar_id FROM il_meta_tar ".
186 "WHERE rbac_id = ".$ilDB->quote($a_rbac_id ,
'integer').
" ".
187 "AND obj_id = ".$ilDB->quote($a_obj_id ,
'integer').
" ".
188 "AND parent_id = ".$ilDB->quote($a_parent_id ,
'integer').
" ".
189 "AND parent_type = ".$ilDB->quote($a_parent_type ,
'text');
194 $ids[] =
$row->meta_tar_id;
196 return $ids ? $ids :
array();
204 if(!$matches[2]
and !$matches[3])
206 $min = $max = $matches[1];
208 elseif($matches[2]
and !$matches[3])
setTypicalAgeRangeMaximum($a_max)
getTypicalAgeRangeMinimum()
& getTypicalAgeRangeLanguage()
static _getIds($a_rbac_id, $a_obj_id, $a_parent_id, $a_parent_type)
setMetaId($a_meta_id, $a_read_data=true)
setTypicalAgeRange($a_typical_age_range)
Create styles array
The data for the language used.
setTypicalAgeRangeMinimum($a_min)
setParentType($a_parent_type)
getTypicalAgeRangeMaximum()
setTypicalAgeRangeLanguage(&$lng_obj)
getTypicalAgeRangeLanguageCode()