79 if(is_object(self::$instance))
81 return self::$instance;
109 global
$ilUser,$ilAccess,$rbacsystem;
111 $user_id = $a_user_id ? $a_user_id : $ilUser->getId();
125 $this->export_course = (bool) $a_status;
130 $this->export_group = (bool) $a_status;
139 $this->fora_statistics = (bool) $a_status;
157 $this->anonymous_fora = (bool) $a_status;
175 $this->rbac_log = (bool) $a_status;
193 $this->rbac_log_age = (int) $a_age;
230 $this->export_confirm_course = (bool) $a_status;
235 $this->export_confirm_group = (bool) $a_status;
247 $this->show_grp_access_times = $a_status;
270 $this->show_crs_access_times = $a_status;
333 $query =
"SELECT object_reference.ref_id FROM object_reference,tree,object_data ".
334 "WHERE tree.parent = ".$ilDB->quote(SYSTEM_FOLDER_ID,
'integer').
" ".
335 "AND object_data.type = 'ps' ".
336 "AND object_reference.ref_id = tree.child ".
337 "AND object_reference.obj_id = object_data.obj_id";
340 $this->ref_id =
$row[
"ref_id"];
342 $this->export_course = (bool) $this->
settings->get(
'ps_export_course',
false);
343 $this->export_group = (bool) $this->
settings->get(
'ps_export_group',
false);
344 $this->export_confirm_course = (bool) $this->
settings->get(
'ps_export_confirm',
false);
345 $this->export_confirm_group = (bool) $this->
settings->get(
'ps_export_confirm_group',
false);
346 $this->fora_statistics = (bool) $this->
settings->get(
'enable_fora_statistics',
false);
347 $this->anonymous_fora = (bool) $this->
settings->get(
'enable_anonymous_fora',
false);
348 $this->show_grp_access_times = (bool) $this->
settings->get(
'ps_access_times',
false);
349 $this->show_crs_access_times = (bool) $this->
settings->get(
'ps_crs_access_times',
false);
350 $this->rbac_log = (bool) $this->
settings->get(
'rbac_log',
false);
351 $this->rbac_log_age = (int) $this->
settings->get(
'rbac_log_age',6);
352 $this->sahs_protocol_data = (int) $this->
settings->get(
'enable_sahs_pd', 0);
353 $this->export_scorm = (bool) $this->
settings->get(
'ps_export_scorm',
false);
372 $this->sahs_protocol_data = (int) $status;
382 $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)
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