ILIAS  release_5-4 Revision v5.4.26-12-gabc799a52e6
ilPrivacySettings Class Reference

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

+ Collaboration diagram for ilPrivacySettings:

Public Member Functions

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

Static Public Member Functions

static _getInstance ()
 Get instance of ilPrivacySettings. More...
 

Private Member Functions

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

Private Attributes

 $db
 
 $settings
 
 $export_course
 
 $export_group
 
 $export_learning_sequence
 
 $export_confirm_course
 
 $export_confirm_group
 
 $export_confirm_learning_sequence
 
 $participants_list_course_enabled = true
 
 $fora_statistics
 
 $anonymous_fora
 
 $rbac_log
 
 $rbac_log_age
 
 $show_grp_access_times
 
 $show_crs_access_times
 
 $show_lso_access_times
 
 $ref_id
 
 $sahs_protocol_data
 
 $export_scorm
 

Static Private Attributes

static $instance = null
 

Detailed Description

Singleton class that stores all privacy settings.

Author
Stefan Meyer meyer.nosp@m.@lei.nosp@m.fos.c.nosp@m.om
Version
$Id$

/

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

Constructor & Destructor Documentation

◆ __construct()

ilPrivacySettings::__construct ( )
private

Private constructor: use _getInstance()

private

Parameters

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

References $DIC, $ilDB, $ilSetting, read(), and settings().

71  {
72  global $DIC;
73 
74  $ilSetting = $DIC['ilSetting'];
75  $ilDB = $DIC['ilDB'];
76 
77  $this->db = $ilDB;
78  $this->settings = $ilSetting;
79 
80  $this->read();
81  }
settings()
Definition: settings.php:2
global $DIC
Definition: saml.php:7
global $ilSetting
Definition: privfeed.php:17
global $ilDB
+ Here is the call graph for this function:

Member Function Documentation

◆ _getInstance()

static ilPrivacySettings::_getInstance ( )
static

Get instance of ilPrivacySettings.

public

Returns

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

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

90  {
91  if (is_object(self::$instance)) {
92  return self::$instance;
93  }
94  return self::$instance = new ilPrivacySettings();
95  }
Singleton class that stores all privacy settings.
+ Here is the caller graph for this function:

◆ checkExportAccess()

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

Todo:
rename
Parameters
object$a_ref_id
Returns

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

References $DIC, $ilUser, ilObject\_lookupType(), enabledCourseExport(), enabledGroupExport(), enabledLearningSequenceExport(), and getPrivacySettingsRefId().

140  {
141  global $DIC;
142 
143  $ilUser = $DIC['ilUser'];
144  $ilAccess = $DIC['ilAccess'];
145  $rbacsystem = $DIC['rbacsystem'];
146 
147  $user_id = $a_user_id ? $a_user_id : $ilUser->getId();
148 
149  if (ilObject::_lookupType($a_ref_id, true) == 'crs') {
150  return $this->enabledCourseExport() and $ilAccess->checkAccessOfUser($user_id, 'manage_members', '', $a_ref_id) and $rbacsystem->checkAccessOfUser($user_id, 'export_member_data', $this->getPrivacySettingsRefId());
151  } elseif (ilObject::_lookupType($a_ref_id, true) == 'grp') {
152  return $this->enabledGroupExport() and $ilAccess->checkAccessOfUser($user_id, 'manage_members', '', $a_ref_id) and $rbacsystem->checkAccessOfUser($user_id, 'export_member_data', $this->getPrivacySettingsRefId());
153  } elseif (ilObject::_lookupType($a_ref_id, true) == 'lso') {
154  return $this->enabledLearningSequenceExport() and $ilAccess->checkAccessOfUser($user_id, 'manage_members', '', $a_ref_id) and $rbacsystem->checkAccessOfUser($user_id, 'export_member_data', $this->getPrivacySettingsRefId());
155  }
156  }
global $DIC
Definition: saml.php:7
$ilUser
Definition: imgupload.php:18
static _lookupType($a_id, $a_reference=false)
lookup object type
+ Here is the call graph for this function:

◆ confirmationRequired()

ilPrivacySettings::confirmationRequired (   $a_type)

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

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

246  {
247  switch ($a_type) {
248  case 'crs':
249  return $this->courseConfirmationRequired();
250 
251  case 'grp':
252  return $this->groupConfirmationRequired();
253 
254  case 'lso':
255  return $this->learningSequenceConfirmationRequired();
256  }
257  return false;
258  }
$a_type
Definition: workflow.php:92
+ Here is the call graph for this function:

◆ courseConfirmationRequired()

ilPrivacySettings::courseConfirmationRequired ( )

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

References $export_confirm_course.

Referenced by confirmationRequired(), and save().

261  {
263  }
+ Here is the caller graph for this function:

◆ enableAnonymousFora()

ilPrivacySettings::enableAnonymousFora (   $a_status)

write access to property anonymous fora

Parameters
bool$a_statusvalue to set property

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

196  {
197  $this->anonymous_fora = (bool) $a_status;
198  }

◆ enableCourseExport()

ilPrivacySettings::enableCourseExport (   $a_status)

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

159  {
160  $this->export_course = (bool) $a_status;
161  }

◆ enabledAccessTimesByType()

ilPrivacySettings::enabledAccessTimesByType (   $a_obj_type)

Check if access time are enabled for a specific type.

Parameters
type$a_obj_type
Returns
type

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

References enabledCourseAccessTimes(), and enabledGroupAccessTimes().

365  {
366  switch ($a_obj_type) {
367  case 'crs':
368  return $this->enabledCourseAccessTimes();
369 
370  case 'grp':
371  return $this->enabledGroupAccessTimes();
372  }
373  }
enabledGroupAccessTimes()
check if group access time are visible
enabledCourseAccessTimes()
check if access time are enabled in courses
+ Here is the call graph for this function:

◆ enabledAnonymousFora()

ilPrivacySettings::enabledAnonymousFora ( )

read access to property enable anonymous fora

Returns
bool true if enabled, false otherwise

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

References $anonymous_fora.

Referenced by save().

205  {
206  return $this->anonymous_fora;
207  }
+ Here is the caller graph for this function:

◆ enabledCourseAccessTimes()

ilPrivacySettings::enabledCourseAccessTimes ( )

check if access time are enabled in courses

public

Returns

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

References $show_crs_access_times.

Referenced by enabledAccessTimesByType(), and save().

355  {
356  return (bool) $this->show_crs_access_times;
357  }
+ Here is the caller graph for this function:

◆ enabledCourseExport()

ilPrivacySettings::enabledCourseExport ( )

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

References $export_course.

Referenced by checkExportAccess(), and save().

103  {
104  return $this->export_course;
105  }
+ Here is the caller graph for this function:

◆ enabledExportSCORM()

ilPrivacySettings::enabledExportSCORM ( )

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

References $export_scorm.

Referenced by save().

457  {
458  return $this->export_scorm;
459  }
+ Here is the caller graph for this function:

◆ enabledForaStatistics()

ilPrivacySettings::enabledForaStatistics ( )

read access to property enable fora statistics

Returns
bool true if enabled, false otherwise

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

References $fora_statistics.

Referenced by save().

187  {
188  return $this->fora_statistics;
189  }
+ Here is the caller graph for this function:

◆ enabledGroupAccessTimes()

ilPrivacySettings::enabledGroupAccessTimes ( )

check if group access time are visible

public

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

References $show_grp_access_times.

Referenced by enabledAccessTimesByType(), and save().

309  {
310  return (bool) $this->show_grp_access_times;
311  }
+ Here is the caller graph for this function:

◆ enabledGroupExport()

ilPrivacySettings::enabledGroupExport ( )

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

References $export_group.

Referenced by checkExportAccess(), and save().

108  {
109  return $this->export_group;
110  }
+ Here is the caller graph for this function:

◆ enabledLearningSequenceAccessTimes()

ilPrivacySettings::enabledLearningSequenceAccessTimes ( )

check if access time are enabled in lso

public

Returns

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

References $show_lso_access_times.

332  {
333  return (bool) $this->show_lso_access_times;
334  }

◆ enabledLearningSequenceExport()

ilPrivacySettings::enabledLearningSequenceExport ( )

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

References $export_learning_sequence.

Referenced by checkExportAccess(), and save().

+ Here is the caller graph for this function:

◆ enabledRbacLog()

ilPrivacySettings::enabledRbacLog ( )

read access to property enable rbac log

Returns
bool true if enabled, false otherwise

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

References $rbac_log.

Referenced by save().

223  {
224  return $this->rbac_log;
225  }
+ Here is the caller graph for this function:

◆ enabledSahsProtocolData()

ilPrivacySettings::enabledSahsProtocolData ( )

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

References $sahs_protocol_data.

Referenced by save().

447  {
448  return (int) $this->sahs_protocol_data;
449  }
+ Here is the caller graph for this function:

◆ enableExportSCORM()

ilPrivacySettings::enableExportSCORM (   $a_status)

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

461  {
462  $this->export_scorm = (bool) $a_status;
463  }

◆ enableForaStatistics()

ilPrivacySettings::enableForaStatistics (   $a_status)

write access to property fora statitics

Parameters
bool$a_statusvalue to set property

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

178  {
179  $this->fora_statistics = (bool) $a_status;
180  }

◆ enableGroupExport()

ilPrivacySettings::enableGroupExport (   $a_status)

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

164  {
165  $this->export_group = (bool) $a_status;
166  }

◆ enableLearningSequenceExport()

ilPrivacySettings::enableLearningSequenceExport (   $a_status)

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

169  {
170  $this->export_learning_sequence = (bool) $a_status;
171  }

◆ enableParticipantsListInCourses()

ilPrivacySettings::enableParticipantsListInCourses (   $a_status)
Parameters
bool

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

Referenced by read().

129  {
130  $this->participants_list_course_enabled = $a_status;
131  }
+ Here is the caller graph for this function:

◆ enableRbacLog()

ilPrivacySettings::enableRbacLog (   $a_status)

write access to property rbac_log

Parameters
bool$a_statusvalue to set property

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

214  {
215  $this->rbac_log = (bool) $a_status;
216  }

◆ enableSahsProtocolData()

ilPrivacySettings::enableSahsProtocolData (   $status)

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

451  {
452  $this->sahs_protocol_data = (int) $status;
453  }

◆ getPrivacySettingsRefId()

ilPrivacySettings::getPrivacySettingsRefId ( )

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

References $ref_id.

Referenced by checkExportAccess().

98  {
99  return $this->ref_id;
100  }
+ Here is the caller graph for this function:

◆ getRbacLogAge()

ilPrivacySettings::getRbacLogAge ( )

read access to property rbac log age

Returns
int

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

References $rbac_log_age.

Referenced by save().

241  {
242  return $this->rbac_log_age;
243  }
+ Here is the caller graph for this function:

◆ groupConfirmationRequired()

ilPrivacySettings::groupConfirmationRequired ( )

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

References $export_confirm_group.

Referenced by confirmationRequired(), and save().

266  {
268  }
+ Here is the caller graph for this function:

◆ learningSequenceConfirmationRequired()

ilPrivacySettings::learningSequenceConfirmationRequired ( )

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

References $export_confirm_learning_sequence.

Referenced by confirmationRequired(), and save().

+ Here is the caller graph for this function:

◆ participantsListInCoursesEnabled()

ilPrivacySettings::participantsListInCoursesEnabled ( )
Returns
bool

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

References $participants_list_course_enabled.

Referenced by save().

+ Here is the caller graph for this function:

◆ read()

ilPrivacySettings::read ( )
private

read settings

private

Parameters

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

References $DIC, $ilDB, $query, $res, $row, enableParticipantsListInCourses(), ilDBConstants\FETCHMODE_ASSOC, and settings().

Referenced by __construct().

407  {
408  global $DIC;
409 
410  $ilDB = $DIC['ilDB'];
411 
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";
417  $res = $this->db->query($query);
419  $this->ref_id = $row["ref_id"];
420 
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);
433  $this->enableParticipantsListInCourses((bool) $this->settings->get('participants_list_courses', $this->participantsListInCoursesEnabled()));
434  }
settings()
Definition: settings.php:2
global $DIC
Definition: saml.php:7
foreach($_POST as $key=> $value) $res
$query
$row
global $ilDB
enableParticipantsListInCourses($a_status)
+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ save()

ilPrivacySettings::save ( )

Save settings.

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

References courseConfirmationRequired(), enabledAnonymousFora(), enabledCourseAccessTimes(), enabledCourseExport(), enabledExportSCORM(), enabledForaStatistics(), enabledGroupAccessTimes(), enabledGroupExport(), enabledLearningSequenceExport(), enabledRbacLog(), enabledSahsProtocolData(), getRbacLogAge(), groupConfirmationRequired(), learningSequenceConfirmationRequired(), participantsListInCoursesEnabled(), and settings().

381  {
382  $this->settings->set('ps_export_confirm', (bool) $this->courseConfirmationRequired());
383  $this->settings->set('ps_export_confirm_group', (bool) $this->groupConfirmationRequired());
384  $this->settings->set('ps_export_confirm_learning_sequence', (bool) $this->learningSequenceConfirmationRequired());
385  $this->settings->set('ps_export_course', (bool) $this->enabledCourseExport());
386  $this->settings->set('ps_export_group', (bool) $this->enabledGroupExport());
387  $this->settings->set('ps_export_learning_sequence', (bool) $this->enabledLearningSequenceExport());
388  $this->settings->set('enable_fora_statistics', (bool) $this->enabledForaStatistics());
389  $this->settings->set('enable_anonymous_fora', (bool) $this->enabledAnonymousFora());
390  $this->settings->set('ps_access_times', (bool) $this->enabledGroupAccessTimes());
391  $this->settings->set('ps_crs_access_times', (bool) $this->enabledCourseAccessTimes());
392  $this->settings->set('rbac_log', (bool) $this->enabledRbacLog());
393  $this->settings->set('rbac_log_age', (int) $this->getRbacLogAge());
394  $this->settings->set('enable_sahs_pd', (int) $this->enabledSahsProtocolData());
395  $this->settings->set('ps_export_scorm', (bool) $this->enabledExportSCORM());
396 
397  $this->settings->set('participants_list_courses', (bool) $this->participantsListInCoursesEnabled());
398  }
enabledGroupAccessTimes()
check if group access time are visible
settings()
Definition: settings.php:2
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
+ Here is the call graph for this function:

◆ setCourseConfirmationRequired()

ilPrivacySettings::setCourseConfirmationRequired (   $a_status)

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

276  {
277  $this->export_confirm_course = (bool) $a_status;
278  }

◆ setGroupConfirmationRequired()

ilPrivacySettings::setGroupConfirmationRequired (   $a_status)

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

281  {
282  $this->export_confirm_group = (bool) $a_status;
283  }

◆ setLearningSequenceConfirmationRequired()

ilPrivacySettings::setLearningSequenceConfirmationRequired (   $a_status)

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

286  {
287  $this->export_confirm_learning_sequence = (bool) $a_status;
288  }

◆ setRbacLogAge()

ilPrivacySettings::setRbacLogAge (   $a_age)

write access to property rbac log age

Parameters
int$a_agevalue to set property

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

232  {
233  $this->rbac_log_age = (int) $a_age;
234  }

◆ showCourseAccessTimes()

ilPrivacySettings::showCourseAccessTimes (   $a_status)

show course access times

public

Parameters
boolstatus
Returns

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

321  {
322  $this->show_crs_access_times = $a_status;
323  }

◆ showGroupAccessTimes()

ilPrivacySettings::showGroupAccessTimes (   $a_status)

Show group last access times.

public

Parameters

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

298  {
299  $this->show_grp_access_times = $a_status;
300  }

◆ showLearningSequenceAccessTimes()

ilPrivacySettings::showLearningSequenceAccessTimes (   $a_status)

show lso access times

public

Parameters
boolstatus
Returns

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

344  {
345  $this->show_lso_access_times = $a_status;
346  }

◆ validate()

ilPrivacySettings::validate ( )

validate settings

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

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

442  {
443  return 0;
444  }

Field Documentation

◆ $anonymous_fora

ilPrivacySettings::$anonymous_fora
private

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

Referenced by enabledAnonymousFora().

◆ $db

ilPrivacySettings::$db
private

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

◆ $export_confirm_course

ilPrivacySettings::$export_confirm_course
private

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

Referenced by courseConfirmationRequired().

◆ $export_confirm_group

ilPrivacySettings::$export_confirm_group
private

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

Referenced by groupConfirmationRequired().

◆ $export_confirm_learning_sequence

ilPrivacySettings::$export_confirm_learning_sequence
private

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

Referenced by learningSequenceConfirmationRequired().

◆ $export_course

ilPrivacySettings::$export_course
private

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

Referenced by enabledCourseExport().

◆ $export_group

ilPrivacySettings::$export_group
private

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

Referenced by enabledGroupExport().

◆ $export_learning_sequence

ilPrivacySettings::$export_learning_sequence
private

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

Referenced by enabledLearningSequenceExport().

◆ $export_scorm

ilPrivacySettings::$export_scorm
private

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

Referenced by enabledExportSCORM().

◆ $fora_statistics

ilPrivacySettings::$fora_statistics
private

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

Referenced by enabledForaStatistics().

◆ $instance

ilPrivacySettings::$instance = null
staticprivate

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

◆ $participants_list_course_enabled

ilPrivacySettings::$participants_list_course_enabled = true
private

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

Referenced by participantsListInCoursesEnabled().

◆ $rbac_log

ilPrivacySettings::$rbac_log
private

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

Referenced by enabledRbacLog().

◆ $rbac_log_age

ilPrivacySettings::$rbac_log_age
private

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

Referenced by getRbacLogAge().

◆ $ref_id

ilPrivacySettings::$ref_id
private

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

Referenced by getPrivacySettingsRefId().

◆ $sahs_protocol_data

ilPrivacySettings::$sahs_protocol_data
private

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

Referenced by enabledSahsProtocolData().

◆ $settings

ilPrivacySettings::$settings
private

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

◆ $show_crs_access_times

ilPrivacySettings::$show_crs_access_times
private

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

Referenced by enabledCourseAccessTimes().

◆ $show_grp_access_times

ilPrivacySettings::$show_grp_access_times
private

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

Referenced by enabledGroupAccessTimes().

◆ $show_lso_access_times

ilPrivacySettings::$show_lso_access_times
private

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

Referenced by enabledLearningSequenceAccessTimes().


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