31 include_once
'class.ilMDBase.php';
38 $this->or_composite_id = (int) $a_or_composite_id;
42 return (
int) $this->or_composite_id;
56 $this->operating_system_name = $a_val;
65 return $this->operating_system_name;
69 $this->operating_system_minimum_version = $a_val;
73 return $this->operating_system_minimum_version;
77 $this->operating_system_maximum_version = $a_val;
81 return $this->operating_system_maximum_version;
88 case 'NetscapeCommunicator':
89 case 'MS-InternetExplorer':
93 $this->browser_name = $a_val;
102 return $this->browser_name;
106 $this->browser_minimum_version = $a_val;
110 return $this->browser_minimum_version;
114 $this->browser_maximum_version = $a_val;
118 return $this->browser_maximum_version;
126 $fields[
'meta_requirement_id'] =
array(
'integer',$next_id = $ilDB->nextId(
'il_meta_requirement'));
128 if($this->db->insert(
'il_meta_requirement',$fields))
142 if($this->db->update(
'il_meta_requirement',
143 $this->__getFields(),
158 $query =
"DELETE FROM il_meta_requirement ".
159 "WHERE meta_requirement_id = ".$ilDB->quote($this->
getMetaId() ,
'integer');
187 include_once
'Services/MetaData/classes/class.ilMDLanguageItem.php';
191 $query =
"SELECT * FROM il_meta_requirement ".
192 "WHERE meta_requirement_id = ".$ilDB->quote($this->
getMetaId() ,
'integer');
221 $writer->xmlStartTag(
'Requirement');
222 $writer->xmlStartTag(
'Type');
240 $writer->xmlEndTag(
'Type');
241 $writer->xmlEndTag(
'Requirement');
247 static function _getIds($a_rbac_id,$a_obj_id,$a_parent_id,$a_parent_type,$a_or_composite_id = 0)
251 $query =
"SELECT meta_requirement_id FROM il_meta_requirement ".
252 "WHERE rbac_id = ".$ilDB->quote($a_rbac_id ,
'integer').
" ".
253 "AND obj_id = ".$ilDB->quote($a_obj_id ,
'integer').
" ".
254 "AND parent_id = ".$ilDB->quote($a_parent_id ,
'integer').
" ".
255 "AND parent_type = ".$ilDB->quote($a_parent_type ,
'text').
" ".
256 "AND or_composite_id = ".$ilDB->quote($a_or_composite_id ,
'integer');
261 $ids[] =
$row->meta_requirement_id;
263 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)
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)