79 if (is_object(self::$instance)) {
80 return self::$instance;
108 global
$ilUser,$ilAccess,$rbacsystem;
110 $user_id = $a_user_id ? $a_user_id : $ilUser->getId();
113 return $this->
enabledCourseExport() and $ilAccess->checkAccessOfUser($user_id,
'manage_members',
'', $a_ref_id) and $rbacsystem->checkAccessOfUser($user_id,
'export_member_data', $this->
getPrivacySettingsRefId());
115 return $this->
enabledGroupExport() and $ilAccess->checkAccessOfUser($user_id,
'manage_members',
'', $a_ref_id) and $rbacsystem->checkAccessOfUser($user_id,
'export_member_data', $this->
getPrivacySettingsRefId());
121 $this->export_course = (bool) $a_status;
126 $this->export_group = (bool) $a_status;
135 $this->fora_statistics = (bool) $a_status;
153 $this->anonymous_fora = (bool) $a_status;
171 $this->rbac_log = (bool) $a_status;
189 $this->rbac_log_age = (int) $a_age;
225 $this->export_confirm_course = (bool) $a_status;
230 $this->export_confirm_group = (bool) $a_status;
242 $this->show_grp_access_times = $a_status;
265 $this->show_crs_access_times = $a_status;
286 switch ($a_obj_type) {
326 $query =
"SELECT object_reference.ref_id FROM object_reference,tree,object_data " .
327 "WHERE tree.parent = " . $ilDB->quote(SYSTEM_FOLDER_ID,
'integer') .
" " .
328 "AND object_data.type = 'ps' " .
329 "AND object_reference.ref_id = tree.child " .
330 "AND object_reference.obj_id = object_data.obj_id";
333 $this->ref_id =
$row[
"ref_id"];
335 $this->export_course = (bool) $this->
settings->get(
'ps_export_course',
false);
336 $this->export_group = (bool) $this->
settings->get(
'ps_export_group',
false);
337 $this->export_confirm_course = (bool) $this->
settings->get(
'ps_export_confirm',
false);
338 $this->export_confirm_group = (bool) $this->
settings->get(
'ps_export_confirm_group',
false);
339 $this->fora_statistics = (bool) $this->
settings->get(
'enable_fora_statistics',
false);
340 $this->anonymous_fora = (bool) $this->
settings->get(
'enable_anonymous_fora',
false);
341 $this->show_grp_access_times = (bool) $this->
settings->get(
'ps_access_times',
false);
342 $this->show_crs_access_times = (bool) $this->
settings->get(
'ps_crs_access_times',
false);
343 $this->rbac_log = (bool) $this->
settings->get(
'rbac_log',
false);
344 $this->rbac_log_age = (int) $this->
settings->get(
'rbac_log_age', 6);
345 $this->sahs_protocol_data = (int) $this->
settings->get(
'enable_sahs_pd', 0);
346 $this->export_scorm = (bool) $this->
settings->get(
'ps_export_scorm',
false);
365 $this->sahs_protocol_data = (int) $status;
375 $this->export_scorm = (bool) $a_status;
enabledGroupAccessTimes()
check if group access time are visible
__construct()
Private constructor: use _getInstance()
enabledCourseAccessTimes()
check if access time are enabled in courses
showCourseAccessTimes($a_status)
show course access times
courseConfirmationRequired()
enabledSahsProtocolData()
validate()
validate settings
enableForaStatistics($a_status)
write access to property fora statitics
enableAnonymousFora($a_status)
write access to property anonymous fora
setGroupConfirmationRequired($a_status)
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()
enableGroupExport($a_status)
Singleton class that stores all privacy settings.
showGroupAccessTimes($a_status)
Show group last access times.
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
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
getRbacLogAge()
read access to property rbac log age
enableRbacLog($a_status)
write access to property rbac_log