31 include_once
'class.ilMDBase.php';
45 $this->or_composite_id = (int) $a_or_composite_id;
49 return (
int) $this->or_composite_id;
63 $this->operating_system_name = $a_val;
72 return $this->operating_system_name;
76 $this->operating_system_minimum_version = $a_val;
80 return $this->operating_system_minimum_version;
84 $this->operating_system_maximum_version = $a_val;
88 return $this->operating_system_maximum_version;
95 case 'NetscapeCommunicator':
96 case 'MS-InternetExplorer':
100 $this->browser_name = $a_val;
109 return $this->browser_name;
113 $this->browser_minimum_version = $a_val;
117 return $this->browser_minimum_version;
121 $this->browser_maximum_version = $a_val;
125 return $this->browser_maximum_version;
130 if($this->db->autoExecute(
'il_meta_requirement',
131 $this->__getFields(),
132 DB_AUTOQUERY_INSERT))
134 $this->
setMetaId($this->db->getLastInsertId());
147 if($this->db->autoExecute(
'il_meta_requirement',
148 $this->__getFields(),
150 "meta_requirement_id = ".$ilDB->quote($this->
getMetaId())))
164 $query =
"DELETE FROM il_meta_requirement ".
165 "WHERE meta_requirement_id = ".$ilDB->quote($this->
getMetaId());
177 return array(
'rbac_id' => $this->
getRBACId(),
195 include_once
'Services/Migration/DBUpdate_426/classes/class.ilMDLanguageItem.php';
199 $query =
"SELECT * FROM il_meta_requirement ".
200 "WHERE meta_requirement_id = ".$ilDB->quote($this->
getMetaId());
229 $writer->xmlStartTag(
'Requirement');
230 $writer->xmlStartTag(
'Type');
240 $writer->xmlElement(
'Browser',array(
'Name' => $this->
getBrowserName(),
244 $writer->xmlEndTag(
'Type');
245 $writer->xmlEndTag(
'Requirement');
251 function _getIds($a_rbac_id,$a_obj_id,$a_parent_id,$a_parent_type,$a_or_composite_id = 0)
255 $query =
"SELECT meta_requirement_id FROM il_meta_requirement ".
256 "WHERE rbac_id = ".$ilDB->quote($a_rbac_id).
" ".
257 "AND obj_id = ".$ilDB->quote($a_obj_id).
" ".
258 "AND parent_id = ".$ilDB->quote($a_parent_id).
" ".
259 "AND parent_type = ".$ilDB->quote($a_parent_type).
" ".
260 "AND or_composite_id = ".$ilDB->quote($a_or_composite_id);
265 $ids[] =
$row->meta_requirement_id;
267 return $ids ? $ids : array();