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;
121 if ($this->db->autoExecute(
122 'il_meta_requirement',
123 $this->__getFields(),
126 $this->
setMetaId($this->db->getLastInsertId());
138 if ($this->db->autoExecute(
139 'il_meta_requirement',
140 $this->__getFields(),
142 "meta_requirement_id = " . $ilDB->quote($this->
getMetaId())
150 public function delete()
155 $query =
"DELETE FROM il_meta_requirement " .
156 "WHERE meta_requirement_id = " . $ilDB->quote($this->
getMetaId());
186 include_once
'Services/Migration/DBUpdate_426/classes/class.ilMDLanguageItem.php';
189 $query =
"SELECT * FROM il_meta_requirement " .
190 "WHERE meta_requirement_id = " . $ilDB->quote($this->
getMetaId());
218 $writer->xmlStartTag(
'Requirement');
219 $writer->xmlStartTag(
'Type');
230 $writer->xmlEndTag(
'Type');
231 $writer->xmlEndTag(
'Requirement');
236 public function _getIds($a_rbac_id, $a_obj_id, $a_parent_id, $a_parent_type, $a_or_composite_id = 0)
240 $query =
"SELECT meta_requirement_id FROM il_meta_requirement " .
241 "WHERE rbac_id = " . $ilDB->quote($a_rbac_id) .
" " .
242 "AND obj_id = " . $ilDB->quote($a_obj_id) .
" " .
243 "AND parent_id = " . $ilDB->quote($a_parent_id) .
" " .
244 "AND parent_type = " . $ilDB->quote($a_parent_type) .
" " .
245 "AND or_composite_id = " . $ilDB->quote($a_or_composite_id);
249 $ids[] =
$row->meta_requirement_id;
251 return $ids ? $ids :
array();
setOperatingSystemName($a_val)
getOperatingSystemMinimumVersion()
_getIds($a_rbac_id, $a_obj_id, $a_parent_id, $a_parent_type, $a_or_composite_id=0)
setOperatingSystemMinimumVersion($a_val)
setOrCompositeId($a_or_composite_id)
getBrowserMaximumVersion()
const MDB2_AUTOQUERY_UPDATE
setMetaId($a_meta_id, $a_read_data=true)
foreach($_POST as $key=> $value) $res
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.
getOperatingSystemMaximumVersion()
setOperatingSystemMaximumVersion($a_val)
static prepareDBString($a_str)
prepare a string for db writing (insert/update)
const MDB2_AUTOQUERY_INSERT
setParentType($a_parent_type)
getBrowserMinimumVersion()
setBrowserMaximumVersion($a_val)
setBrowserMinimumVersion($a_val)