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;
133 $fields[
'meta_requirement_id'] = array(
'integer',$next_id = $ilDB->nextId(
'il_meta_requirement'));
135 if($this->db->insert(
'il_meta_requirement',$fields))
149 if($this->db->update(
'il_meta_requirement',
150 $this->__getFields(),
151 array(
"meta_requirement_id" => array(
'integer',$this->
getMetaId()))))
165 $query =
"DELETE FROM il_meta_requirement ".
166 "WHERE meta_requirement_id = ".$ilDB->quote($this->
getMetaId() ,
'integer');
176 return array(
'rbac_id' => array(
'integer',$this->
getRBACId()),
177 'obj_id' => array(
'integer',$this->
getObjId()),
178 'obj_type' => array(
'text',$this->
getObjType()),
180 'parent_id' => array(
'integer',$this->
getParentId()),
194 include_once
'Services/MetaData/classes/class.ilMDLanguageItem.php';
198 $query =
"SELECT * FROM il_meta_requirement ".
199 "WHERE meta_requirement_id = ".$ilDB->quote($this->
getMetaId() ,
'integer');
228 $writer->xmlStartTag(
'Requirement');
229 $writer->xmlStartTag(
'Type');
241 $writer->xmlElement(
'Browser',array(
'Name' => $this->
getBrowserName()
247 $writer->xmlEndTag(
'Type');
248 $writer->xmlEndTag(
'Requirement');
254 function _getIds($a_rbac_id,$a_obj_id,$a_parent_id,$a_parent_type,$a_or_composite_id = 0)
258 $query =
"SELECT meta_requirement_id FROM il_meta_requirement ".
259 "WHERE rbac_id = ".$ilDB->quote($a_rbac_id ,
'integer').
" ".
260 "AND obj_id = ".$ilDB->quote($a_obj_id ,
'integer').
" ".
261 "AND parent_id = ".$ilDB->quote($a_parent_id ,
'integer').
" ".
262 "AND parent_type = ".$ilDB->quote($a_parent_type ,
'text').
" ".
263 "AND or_composite_id = ".$ilDB->quote($a_or_composite_id ,
'integer');
268 $ids[] =
$row->meta_requirement_id;
270 return $ids ? $ids : array();