24 protected \ilDBInterface
$db;
31 $this->db = $DIC->database();
32 $this->rbac_system = $DIC->rbac()->system();
40 if (self::$setting_ref_id == 0) {
41 $set = $this->db->queryF(
42 'SELECT object_reference.ref_id FROM object_reference, tree, object_data 43 WHERE tree.parent = %s 44 AND object_data.type = %s 45 AND object_reference.ref_id = tree.child 46 AND object_reference.obj_id = object_data.obj_id',
47 array(
'integer',
'text'),
50 $rec = $this->db->fetchAssoc($set);
51 self::$setting_ref_id = (
int) $rec[
"ref_id"];
53 return self::$setting_ref_id;
58 return $this->rbac_system->checkAccessOfUser($user_id,
"change_presentation", $this->
getSettingsRefId());
getSettingsRefId()
Get dashboard settings ref id.
static int $setting_ref_id
ilRbacSystem $rbac_system
canChangePresentation(int $user_id)
This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Le...