31 $this->db =
$GLOBALS[
'DIC']->database();
32 $this->obj_id = $a_obj_id;
43 $query =
'select * from orgu_obj_pos_settings ' .
'where obj_id = ' 44 . $db->
quote($a_obj_id,
'integer');
45 $res = $this->db->query($query);
47 return (
bool) $row->active;
64 $this->active = $a_status;
69 $this->db->replace(
'orgu_obj_pos_settings', [
70 'obj_id' => [
'integer', $this->obj_id],
72 'active' => [
'integer', (
int) $this->
isActive()],
76 public function delete():
void 78 $query =
'DELETE from orgu_obj_pos_settings ' .
'WHERE obj_id = ' 79 . $this->db->quote($this->obj_id,
'integer');
80 $this->db->manipulate($query);
89 return $this->active !==
null;
97 $query =
'select * from orgu_obj_pos_settings ' .
'where obj_id = ' 98 . $this->db->quote($this->obj_id,
'integer');
99 $res = $this->db->query($query);
101 $this->active = (bool) $row->active;
setActive(bool $a_status)
Set active for object.
This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Le...
quote($value, string $type)
while($session_entry=$r->fetchRow(ilDBConstants::FETCHMODE_ASSOC)) return null
__construct(int $a_obj_id)
hasObjectSpecificActivation()
isActive()
Check if position access is active.
lookupActive(int $a_obj_id)
Lookup activation status.