19declare(strict_types=1);
68 $this->db =
$DIC->database();
69 $this->
user = $DIC->user();
70 $this->
access = $DIC->access();
71 $this->rbacsystem =
$DIC->rbac()->system();
79 self::$instance =
new self();
111 $this->participants_list_course_enabled = $a_status;
116 $this->participants_list_prg_enabled = $status;
133 $permission_manage_member = $this->
access->checkAccessOfUser(
$user_id,
'manage_members',
'', $a_ref_id);
135 switch($object_type) {
138 && $permission_export_member_data && $permission_manage_member;
141 && $permission_export_member_data && $permission_manage_member;
144 && $permission_export_member_data && $permission_manage_member;
147 && $permission_manage_member;
154 $this->export_course = $a_status;
159 $this->export_group = $a_status;
164 $this->export_learning_sequence = $a_status;
172 $this->fora_statistics = $a_status;
188 $this->anonymous_fora = $a_status;
204 $this->rbac_log = $a_status;
220 $this->rbac_log_age = $a_age;
263 $this->export_confirm_course = $a_status;
268 $this->export_confirm_group = (bool) $a_status;
273 $this->export_confirm_learning_sequence = $a_status;
281 $this->show_grp_access_times = $a_status;
297 $this->show_crs_access_times = $a_status;
313 $this->show_lso_access_times = $a_status;
326 switch ($a_obj_type) {
347 'ps_export_confirm_learning_sequence',
372 $query =
"SELECT object_reference.ref_id FROM object_reference,tree,object_data " .
373 "WHERE tree.parent = " . $this->db->quote(
SYSTEM_FOLDER_ID,
'integer') .
" " .
374 "AND object_data.type = 'ps' " .
375 "AND object_reference.ref_id = tree.child " .
376 "AND object_reference.obj_id = object_data.obj_id";
377 $res = $this->db->query($query);
379 $this->ref_id = (
int) ($row[
"ref_id"] ?? 0);
381 $this->export_course = (bool) $this->
settings->get(
'ps_export_course',
null);
382 $this->export_group = (bool) $this->
settings->get(
'ps_export_group',
null);
383 $this->export_learning_sequence = (bool) $this->
settings->get(
'ps_export_learning_sequence',
null);
384 $this->export_confirm_course = (bool) $this->
settings->get(
'ps_export_confirm',
null);
385 $this->export_confirm_group = (bool) $this->
settings->get(
'ps_export_confirm_group',
null);
386 $this->export_confirm_learning_sequence = (bool) $this->
settings->get(
'ps_export_confirm_learning_sequence',
null);
387 $this->fora_statistics = (bool) $this->
settings->get(
'enable_fora_statistics',
null);
388 $this->anonymous_fora = (bool) $this->
settings->get(
'enable_anonymous_fora',
null);
389 $this->show_grp_access_times = (bool) $this->
settings->get(
'ps_access_times',
null);
390 $this->show_crs_access_times = (bool) $this->
settings->get(
'ps_crs_access_times',
null);
391 $this->show_lso_access_times = (bool) $this->
settings->get(
'ps_lso_access_times',
null);
392 $this->rbac_log = (bool) $this->
settings->get(
'rbac_log',
null);
393 $this->rbac_log_age = (
int) $this->
settings->get(
'rbac_log_age',
"6");
394 $this->sahs_protocol_data = (
int) $this->
settings->get(
'enable_sahs_pd',
"0");
395 $this->export_scorm = (bool) $this->
settings->get(
'ps_export_scorm',
null);
397 'participants_list_courses',
398 (
string) $this->participantsListInCoursesEnabled()
401 $this->participants_list_prg_enabled = (bool) $this->
settings->get(
'ps_export_prg',
null);
420 $this->sahs_protocol_data = (
int) $status;
431 $this->export_scorm = (bool) $a_status;
439 $this->comments_export = (bool) $a_status;
static _lookupType(int $id, bool $reference=false)
Singleton class that stores all privacy settings.
enableCourseExport(bool $a_status)
enabledRbacLog()
read access to property enable rbac log
setGroupConfirmationRequired(bool $a_status)
enableGroupExport(bool $a_status)
showCourseAccessTimes(bool $a_status)
show course access times
enabledLearningSequenceExport()
enabledGroupAccessTimes()
check if group access time are visible
__construct()
Private constructor: use _getInstance() @access private.
bool $show_lso_access_times
enableAnonymousFora(bool $a_status)
write access to property anonymous fora
learningSequenceConfirmationRequired()
showGroupAccessTimes(bool $a_status)
Show group last access times.
enableSahsProtocolData(int $status)
enableParticipantsListInCourses(bool $a_status)
bool $participants_list_course_enabled
validate()
validate settings
participantsListInCoursesEnabled()
enableRbacLog(bool $a_status)
write access to property rbac_log
setCourseConfirmationRequired(bool $a_status)
bool $export_confirm_group
enablePRGUserExport(bool $status=false)
enableCommentsExport(bool $a_status)
Enable comments export.
enableExportSCORM(int $a_status)
showLearningSequenceAccessTimes(bool $a_status)
show lso access times
enableLearningSequenceExport(bool $a_status)
enabledCourseAccessTimes()
check if access time are enabled in courses
enabledForaStatistics()
read access to property enable fora statistics
enabledCommentsExport()
Enable comments export.
confirmationRequired(string $a_type)
courseConfirmationRequired()
bool $export_learning_sequence
bool $show_crs_access_times
enabledAnonymousFora()
read access to property enable anonymous fora
getPrivacySettingsRefId()
setLearningSequenceConfirmationRequired(bool $a_status)
static ilPrivacySettings $instance
bool $participants_list_prg_enabled
groupConfirmationRequired()
bool $show_grp_access_times
checkExportAccess(int $a_ref_id, int $a_user_id=0)
Check if a user has the permission to access approved user profile fields, course related user data a...
enabledLearningSequenceAccessTimes()
check if access time are enabled in lso
setRbacLogAge(int $a_age)
write access to property rbac log age
enabledAccessTimesByType(string $a_obj_type)
enableForaStatistics(bool $a_status)
write access to property fora statitics
bool $export_confirm_course
bool $export_confirm_learning_sequence
enabledSahsProtocolData()
getRbacLogAge()
read access to property rbac log age
class ilRbacSystem system function like checkAccess, addActiveRole ... Supporting system functions ar...
Interface ilAccessHandler This interface combines all available interfaces which can be called via gl...