96 if (is_object(self::$instance)) {
97 return self::$instance;
135 $this->participants_list_course_enabled = $a_status;
149 $ilAccess = $DIC[
'ilAccess'];
150 $rbacsystem = $DIC[
'rbacsystem'];
152 $user_id = $a_user_id ? $a_user_id :
$ilUser->getId();
155 return $this->
enabledCourseExport() and $ilAccess->checkAccessOfUser($user_id,
'manage_members',
'', $a_ref_id) and $rbacsystem->checkAccessOfUser($user_id,
'export_member_data', $this->
getPrivacySettingsRefId());
157 return $this->
enabledGroupExport() and $ilAccess->checkAccessOfUser($user_id,
'manage_members',
'', $a_ref_id) and $rbacsystem->checkAccessOfUser($user_id,
'export_member_data', $this->
getPrivacySettingsRefId());
165 $this->export_course = (bool) $a_status;
170 $this->export_group = (bool) $a_status;
175 $this->export_learning_sequence = (bool) $a_status;
184 $this->fora_statistics = (bool) $a_status;
202 $this->anonymous_fora = (bool) $a_status;
220 $this->rbac_log = (bool) $a_status;
238 $this->rbac_log_age = (int) $a_age;
282 $this->export_confirm_course = (bool) $a_status;
287 $this->export_confirm_group = (bool) $a_status;
292 $this->export_confirm_learning_sequence = (bool) $a_status;
304 $this->show_grp_access_times = $a_status;
327 $this->show_crs_access_times = $a_status;
350 $this->show_lso_access_times = $a_status;
371 switch ($a_obj_type) {
416 $ilDB = $DIC[
'ilDB'];
418 $query =
"SELECT object_reference.ref_id FROM object_reference,tree,object_data " .
420 "AND object_data.type = 'ps' " .
421 "AND object_reference.ref_id = tree.child " .
422 "AND object_reference.obj_id = object_data.obj_id";
425 $this->ref_id = $row[
"ref_id"];
427 $this->export_course = (bool) $this->
settings->get(
'ps_export_course',
false);
428 $this->export_group = (bool) $this->
settings->get(
'ps_export_group',
false);
429 $this->export_confirm_course = (bool) $this->
settings->get(
'ps_export_confirm',
false);
430 $this->export_confirm_group = (bool) $this->
settings->get(
'ps_export_confirm_group',
false);
431 $this->fora_statistics = (bool) $this->
settings->get(
'enable_fora_statistics',
false);
432 $this->anonymous_fora = (bool) $this->
settings->get(
'enable_anonymous_fora',
false);
433 $this->show_grp_access_times = (bool) $this->
settings->get(
'ps_access_times',
false);
434 $this->show_crs_access_times = (bool) $this->
settings->get(
'ps_crs_access_times',
false);
435 $this->rbac_log = (bool) $this->
settings->get(
'rbac_log',
false);
436 $this->rbac_log_age = (int) $this->
settings->get(
'rbac_log_age', 6);
437 $this->sahs_protocol_data = (int) $this->
settings->get(
'enable_sahs_pd', 0);
438 $this->export_scorm = (bool) $this->
settings->get(
'ps_export_scorm',
false);
459 $this->sahs_protocol_data = (int) $status;
469 $this->export_scorm = (bool) $a_status;
478 $this->comments_export = (bool) $a_status;
enabledGroupAccessTimes()
check if group access time are visible
enableLearningSequenceExport($a_status)
__construct()
Private constructor: use _getInstance()
enabledCommentsExport()
Enable comments export.
enabledCourseAccessTimes()
check if access time are enabled in courses
showCourseAccessTimes($a_status)
show course access times
courseConfirmationRequired()
enabledSahsProtocolData()
validate()
validate settings
showLearningSequenceAccessTimes($a_status)
show lso access times
enableForaStatistics($a_status)
write access to property fora statitics
enableAnonymousFora($a_status)
write access to property anonymous fora
setGroupConfirmationRequired($a_status)
$export_learning_sequence
participantsListInCoursesEnabled()
getPrivacySettingsRefId()
enableSahsProtocolData($status)
confirmationRequired($a_type)
checkExportAccess($a_ref_id, $a_user_id=0)
Check if a user has the permission to access approved user profile fields, course related user data a...
enableExportSCORM($a_status)
foreach($_POST as $key=> $value) $res
groupConfirmationRequired()
setLearningSequenceConfirmationRequired($a_status)
$participants_list_course_enabled
enableGroupExport($a_status)
Singleton class that stores all privacy settings.
showGroupAccessTimes($a_status)
Show group last access times.
enableCommentsExport($a_status)
Enable comments export.
enabledLearningSequenceExport()
enabledForaStatistics()
read access to property enable fora statistics
enabledRbacLog()
read access to property enable rbac log
static _lookupType($a_id, $a_reference=false)
lookup object type
$export_confirm_learning_sequence
enabledAnonymousFora()
read access to property enable anonymous fora
enabledAccessTimesByType($a_obj_type)
Check if access time are enabled for a specific type.
enableCourseExport($a_status)
setCourseConfirmationRequired($a_status)
static _getInstance()
Get instance of ilPrivacySettings.
setRbacLogAge($a_age)
write access to property rbac log age
enableParticipantsListInCourses($a_status)
getRbacLogAge()
read access to property rbac log age
learningSequenceConfirmationRequired()
enabledLearningSequenceAccessTimes()
check if access time are enabled in lso
enableRbacLog($a_status)
write access to property rbac_log