91        if (is_object(self::$instance)) {
 
  130        $this->participants_list_course_enabled = $a_status;
 
  144        $ilAccess = 
$DIC[
'ilAccess'];
 
  145        $rbacsystem = 
$DIC[
'rbacsystem'];
 
  147        $user_id = $a_user_id ? $a_user_id : 
$ilUser->getId();
 
  150            return $this->
enabledCourseExport() and $ilAccess->checkAccessOfUser($user_id, 
'manage_members', 
'', $a_ref_id) and $rbacsystem->checkAccessOfUser($user_id, 
'export_member_data', $this->
getPrivacySettingsRefId());
 
  152            return $this->
enabledGroupExport() and $ilAccess->checkAccessOfUser($user_id, 
'manage_members', 
'', $a_ref_id) and $rbacsystem->checkAccessOfUser($user_id, 
'export_member_data', $this->
getPrivacySettingsRefId());
 
  160        $this->export_course = (bool) $a_status;
 
  165        $this->export_group = (bool) $a_status;
 
  170        $this->export_learning_sequence = (bool) $a_status;
 
  179        $this->fora_statistics = (bool) $a_status;
 
  197        $this->anonymous_fora = (bool) $a_status;
 
  215        $this->rbac_log = (bool) $a_status;
 
  233        $this->rbac_log_age = (int) $a_age;
 
  277        $this->export_confirm_course = (bool) $a_status;
 
  282        $this->export_confirm_group = (bool) $a_status;
 
  287        $this->export_confirm_learning_sequence = (bool) $a_status;
 
  299        $this->show_grp_access_times = $a_status;
 
  322        $this->show_crs_access_times = $a_status;
 
  345        $this->show_lso_access_times = $a_status;
 
  366        switch ($a_obj_type) {
 
  412        $query = 
"SELECT object_reference.ref_id FROM object_reference,tree,object_data " .
 
  413                "WHERE tree.parent = " . 
$ilDB->quote(SYSTEM_FOLDER_ID, 
'integer') . 
" " .
 
  414                "AND object_data.type = 'ps' " .
 
  415                "AND object_reference.ref_id = tree.child " .
 
  416                "AND object_reference.obj_id = object_data.obj_id";
 
  419        $this->ref_id = 
$row[
"ref_id"];
 
  421        $this->export_course = (bool) $this->
settings->get(
'ps_export_course', 
false);
 
  422        $this->export_group = (bool) $this->
settings->get(
'ps_export_group', 
false);
 
  423        $this->export_confirm_course = (bool) $this->
settings->get(
'ps_export_confirm', 
false);
 
  424        $this->export_confirm_group = (bool) $this->
settings->get(
'ps_export_confirm_group', 
false);
 
  425        $this->fora_statistics = (bool) $this->
settings->get(
'enable_fora_statistics', 
false);
 
  426        $this->anonymous_fora = (bool) $this->
settings->get(
'enable_anonymous_fora', 
false);
 
  427        $this->show_grp_access_times = (bool) $this->
settings->get(
'ps_access_times', 
false);
 
  428        $this->show_crs_access_times = (bool) $this->
settings->get(
'ps_crs_access_times', 
false);
 
  429        $this->rbac_log = (bool) $this->
settings->get(
'rbac_log', 
false);
 
  430        $this->rbac_log_age = (int) $this->
settings->get(
'rbac_log_age', 6);
 
  431        $this->sahs_protocol_data = (int) $this->
settings->get(
'enable_sahs_pd', 0);
 
  432        $this->export_scorm = (bool) $this->
settings->get(
'ps_export_scorm', 
false);
 
  452        $this->sahs_protocol_data = (int) $status;
 
  462        $this->export_scorm = (bool) $a_status;
 
An exception for terminatinating execution or to throw for unit testing.
static _lookupType($a_id, $a_reference=false)
lookup object type
Singleton class that stores all privacy settings.
enabledRbacLog()
read access to property enable rbac log
setRbacLogAge($a_age)
write access to property rbac log age
enabledLearningSequenceExport()
enabledGroupAccessTimes()
check if group access time are visible
__construct()
Private constructor: use _getInstance()
$export_confirm_learning_sequence
learningSequenceConfirmationRequired()
enableForaStatistics($a_status)
write access to property fora statitics
validate()
validate settings
participantsListInCoursesEnabled()
$participants_list_course_enabled
showGroupAccessTimes($a_status)
Show group last access times.
enableRbacLog($a_status)
write access to property rbac_log
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...
showCourseAccessTimes($a_status)
show course access times
enableExportSCORM($a_status)
enableCourseExport($a_status)
confirmationRequired($a_type)
enabledCourseAccessTimes()
check if access time are enabled in courses
enabledForaStatistics()
read access to property enable fora statistics
$export_learning_sequence
enableSahsProtocolData($status)
courseConfirmationRequired()
enabledAccessTimesByType($a_obj_type)
Check if access time are enabled for a specific type.
enableParticipantsListInCourses($a_status)
enableLearningSequenceExport($a_status)
setGroupConfirmationRequired($a_status)
static _getInstance()
Get instance of ilPrivacySettings.
enabledAnonymousFora()
read access to property enable anonymous fora
getPrivacySettingsRefId()
enableGroupExport($a_status)
showLearningSequenceAccessTimes($a_status)
show lso access times
setLearningSequenceConfirmationRequired($a_status)
groupConfirmationRequired()
enabledLearningSequenceAccessTimes()
check if access time are enabled in lso
setCourseConfirmationRequired($a_status)
enabledSahsProtocolData()
enableAnonymousFora($a_status)
write access to property anonymous fora
getRbacLogAge()
read access to property rbac log age
foreach($_POST as $key=> $value) $res