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;
123 if($this->db->autoExecute(
'il_meta_requirement',
124 $this->__getFields(),
127 $this->
setMetaId($this->db->getLastInsertId());
140 if($this->db->autoExecute(
'il_meta_requirement',
141 $this->__getFields(),
143 "meta_requirement_id = ".$ilDB->quote($this->
getMetaId())))
157 $query =
"DELETE FROM il_meta_requirement ".
158 "WHERE meta_requirement_id = ".$ilDB->quote($this->
getMetaId());
188 include_once
'Services/Migration/DBUpdate_426/classes/class.ilMDLanguageItem.php';
192 $query =
"SELECT * FROM il_meta_requirement ".
193 "WHERE meta_requirement_id = ".$ilDB->quote($this->
getMetaId());
222 $writer->xmlStartTag(
'Requirement');
223 $writer->xmlStartTag(
'Type');
237 $writer->xmlEndTag(
'Type');
238 $writer->xmlEndTag(
'Requirement');
244 function _getIds($a_rbac_id,$a_obj_id,$a_parent_id,$a_parent_type,$a_or_composite_id = 0)
248 $query =
"SELECT meta_requirement_id FROM il_meta_requirement ".
249 "WHERE rbac_id = ".$ilDB->quote($a_rbac_id).
" ".
250 "AND obj_id = ".$ilDB->quote($a_obj_id).
" ".
251 "AND parent_id = ".$ilDB->quote($a_parent_id).
" ".
252 "AND parent_type = ".$ilDB->quote($a_parent_type).
" ".
253 "AND or_composite_id = ".$ilDB->quote($a_or_composite_id);
258 $ids[] =
$row->meta_requirement_id;
260 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)
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)