34 $this->db =
$GLOBALS[
'DIC']->database();
35 $this->obj_id = $a_obj_id;
46 $query =
'select * from orgu_obj_pos_settings ' .
'where obj_id = ' 47 . $db->
quote($a_obj_id,
'integer');
48 $res = $this->db->query($query);
50 return (
bool) $row->active;
67 $this->active = $a_status;
72 $this->db->replace(
'orgu_obj_pos_settings', [
73 'obj_id' => [
'integer', $this->obj_id],
75 'active' => [
'integer', (
int) $this->
isActive()],
79 public function delete():
void 81 $query =
'DELETE from orgu_obj_pos_settings ' .
'WHERE obj_id = ' 82 . $this->db->quote($this->obj_id,
'integer');
83 $this->db->manipulate($query);
92 return $this->active !== null;
100 $query =
'select * from orgu_obj_pos_settings ' .
'where obj_id = ' 101 . $this->db->quote($this->obj_id,
'integer');
102 $res = $this->db->query($query);
104 $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)
__construct(int $a_obj_id)
hasObjectSpecificActivation()
isActive()
Check if position access is active.
lookupActive(int $a_obj_id)
Lookup activation status.