3 declare(strict_types=1);
39 $this->or_composite_id = $a_or_composite_id;
56 $this->operating_system_name = $a_val;
71 $this->operating_system_minimum_version = $a_val;
81 $this->operating_system_maximum_version = $a_val;
93 case 'NetscapeCommunicator':
94 case 'MS-InternetExplorer':
98 $this->browser_name = $a_val;
113 $this->browser_minimum_version = $a_val;
123 $this->browser_maximum_version = $a_val;
134 $fields[
'meta_requirement_id'] = array(
'integer', $next_id = $this->db->nextId(
'il_meta_requirement'));
136 if ($this->db->insert(
'il_meta_requirement', $fields)) {
145 return $this->
getMetaId() && $this->db->update(
146 'il_meta_requirement',
148 array(
"meta_requirement_id" => array(
'integer', $this->
getMetaId()))
152 public function delete():
bool 155 $query =
"DELETE FROM il_meta_requirement " .
156 "WHERE meta_requirement_id = " . $this->db->quote($this->
getMetaId(),
'integer');
169 'rbac_id' => array(
'integer', $this->
getRBACId()),
170 'obj_id' => array(
'integer', $this->
getObjId()),
171 'obj_type' => array(
'text', $this->
getObjType()),
173 'parent_id' => array(
'integer', $this->
getParentId()),
187 $query =
"SELECT * FROM il_meta_requirement " .
188 "WHERE meta_requirement_id = " . $this->db->quote($this->
getMetaId(),
'integer');
193 $this->
setObjId((
int) $row->obj_id);
246 string $a_parent_type,
247 int $a_or_composite_id = 0
251 $ilDB = $DIC->database();
253 $query =
"SELECT meta_requirement_id FROM il_meta_requirement " .
254 "WHERE rbac_id = " .
$ilDB->quote($a_rbac_id,
'integer') .
" " .
255 "AND obj_id = " .
$ilDB->quote($a_obj_id,
'integer') .
" " .
256 "AND parent_id = " .
$ilDB->quote($a_parent_id,
'integer') .
" " .
257 "AND parent_type = " .
$ilDB->quote($a_parent_type,
'text') .
" " .
258 "AND or_composite_id = " .
$ilDB->quote($a_or_composite_id,
'integer');
263 $ids[] = (
int) $row->meta_requirement_id;
setOperatingSystemMaximumVersion(string $a_val)
setOrCompositeId(int $a_or_composite_id)
toXML(ilXmlWriter $writer)
getOperatingSystemMinimumVersion()
This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Le...
string $operating_system_maximum_version
getBrowserMaximumVersion()
xmlEndTag(string $tag)
Writes an endtag.
setBrowserMinimumVersion(string $a_val)
setOperatingSystemMinimumVersion(string $a_val)
string $operating_system_minimum_version
static _getIds(int $a_rbac_id, int $a_obj_id, int $a_parent_id, string $a_parent_type, int $a_or_composite_id=0)
setBrowserName(string $a_val)
setBrowserMaximumVersion(string $a_val)
string $operating_system_name
string $browser_minimum_version
getOperatingSystemMaximumVersion()
setOperatingSystemName(string $a_val)
xmlStartTag(string $tag, ?array $attrs=null, bool $empty=false, bool $encode=true, bool $escape=true)
Writes a starttag.
setParentType(string $a_parent_type)
getBrowserMinimumVersion()
xmlElement(string $tag, $attrs=null, $data=null, $encode=true, $escape=true)
Writes a basic element (no children, just textual content)
setMetaId(int $a_meta_id, bool $a_read_data=true)
string $browser_maximum_version
setObjType(string $a_type)