31 include_once
'class.ilMDBase.php';
38 $this->or_composite_id = (int) $a_or_composite_id;
42 return (
int) $this->or_composite_id;
55 $this->operating_system_name = $a_val;
64 return $this->operating_system_name;
68 $this->operating_system_minimum_version = $a_val;
72 return $this->operating_system_minimum_version;
76 $this->operating_system_maximum_version = $a_val;
80 return $this->operating_system_maximum_version;
86 case 'NetscapeCommunicator':
87 case 'MS-InternetExplorer':
91 $this->browser_name = $a_val;
100 return $this->browser_name;
104 $this->browser_minimum_version = $a_val;
108 return $this->browser_minimum_version;
112 $this->browser_maximum_version = $a_val;
116 return $this->browser_maximum_version;
124 $fields[
'meta_requirement_id'] =
array(
'integer',$next_id = $ilDB->nextId(
'il_meta_requirement'));
126 if ($this->db->insert(
'il_meta_requirement', $fields)) {
138 if ($this->db->update(
139 'il_meta_requirement',
140 $this->__getFields(),
149 public function delete()
154 $query =
"DELETE FROM il_meta_requirement " .
155 "WHERE meta_requirement_id = " . $ilDB->quote($this->
getMetaId(),
'integer');
183 include_once
'Services/MetaData/classes/class.ilMDLanguageItem.php';
186 $query =
"SELECT * FROM il_meta_requirement " .
187 "WHERE meta_requirement_id = " . $ilDB->quote($this->
getMetaId(),
'integer');
215 $writer->xmlStartTag(
'Requirement');
216 $writer->xmlStartTag(
'Type');
232 $writer->xmlEndTag(
'Type');
233 $writer->xmlEndTag(
'Requirement');
238 public static function _getIds($a_rbac_id, $a_obj_id, $a_parent_id, $a_parent_type, $a_or_composite_id = 0)
242 $query =
"SELECT meta_requirement_id FROM il_meta_requirement " .
243 "WHERE rbac_id = " . $ilDB->quote($a_rbac_id,
'integer') .
" " .
244 "AND obj_id = " . $ilDB->quote($a_obj_id,
'integer') .
" " .
245 "AND parent_id = " . $ilDB->quote($a_parent_id,
'integer') .
" " .
246 "AND parent_type = " . $ilDB->quote($a_parent_type,
'text') .
" " .
247 "AND or_composite_id = " . $ilDB->quote($a_or_composite_id,
'integer');
251 $ids[] =
$row->meta_requirement_id;
253 return $ids ? $ids :
array();
setOperatingSystemName($a_val)
getOperatingSystemMinimumVersion()
setOperatingSystemMinimumVersion($a_val)
setOrCompositeId($a_or_composite_id)
getBrowserMaximumVersion()
setMetaId($a_meta_id, $a_read_data=true)
foreach($_POST as $key=> $value) $res
Create styles array
The data for the language used.
getOperatingSystemMaximumVersion()
setOperatingSystemMaximumVersion($a_val)
setParentType($a_parent_type)
getBrowserMinimumVersion()
setBrowserMaximumVersion($a_val)
setBrowserMinimumVersion($a_val)
static _getIds($a_rbac_id, $a_obj_id, $a_parent_id, $a_parent_type, $a_or_composite_id=0)