ILIAS  trunk Revision v11.0_alpha-2638-g80c1d007f79
ilPrivacySettings Class Reference

Singleton class that stores all privacy settings. More...

+ Collaboration diagram for ilPrivacySettings:

Public Member Functions

 getPrivacySettingsRefId ()
 
 enabledCourseExport ()
 
 enabledGroupExport ()
 
 enabledLearningSequenceExport ()
 
 participantsListInCoursesEnabled ()
 
 enableParticipantsListInCourses (bool $a_status)
 
 enablePRGUserExport (bool $status=false)
 
 enabledPRGUserExport ()
 
 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 and custom user data. More...
 
 enableCourseExport (bool $a_status)
 
 enableGroupExport (bool $a_status)
 
 enableLearningSequenceExport (bool $a_status)
 
 enableForaStatistics (bool $a_status)
 write access to property fora statitics More...
 
 enabledForaStatistics ()
 read access to property enable fora statistics More...
 
 enableAnonymousFora (bool $a_status)
 write access to property anonymous fora More...
 
 enabledAnonymousFora ()
 read access to property enable anonymous fora More...
 
 enableRbacLog (bool $a_status)
 write access to property rbac_log More...
 
 enabledRbacLog ()
 read access to property enable rbac log More...
 
 setRbacLogAge (int $a_age)
 write access to property rbac log age More...
 
 getRbacLogAge ()
 read access to property rbac log age More...
 
 confirmationRequired (string $a_type)
 
 courseConfirmationRequired ()
 
 groupConfirmationRequired ()
 
 learningSequenceConfirmationRequired ()
 
 setCourseConfirmationRequired (bool $a_status)
 
 setGroupConfirmationRequired (bool $a_status)
 
 setLearningSequenceConfirmationRequired (bool $a_status)
 
 showGroupAccessTimes (bool $a_status)
 Show group last access times. More...
 
 enabledGroupAccessTimes ()
 check if group access time are visible More...
 
 showCourseAccessTimes (bool $a_status)
 show course access times More...
 
 enabledLearningSequenceAccessTimes ()
 check if access time are enabled in lso More...
 
 showLearningSequenceAccessTimes (bool $a_status)
 show lso access times More...
 
 enabledCourseAccessTimes ()
 check if access time are enabled in courses More...
 
 enabledAccessTimesByType (string $a_obj_type)
 
 save ()
 Save settings. More...
 
 validate ()
 validate settings More...
 
 enabledSahsProtocolData ()
 
 enableSahsProtocolData (int $status)
 
 enabledExportSCORM ()
 
 enableExportSCORM (int $a_status)
 
 enableCommentsExport (bool $a_status)
 Enable comments export. More...
 
 enabledCommentsExport ()
 Enable comments export. More...
 

Static Public Member Functions

static getInstance ()
 

Private Member Functions

 __construct ()
 Private constructor: use _getInstance() private. More...
 
 read ()
 read settings More...
 

Private Attributes

ilDBInterface $db
 
ilSetting $settings
 
ilObjUser $user
 
bool $export_course
 
bool $export_group
 
bool $export_learning_sequence = false
 
bool $export_confirm_course = false
 
bool $export_confirm_group = false
 
bool $export_confirm_learning_sequence = false
 
bool $participants_list_course_enabled = true
 
bool $participants_list_prg_enabled = true
 
bool $fora_statistics
 
bool $anonymous_fora
 
bool $rbac_log
 
int $rbac_log_age
 
bool $show_grp_access_times
 
bool $show_crs_access_times
 
bool $show_lso_access_times
 
int $ref_id
 
int $sahs_protocol_data
 
bool $export_scorm
 
bool $comments_export
 
ilAccessHandler $access
 
ilRbacSystem $rbacsystem
 

Static Private Attributes

static ilPrivacySettings $instance = null
 

Detailed Description

Singleton class that stores all privacy settings.

Author
Stefan Meyer meyer.nosp@m.@lei.nosp@m.fos.d.nosp@m.e //

Definition at line 26 of file class.ilPrivacySettings.php.

Constructor & Destructor Documentation

◆ __construct()

ilPrivacySettings::__construct ( )
private

Private constructor: use _getInstance() private.

Parameters

Definition at line 63 of file class.ilPrivacySettings.php.

References $DIC, ILIAS\Repository\access(), read(), ILIAS\Repository\settings(), and ILIAS\Repository\user().

64  {
65  global $DIC;
66 
67  $this->settings = $DIC->settings();
68  $this->db = $DIC->database();
69  $this->user = $DIC->user();
70  $this->access = $DIC->access();
71  $this->rbacsystem = $DIC->rbac()->system();
72 
73  $this->read();
74  }
global $DIC
Definition: shib_login.php:26
+ Here is the call graph for this function:

Member Function Documentation

◆ checkExportAccess()

ilPrivacySettings::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 and custom user data.

Definition at line 127 of file class.ilPrivacySettings.php.

References $user_id, ilObject\_lookupType(), ILIAS\Repository\access(), enabledCourseExport(), enabledGroupExport(), enabledLearningSequenceExport(), enabledPRGUserExport(), getPrivacySettingsRefId(), and ILIAS\Repository\user().

127  : bool
128  {
129  $user_id = $a_user_id ?: $this->user->getId();
130  $object_type = ilObject::_lookupType($a_ref_id, true);
131 
132  $permission_export_member_data = $this->rbacsystem->checkAccessOfUser($user_id, 'export_member_data', $this->getPrivacySettingsRefId());
133  $permission_manage_member = $this->access->checkAccessOfUser($user_id, 'manage_members', '', $a_ref_id);
134 
135  switch($object_type) {
136  case 'crs':
137  return $this->enabledCourseExport()
138  && $permission_export_member_data && $permission_manage_member;
139  case 'grp':
140  return $this->enabledGroupExport()
141  && $permission_export_member_data && $permission_manage_member;
142  case 'lso':
143  return $this->enabledLearningSequenceExport()
144  && $permission_export_member_data && $permission_manage_member;
145  case 'prg':
146  return $this->enabledPRGUserExport()
147  && $permission_manage_member;
148  }
149  return false;
150  }
static _lookupType(int $id, bool $reference=false)
+ Here is the call graph for this function:

◆ confirmationRequired()

ilPrivacySettings::confirmationRequired ( string  $a_type)

Definition at line 231 of file class.ilPrivacySettings.php.

References courseConfirmationRequired(), groupConfirmationRequired(), and learningSequenceConfirmationRequired().

231  : bool
232  {
233  switch ($a_type) {
234  case 'crs':
235  return $this->courseConfirmationRequired();
236 
237  case 'grp':
238  return $this->groupConfirmationRequired();
239 
240  case 'lso':
241  return $this->learningSequenceConfirmationRequired();
242  }
243  return false;
244  }
+ Here is the call graph for this function:

◆ courseConfirmationRequired()

ilPrivacySettings::courseConfirmationRequired ( )

Definition at line 246 of file class.ilPrivacySettings.php.

References $export_confirm_course.

Referenced by confirmationRequired(), ilMemberExport\getOrderedExportableFields(), and save().

246  : bool
247  {
249  }
+ Here is the caller graph for this function:

◆ enableAnonymousFora()

ilPrivacySettings::enableAnonymousFora ( bool  $a_status)

write access to property anonymous fora

Definition at line 186 of file class.ilPrivacySettings.php.

186  : void
187  {
188  $this->anonymous_fora = $a_status;
189  }

◆ enableCommentsExport()

ilPrivacySettings::enableCommentsExport ( bool  $a_status)

Enable comments export.

Definition at line 437 of file class.ilPrivacySettings.php.

Referenced by read().

437  : void
438  {
439  $this->comments_export = (bool) $a_status;
440  }
+ Here is the caller graph for this function:

◆ enableCourseExport()

ilPrivacySettings::enableCourseExport ( bool  $a_status)

Definition at line 152 of file class.ilPrivacySettings.php.

152  : void
153  {
154  $this->export_course = $a_status;
155  }

◆ enabledAccessTimesByType()

ilPrivacySettings::enabledAccessTimesByType ( string  $a_obj_type)

Definition at line 324 of file class.ilPrivacySettings.php.

References enabledCourseAccessTimes(), enabledGroupAccessTimes(), and enabledLearningSequenceAccessTimes().

324  : bool
325  {
326  switch ($a_obj_type) {
327  case 'crs':
328  return $this->enabledCourseAccessTimes();
329 
330  case 'grp':
331  return $this->enabledGroupAccessTimes();
332 
333  case 'lso':
334  return $this->enabledLearningSequenceAccessTimes();
335  }
336  return false;
337  }
enabledGroupAccessTimes()
check if group access time are visible
enabledCourseAccessTimes()
check if access time are enabled in courses
enabledLearningSequenceAccessTimes()
check if access time are enabled in lso
+ Here is the call graph for this function:

◆ enabledAnonymousFora()

ilPrivacySettings::enabledAnonymousFora ( )

read access to property enable anonymous fora

Definition at line 194 of file class.ilPrivacySettings.php.

References $anonymous_fora.

Referenced by save().

194  : bool
195  {
196  return $this->anonymous_fora;
197  }
+ Here is the caller graph for this function:

◆ enabledCommentsExport()

ilPrivacySettings::enabledCommentsExport ( )

Enable comments export.

Returns
bool

Definition at line 446 of file class.ilPrivacySettings.php.

References $comments_export.

Referenced by save().

446  : bool
447  {
448  return $this->comments_export;
449  }
+ Here is the caller graph for this function:

◆ enabledCourseAccessTimes()

ilPrivacySettings::enabledCourseAccessTimes ( )

check if access time are enabled in courses

Definition at line 319 of file class.ilPrivacySettings.php.

References $show_crs_access_times.

Referenced by enabledAccessTimesByType(), and save().

319  : bool
320  {
322  }
+ Here is the caller graph for this function:

◆ enabledCourseExport()

ilPrivacySettings::enabledCourseExport ( )

Definition at line 89 of file class.ilPrivacySettings.php.

References $export_course.

Referenced by checkExportAccess(), and save().

89  : bool
90  {
91  return $this->export_course;
92  }
+ Here is the caller graph for this function:

◆ enabledExportSCORM()

ilPrivacySettings::enabledExportSCORM ( )

Definition at line 424 of file class.ilPrivacySettings.php.

References $export_scorm.

Referenced by save().

424  : bool
425  {
426  return $this->export_scorm;
427  }
+ Here is the caller graph for this function:

◆ enabledForaStatistics()

ilPrivacySettings::enabledForaStatistics ( )

read access to property enable fora statistics

Definition at line 178 of file class.ilPrivacySettings.php.

References $fora_statistics.

Referenced by save().

178  : bool
179  {
180  return $this->fora_statistics;
181  }
+ Here is the caller graph for this function:

◆ enabledGroupAccessTimes()

ilPrivacySettings::enabledGroupAccessTimes ( )

check if group access time are visible

Definition at line 287 of file class.ilPrivacySettings.php.

References $show_grp_access_times.

Referenced by enabledAccessTimesByType(), and save().

287  : bool
288  {
290  }
+ Here is the caller graph for this function:

◆ enabledGroupExport()

ilPrivacySettings::enabledGroupExport ( )

Definition at line 94 of file class.ilPrivacySettings.php.

References $export_group.

Referenced by checkExportAccess(), and save().

94  : bool
95  {
96  return $this->export_group;
97  }
+ Here is the caller graph for this function:

◆ enabledLearningSequenceAccessTimes()

ilPrivacySettings::enabledLearningSequenceAccessTimes ( )

check if access time are enabled in lso

Definition at line 303 of file class.ilPrivacySettings.php.

References $show_lso_access_times.

Referenced by enabledAccessTimesByType(), and save().

303  : bool
304  {
306  }
+ Here is the caller graph for this function:

◆ enabledLearningSequenceExport()

ilPrivacySettings::enabledLearningSequenceExport ( )

Definition at line 99 of file class.ilPrivacySettings.php.

References $export_learning_sequence.

Referenced by checkExportAccess(), and save().

99  : bool
100  {
102  }
+ Here is the caller graph for this function:

◆ enabledPRGUserExport()

ilPrivacySettings::enabledPRGUserExport ( )

Definition at line 119 of file class.ilPrivacySettings.php.

References $participants_list_prg_enabled.

Referenced by checkExportAccess(), and save().

119  : bool
120  {
122  }
+ Here is the caller graph for this function:

◆ enabledRbacLog()

ilPrivacySettings::enabledRbacLog ( )

read access to property enable rbac log

Definition at line 210 of file class.ilPrivacySettings.php.

References $rbac_log.

Referenced by save().

210  : bool
211  {
212  return $this->rbac_log;
213  }
+ Here is the caller graph for this function:

◆ enabledSahsProtocolData()

ilPrivacySettings::enabledSahsProtocolData ( )

Definition at line 413 of file class.ilPrivacySettings.php.

References $sahs_protocol_data.

Referenced by save().

413  : int
414  {
415  return (int) $this->sahs_protocol_data;
416  }
+ Here is the caller graph for this function:

◆ enableExportSCORM()

ilPrivacySettings::enableExportSCORM ( int  $a_status)

Definition at line 429 of file class.ilPrivacySettings.php.

429  : void
430  {
431  $this->export_scorm = (bool) $a_status;
432  }

◆ enableForaStatistics()

ilPrivacySettings::enableForaStatistics ( bool  $a_status)

write access to property fora statitics

Definition at line 170 of file class.ilPrivacySettings.php.

170  : void
171  {
172  $this->fora_statistics = $a_status;
173  }

◆ enableGroupExport()

ilPrivacySettings::enableGroupExport ( bool  $a_status)

Definition at line 157 of file class.ilPrivacySettings.php.

157  : void
158  {
159  $this->export_group = $a_status;
160  }

◆ enableLearningSequenceExport()

ilPrivacySettings::enableLearningSequenceExport ( bool  $a_status)

Definition at line 162 of file class.ilPrivacySettings.php.

162  : void
163  {
164  $this->export_learning_sequence = $a_status;
165  }

◆ enableParticipantsListInCourses()

ilPrivacySettings::enableParticipantsListInCourses ( bool  $a_status)

Definition at line 109 of file class.ilPrivacySettings.php.

Referenced by read().

109  : void
110  {
111  $this->participants_list_course_enabled = $a_status;
112  }
+ Here is the caller graph for this function:

◆ enablePRGUserExport()

ilPrivacySettings::enablePRGUserExport ( bool  $status = false)

Definition at line 114 of file class.ilPrivacySettings.php.

114  : void
115  {
116  $this->participants_list_prg_enabled = $status;
117  }

◆ enableRbacLog()

ilPrivacySettings::enableRbacLog ( bool  $a_status)

write access to property rbac_log

Definition at line 202 of file class.ilPrivacySettings.php.

202  : void
203  {
204  $this->rbac_log = $a_status;
205  }

◆ enableSahsProtocolData()

ilPrivacySettings::enableSahsProtocolData ( int  $status)

Definition at line 418 of file class.ilPrivacySettings.php.

References ILIAS\Repository\int().

418  : void
419  {
420  $this->sahs_protocol_data = (int) $status;
421  }
+ Here is the call graph for this function:

◆ getInstance()

static ilPrivacySettings::getInstance ( )
static

Definition at line 76 of file class.ilPrivacySettings.php.

Referenced by ilMemberAgreement\__construct(), ilGroupParticipantsTableGUI\__construct(), ilCourseParticipantsTableGUI\__construct(), ilGroupEditParticipantsTableGUI\__construct(), ilSCORMTrackingItemsTableGUI\__construct(), ilCourseEditParticipantsTableGUI\__construct(), ilSCORM2004TrackingItemsTableGUI\__construct(), ilMemberAgreementGUI\__construct(), ilRegistrationGUI\__construct(), ilMemberExport\__construct(), ilObjCourse\__readSettings(), ilObjCommentsSettingsGUI\addToExternalSettingsForm(), ilObjLearningResourcesSettingsGUI\addToExternalSettingsForm(), ilObjPrivacySecurityGUI\addToExternalSettingsForm(), ilObjRoleFolderGUI\addToExternalSettingsForm(), ilObjGroupGUI\checkAgreement(), ilObjCourseGUI\checkAgreement(), ilMemberExportGUI\executeCommand(), ilObjSCORMLearningModule\exportSelected(), ilRbacLog\garbageCollection(), ilObjLearningSequenceGUI\getGUIMembers(), ilTrObjectUsersPropsTableGUI\getItems(), ilTrMatrixTableGUI\getItems(), ilBookingReservationsTableGUI\getItems(), ilMemberExport\getOrderedExportableFields(), ilCourseMembershipGUI\getPrintMemberData(), ilLPTableBaseGUI\getSelectableUserColumns(), ilObjLearningResourcesSettingsGUI\getSettingsForm(), ilObjSAHSLearningModuleGUI\getTabs(), ilObjCourseGUI\infoScreen(), ilObjGroupGUI\infoScreen(), ilMembershipGUI\initAttendanceList(), ilObjCourseGUI\initEditForm(), ilMemberExportSettingsGUI\initForm(), ilObjCommentsSettingsGUI\initForm(), ilObjPrivacySecurityGUI\initPrivacyForm(), ilParticipantTableGUI\initSettings(), ilObjRoleFolderGUI\initSettingsForm(), ilRbacLog\isActive(), ilObjBlogAccess\isCommentsExportPossible(), ilObjPortfolio\isCommentsExportPossible(), ilObjWiki\isCommentsExportPossible(), ilObjSCORMLearningModuleGUI\modifyTrackingItems(), ilSCORMTrackingItemsPerUserFilterGUI\parse(), ilSCORM2004TrackingItemsPerUserFilterGUI\parse(), ilGroupParticipantsTableGUI\parse(), ilCourseParticipantsTableGUI\parse(), ilLearningSequenceRoles\readMemberData(), ilObjGroupGUI\readMemberData(), ilObjCourseGUI\readMemberData(), ilSubscriberTableGUI\readSubscriberData(), ilWaitingListTableGUI\readUserData(), ilObjPrivacySecurityGUI\save_privacy(), ilObjCommentsSettingsGUI\saveSettings(), ilObjLearningResourcesSettingsGUI\saveSettings(), ilObjRoleFolderGUI\saveSettingsObject(), ilSAHSPresentationGUI\setInfoTabs(), ilMembershipGUI\setSubTabs(), ilObjCourseGUI\setSubTabs(), ilObjGroupGUI\setSubTabs(), ilPrivacySettingsTest\testConstruct(), ilObjCourseGUI\updateObject(), and ilSCORMTrackingItems\userDataHeaderForExport().

77  {
78  if (!self::$instance instanceof ilPrivacySettings) {
79  self::$instance = new self();
80  }
81  return self::$instance;
82  }
Singleton class that stores all privacy settings.
+ Here is the caller graph for this function:

◆ getPrivacySettingsRefId()

ilPrivacySettings::getPrivacySettingsRefId ( )

Definition at line 84 of file class.ilPrivacySettings.php.

References $ref_id.

Referenced by checkExportAccess().

84  : int
85  {
86  return $this->ref_id;
87  }
+ Here is the caller graph for this function:

◆ getRbacLogAge()

ilPrivacySettings::getRbacLogAge ( )

read access to property rbac log age

Definition at line 226 of file class.ilPrivacySettings.php.

References $rbac_log_age.

Referenced by save().

226  : int
227  {
228  return $this->rbac_log_age;
229  }
+ Here is the caller graph for this function:

◆ groupConfirmationRequired()

ilPrivacySettings::groupConfirmationRequired ( )

Definition at line 251 of file class.ilPrivacySettings.php.

References $export_confirm_group.

Referenced by confirmationRequired(), and save().

251  : bool
252  {
254  }
+ Here is the caller graph for this function:

◆ learningSequenceConfirmationRequired()

ilPrivacySettings::learningSequenceConfirmationRequired ( )

Definition at line 256 of file class.ilPrivacySettings.php.

References $export_confirm_learning_sequence.

Referenced by confirmationRequired(), and save().

256  : bool
257  {
259  }
+ Here is the caller graph for this function:

◆ participantsListInCoursesEnabled()

ilPrivacySettings::participantsListInCoursesEnabled ( )

Definition at line 104 of file class.ilPrivacySettings.php.

References $participants_list_course_enabled.

Referenced by save().

104  : bool
105  {
107  }
+ Here is the caller graph for this function:

◆ read()

ilPrivacySettings::read ( )
private

read settings

Definition at line 370 of file class.ilPrivacySettings.php.

References $res, enableCommentsExport(), enableParticipantsListInCourses(), ilDBConstants\FETCHMODE_ASSOC, ILIAS\Repository\int(), null, ILIAS\Repository\settings(), and SYSTEM_FOLDER_ID.

Referenced by __construct().

370  : void
371  {
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);
378  $row = $res->fetchRow(ilDBConstants::FETCHMODE_ASSOC);
379  $this->ref_id = (int) ($row["ref_id"] ?? 0);
380 
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);
396  $this->enableParticipantsListInCourses((bool) $this->settings->get(
397  'participants_list_courses',
398  (string) $this->participantsListInCoursesEnabled()
399  ));
400  $this->enableCommentsExport((bool) $this->settings->get('comments_export', null));
401  $this->participants_list_prg_enabled = (bool) $this->settings->get('ps_export_prg', null);
402  }
$res
Definition: ltiservices.php:66
const SYSTEM_FOLDER_ID
Definition: constants.php:35
while($session_entry=$r->fetchRow(ilDBConstants::FETCHMODE_ASSOC)) return null
enableParticipantsListInCourses(bool $a_status)
enableCommentsExport(bool $a_status)
Enable comments export.
+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ save()

ilPrivacySettings::save ( )

Save settings.

Definition at line 342 of file class.ilPrivacySettings.php.

References courseConfirmationRequired(), enabledAnonymousFora(), enabledCommentsExport(), enabledCourseAccessTimes(), enabledCourseExport(), enabledExportSCORM(), enabledForaStatistics(), enabledGroupAccessTimes(), enabledGroupExport(), enabledLearningSequenceAccessTimes(), enabledLearningSequenceExport(), enabledPRGUserExport(), enabledRbacLog(), enabledSahsProtocolData(), getRbacLogAge(), groupConfirmationRequired(), learningSequenceConfirmationRequired(), participantsListInCoursesEnabled(), and ILIAS\Repository\settings().

342  : void
343  {
344  $this->settings->set('ps_export_confirm', (string) $this->courseConfirmationRequired());
345  $this->settings->set('ps_export_confirm_group', (string) $this->groupConfirmationRequired());
346  $this->settings->set(
347  'ps_export_confirm_learning_sequence',
348  (string) $this->learningSequenceConfirmationRequired()
349  );
350  $this->settings->set('ps_export_course', (string) $this->enabledCourseExport());
351  $this->settings->set('ps_export_group', (string) $this->enabledGroupExport());
352  $this->settings->set('ps_export_learning_sequence', (string) $this->enabledLearningSequenceExport());
353  $this->settings->set('enable_fora_statistics', (string) $this->enabledForaStatistics());
354  $this->settings->set('enable_anonymous_fora', (string) $this->enabledAnonymousFora());
355  $this->settings->set('ps_access_times', (string) $this->enabledGroupAccessTimes());
356  $this->settings->set('ps_crs_access_times', (string) $this->enabledCourseAccessTimes());
357  $this->settings->set('ps_lso_access_times', (string) $this->enabledLearningSequenceAccessTimes());
358  $this->settings->set('rbac_log', (string) $this->enabledRbacLog());
359  $this->settings->set('rbac_log_age', (string) $this->getRbacLogAge());
360  $this->settings->set('enable_sahs_pd', (string) $this->enabledSahsProtocolData());
361  $this->settings->set('ps_export_scorm', (string) $this->enabledExportSCORM());
362  $this->settings->set('participants_list_courses', (string) $this->participantsListInCoursesEnabled());
363  $this->settings->set('comments_export', (string) $this->enabledCommentsExport());
364  $this->settings->set('ps_export_prg', (string) $this->enabledPRGUserExport());
365  }
enabledGroupAccessTimes()
check if group access time are visible
enabledCommentsExport()
Enable comments export.
enabledCourseAccessTimes()
check if access time are enabled in courses
enabledForaStatistics()
read access to property enable fora statistics
enabledRbacLog()
read access to property enable rbac log
enabledAnonymousFora()
read access to property enable anonymous fora
getRbacLogAge()
read access to property rbac log age
enabledLearningSequenceAccessTimes()
check if access time are enabled in lso
+ Here is the call graph for this function:

◆ setCourseConfirmationRequired()

ilPrivacySettings::setCourseConfirmationRequired ( bool  $a_status)

Definition at line 261 of file class.ilPrivacySettings.php.

261  : void
262  {
263  $this->export_confirm_course = $a_status;
264  }

◆ setGroupConfirmationRequired()

ilPrivacySettings::setGroupConfirmationRequired ( bool  $a_status)

Definition at line 266 of file class.ilPrivacySettings.php.

266  : void
267  {
268  $this->export_confirm_group = (bool) $a_status;
269  }

◆ setLearningSequenceConfirmationRequired()

ilPrivacySettings::setLearningSequenceConfirmationRequired ( bool  $a_status)

Definition at line 271 of file class.ilPrivacySettings.php.

271  : void
272  {
273  $this->export_confirm_learning_sequence = $a_status;
274  }

◆ setRbacLogAge()

ilPrivacySettings::setRbacLogAge ( int  $a_age)

write access to property rbac log age

Definition at line 218 of file class.ilPrivacySettings.php.

218  : void
219  {
220  $this->rbac_log_age = $a_age;
221  }

◆ showCourseAccessTimes()

ilPrivacySettings::showCourseAccessTimes ( bool  $a_status)

show course access times

Definition at line 295 of file class.ilPrivacySettings.php.

295  : void
296  {
297  $this->show_crs_access_times = $a_status;
298  }

◆ showGroupAccessTimes()

ilPrivacySettings::showGroupAccessTimes ( bool  $a_status)

Show group last access times.

Definition at line 279 of file class.ilPrivacySettings.php.

279  : void
280  {
281  $this->show_grp_access_times = $a_status;
282  }

◆ showLearningSequenceAccessTimes()

ilPrivacySettings::showLearningSequenceAccessTimes ( bool  $a_status)

show lso access times

Definition at line 311 of file class.ilPrivacySettings.php.

311  : void
312  {
313  $this->show_lso_access_times = $a_status;
314  }

◆ validate()

ilPrivacySettings::validate ( )

validate settings

Returns
int 0, if everything is ok, an error code otherwise

Definition at line 408 of file class.ilPrivacySettings.php.

408  : int
409  {
410  return 0;
411  }

Field Documentation

◆ $access

ilAccessHandler ilPrivacySettings::$access
private

Definition at line 55 of file class.ilPrivacySettings.php.

◆ $anonymous_fora

bool ilPrivacySettings::$anonymous_fora
private

Definition at line 44 of file class.ilPrivacySettings.php.

Referenced by enabledAnonymousFora().

◆ $comments_export

bool ilPrivacySettings::$comments_export
private

Definition at line 53 of file class.ilPrivacySettings.php.

Referenced by enabledCommentsExport().

◆ $db

ilDBInterface ilPrivacySettings::$db
private

Definition at line 29 of file class.ilPrivacySettings.php.

◆ $export_confirm_course

bool ilPrivacySettings::$export_confirm_course = false
private

Definition at line 36 of file class.ilPrivacySettings.php.

Referenced by courseConfirmationRequired().

◆ $export_confirm_group

bool ilPrivacySettings::$export_confirm_group = false
private

Definition at line 37 of file class.ilPrivacySettings.php.

Referenced by groupConfirmationRequired().

◆ $export_confirm_learning_sequence

bool ilPrivacySettings::$export_confirm_learning_sequence = false
private

Definition at line 38 of file class.ilPrivacySettings.php.

Referenced by learningSequenceConfirmationRequired().

◆ $export_course

bool ilPrivacySettings::$export_course
private

Definition at line 33 of file class.ilPrivacySettings.php.

Referenced by enabledCourseExport().

◆ $export_group

bool ilPrivacySettings::$export_group
private

Definition at line 34 of file class.ilPrivacySettings.php.

Referenced by enabledGroupExport().

◆ $export_learning_sequence

bool ilPrivacySettings::$export_learning_sequence = false
private

Definition at line 35 of file class.ilPrivacySettings.php.

Referenced by enabledLearningSequenceExport().

◆ $export_scorm

bool ilPrivacySettings::$export_scorm
private

Definition at line 52 of file class.ilPrivacySettings.php.

Referenced by enabledExportSCORM().

◆ $fora_statistics

bool ilPrivacySettings::$fora_statistics
private

Definition at line 43 of file class.ilPrivacySettings.php.

Referenced by enabledForaStatistics().

◆ $instance

ilPrivacySettings ilPrivacySettings::$instance = null
staticprivate

Definition at line 28 of file class.ilPrivacySettings.php.

◆ $participants_list_course_enabled

bool ilPrivacySettings::$participants_list_course_enabled = true
private

Definition at line 40 of file class.ilPrivacySettings.php.

Referenced by participantsListInCoursesEnabled().

◆ $participants_list_prg_enabled

bool ilPrivacySettings::$participants_list_prg_enabled = true
private

Definition at line 41 of file class.ilPrivacySettings.php.

Referenced by enabledPRGUserExport().

◆ $rbac_log

bool ilPrivacySettings::$rbac_log
private

Definition at line 45 of file class.ilPrivacySettings.php.

Referenced by enabledRbacLog().

◆ $rbac_log_age

int ilPrivacySettings::$rbac_log_age
private

Definition at line 46 of file class.ilPrivacySettings.php.

Referenced by getRbacLogAge().

◆ $rbacsystem

ilRbacSystem ilPrivacySettings::$rbacsystem
private

Definition at line 56 of file class.ilPrivacySettings.php.

◆ $ref_id

int ilPrivacySettings::$ref_id
private

Definition at line 50 of file class.ilPrivacySettings.php.

Referenced by getPrivacySettingsRefId().

◆ $sahs_protocol_data

int ilPrivacySettings::$sahs_protocol_data
private

Definition at line 51 of file class.ilPrivacySettings.php.

Referenced by enabledSahsProtocolData().

◆ $settings

ilSetting ilPrivacySettings::$settings
private

Definition at line 30 of file class.ilPrivacySettings.php.

◆ $show_crs_access_times

bool ilPrivacySettings::$show_crs_access_times
private

Definition at line 48 of file class.ilPrivacySettings.php.

Referenced by enabledCourseAccessTimes().

◆ $show_grp_access_times

bool ilPrivacySettings::$show_grp_access_times
private

Definition at line 47 of file class.ilPrivacySettings.php.

Referenced by enabledGroupAccessTimes().

◆ $show_lso_access_times

bool ilPrivacySettings::$show_lso_access_times
private

Definition at line 49 of file class.ilPrivacySettings.php.

Referenced by enabledLearningSequenceAccessTimes().

◆ $user

ilObjUser ilPrivacySettings::$user
private

Definition at line 31 of file class.ilPrivacySettings.php.


The documentation for this class was generated from the following file: