19 declare(strict_types=1);
37 $this->db = $DIC->database();
38 $this->rbac_system = $DIC->rbac()->system();
43 if (self::$setting_ref_id == 0) {
44 $set = $this->db->queryF(
45 'SELECT object_reference.ref_id FROM object_reference, tree, object_data 46 WHERE tree.parent = %s 47 AND object_data.type = %s 48 AND object_reference.ref_id = tree.child 49 AND object_reference.obj_id = object_data.obj_id',
53 $rec = $this->db->fetchAssoc($set);
54 self::$setting_ref_id = (
int) $rec[
'ref_id'];
56 return self::$setting_ref_id;
61 return $this->rbac_system->checkAccessOfUser($user_id,
'change_presentation', $this->
getSettingsRefId());
static int $setting_ref_id
ilRbacSystem $rbac_system
canChangePresentation(int $user_id)