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)) {
47 $this->typical_age_range_language = $lng_obj;
52 return is_object($this->typical_age_range_language) ? $this->typical_age_range_language :
false;
56 return is_object($this->typical_age_range_language) ? $this->typical_age_range_language->getLanguageCode() :
false;
61 $this->typical_age_range_minimum = $a_min;
65 return $this->typical_age_range_minimum;
69 $this->typical_age_range_maximum = $a_max;
73 return $this->typical_age_range_maximum;
82 $fields[
'meta_tar_id'] =
array(
'integer',$next_id = $ilDB->nextId(
'il_meta_tar'));
84 if ($this->db->insert(
'il_meta_tar', $fields)) {
97 if ($this->db->update(
108 public function delete()
113 $query =
"DELETE FROM il_meta_tar " .
114 "WHERE meta_tar_id = " . $ilDB->quote($this->
getMetaId(),
'integer');
139 include_once
'Services/MetaData/classes/class.ilMDLanguageItem.php';
142 $query =
"SELECT * FROM il_meta_tar " .
143 "WHERE meta_tar_id = " . $ilDB->quote($this->
getMetaId(),
'integer');
179 public static function _getIds($a_rbac_id, $a_obj_id, $a_parent_id, $a_parent_type)
183 $query =
"SELECT meta_tar_id FROM il_meta_tar " .
184 "WHERE rbac_id = " . $ilDB->quote($a_rbac_id,
'integer') .
" " .
185 "AND obj_id = " . $ilDB->quote($a_obj_id,
'integer') .
" " .
186 "AND parent_id = " . $ilDB->quote($a_parent_id,
'integer') .
" " .
187 "AND parent_type = " . $ilDB->quote($a_parent_type,
'text');
191 $ids[] =
$row->meta_tar_id;
193 return $ids ? $ids :
array();
200 if (!$matches[2] and !$matches[3]) {
201 $min = $max = $matches[1];
202 } 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)
foreach($_POST as $key=> $value) $res
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()