33         $this->db = 
$GLOBALS[
'DIC']->database();
    34         $this->obj_id = $a_obj_id;
    45         $query = 
'select *  from orgu_obj_pos_settings ' . 
'where obj_id = '    46             . $db->
quote($a_obj_id, 
'integer');
    47         $res = $this->db->query($query);
    49             return (
bool) $row->active;
    66         $this->active = $a_status;
    71         $this->db->replace(
'orgu_obj_pos_settings', [
    72             'obj_id' => [
'integer', $this->obj_id],
    74             'active' => [
'integer', (
int) $this->
isActive()],
    78     public function delete(): 
void    80         $query = 
'DELETE from orgu_obj_pos_settings ' . 
'WHERE obj_id = '    81             . $this->db->quote($this->obj_id, 
'integer');
    82         $this->db->manipulate($query);
    91         return $this->active !== null;
    99         $query = 
'select * from orgu_obj_pos_settings ' . 
'where obj_id = '   100             . $this->db->quote($this->obj_id, 
'integer');
   101         $res = $this->db->query($query);
   103             $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.