ILIAS  release_7 Revision v7.30-3-g800a261c036
All Data Structures Namespaces Files Functions Variables Modules Pages
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)
 
 enableCommentsExport ($a_status)
 Enable comments export. More...
 
 enabledCommentsExport ()
 Enable comments export. More...
 

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
 
 $comments_export
 

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 75 of file class.ilPrivacySettings.php.

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

76  {
77  global $DIC;
78 
79  $ilSetting = $DIC['ilSetting'];
80  $ilDB = $DIC['ilDB'];
81 
82  $this->db = $ilDB;
83  $this->settings = $ilSetting;
84 
85  $this->read();
86  }
settings()
Definition: settings.php:2
global $DIC
Definition: goto.php:24
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 94 of file class.ilPrivacySettings.php.

Referenced by ilSCORMTrackingItemsTableGUI\__construct(), ilSCORM2004TrackingItemsTableGUI\__construct(), ilCourseParticipantsTableGUI\__construct(), ilMemberAgreementGUI\__construct(), ilGroupParticipantsTableGUI\__construct(), ilGroupEditParticipantsTableGUI\__construct(), ilMemberAgreement\__construct(), ilCourseEditParticipantsTableGUI\__construct(), ilRegistrationGUI\__construct(), ilMemberExport\__construct(), ilObjCourse\__readSettings(), ilObjCommentsSettingsGUI\addToExternalSettingsForm(), 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(), ilObjCommentsSettingsGUI\initForm(), ilParticipantTableGUI\initSettings(), ilObjRoleFolderGUI\initSettingsForm(), ilRbacLog\isActive(), ilObjBlogAccess\isCommentsExportPossible(), ilObjPortfolio\isCommentsExportPossible(), ilObjWiki\isCommentsExportPossible(), 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(), ilObjCommentsSettingsGUI\saveSettings(), ilObjLearningResourcesSettingsGUI\saveSettings(), ilObjRoleFolderGUI\saveSettingsObject(), ilSAHSPresentationGUI\setInfoTabs(), ilMembershipGUI\setSubTabs(), ilObjCourseGUI\setSubTabs(), ilObjGroupGUI\setSubTabs(), ilObjPrivacySecurityGUI\showPrivacy(), ilObjCourseGUI\updateObject(), and ilSCORMTrackingItems\userDataHeaderForExport().

95  {
96  if (is_object(self::$instance)) {
97  return self::$instance;
98  }
99  return self::$instance = new ilPrivacySettings();
100  }
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 144 of file class.ilPrivacySettings.php.

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

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

◆ confirmationRequired()

ilPrivacySettings::confirmationRequired (   $a_type)

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

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

251  {
252  switch ($a_type) {
253  case 'crs':
254  return $this->courseConfirmationRequired();
255 
256  case 'grp':
257  return $this->groupConfirmationRequired();
258 
259  case 'lso':
260  return $this->learningSequenceConfirmationRequired();
261  }
262  return false;
263  }
+ Here is the call graph for this function:

◆ courseConfirmationRequired()

ilPrivacySettings::courseConfirmationRequired ( )

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

References $export_confirm_course.

Referenced by confirmationRequired(), and save().

266  {
268  }
+ 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 200 of file class.ilPrivacySettings.php.

201  {
202  $this->anonymous_fora = (bool) $a_status;
203  }

◆ enableCommentsExport()

ilPrivacySettings::enableCommentsExport (   $a_status)

Enable comments export.

Parameters
bool$a_status

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

Referenced by read().

477  {
478  $this->comments_export = (bool) $a_status;
479  }
+ Here is the caller graph for this function:

◆ enableCourseExport()

ilPrivacySettings::enableCourseExport (   $a_status)

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

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

◆ 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 369 of file class.ilPrivacySettings.php.

References enabledCourseAccessTimes(), and enabledGroupAccessTimes().

370  {
371  switch ($a_obj_type) {
372  case 'crs':
373  return $this->enabledCourseAccessTimes();
374 
375  case 'grp':
376  return $this->enabledGroupAccessTimes();
377  }
378  }
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 209 of file class.ilPrivacySettings.php.

References $anonymous_fora.

Referenced by save().

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

◆ enabledCommentsExport()

ilPrivacySettings::enabledCommentsExport ( )

Enable comments export.

Returns
bool

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

References $comments_export.

Referenced by save().

485  : bool
486  {
487  return $this->comments_export;
488  }
+ Here is the caller graph for this function:

◆ enabledCourseAccessTimes()

ilPrivacySettings::enabledCourseAccessTimes ( )

check if access time are enabled in courses

public

Returns

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

References $show_crs_access_times.

Referenced by enabledAccessTimesByType(), and save().

360  {
361  return (bool) $this->show_crs_access_times;
362  }
+ Here is the caller graph for this function:

◆ enabledCourseExport()

ilPrivacySettings::enabledCourseExport ( )

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

References $export_course.

Referenced by checkExportAccess(), and save().

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

◆ enabledExportSCORM()

ilPrivacySettings::enabledExportSCORM ( )

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

References $export_scorm.

Referenced by save().

464  {
465  return $this->export_scorm;
466  }
+ 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 191 of file class.ilPrivacySettings.php.

References $fora_statistics.

Referenced by save().

192  {
193  return $this->fora_statistics;
194  }
+ Here is the caller graph for this function:

◆ enabledGroupAccessTimes()

ilPrivacySettings::enabledGroupAccessTimes ( )

check if group access time are visible

public

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

References $show_grp_access_times.

Referenced by enabledAccessTimesByType(), and save().

314  {
315  return (bool) $this->show_grp_access_times;
316  }
+ Here is the caller graph for this function:

◆ enabledGroupExport()

ilPrivacySettings::enabledGroupExport ( )

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

References $export_group.

Referenced by checkExportAccess(), and save().

113  {
114  return $this->export_group;
115  }
+ Here is the caller graph for this function:

◆ enabledLearningSequenceAccessTimes()

ilPrivacySettings::enabledLearningSequenceAccessTimes ( )

check if access time are enabled in lso

public

Returns

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

References $show_lso_access_times.

337  {
338  return (bool) $this->show_lso_access_times;
339  }

◆ enabledLearningSequenceExport()

ilPrivacySettings::enabledLearningSequenceExport ( )

Definition at line 117 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 227 of file class.ilPrivacySettings.php.

References $rbac_log.

Referenced by save().

228  {
229  return $this->rbac_log;
230  }
+ Here is the caller graph for this function:

◆ enabledSahsProtocolData()

ilPrivacySettings::enabledSahsProtocolData ( )

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

References $sahs_protocol_data.

Referenced by save().

454  {
455  return (int) $this->sahs_protocol_data;
456  }
+ Here is the caller graph for this function:

◆ enableExportSCORM()

ilPrivacySettings::enableExportSCORM (   $a_status)

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

468  {
469  $this->export_scorm = (bool) $a_status;
470  }

◆ enableForaStatistics()

ilPrivacySettings::enableForaStatistics (   $a_status)

write access to property fora statitics

Parameters
bool$a_statusvalue to set property

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

183  {
184  $this->fora_statistics = (bool) $a_status;
185  }

◆ enableGroupExport()

ilPrivacySettings::enableGroupExport (   $a_status)

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

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

◆ enableLearningSequenceExport()

ilPrivacySettings::enableLearningSequenceExport (   $a_status)

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

174  {
175  $this->export_learning_sequence = (bool) $a_status;
176  }

◆ enableParticipantsListInCourses()

ilPrivacySettings::enableParticipantsListInCourses (   $a_status)
Parameters
bool

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

Referenced by read().

134  {
135  $this->participants_list_course_enabled = $a_status;
136  }
+ 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 218 of file class.ilPrivacySettings.php.

219  {
220  $this->rbac_log = (bool) $a_status;
221  }

◆ enableSahsProtocolData()

ilPrivacySettings::enableSahsProtocolData (   $status)

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

458  {
459  $this->sahs_protocol_data = (int) $status;
460  }

◆ getPrivacySettingsRefId()

ilPrivacySettings::getPrivacySettingsRefId ( )

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

References $ref_id.

Referenced by checkExportAccess().

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

◆ getRbacLogAge()

ilPrivacySettings::getRbacLogAge ( )

read access to property rbac log age

Returns
int

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

References $rbac_log_age.

Referenced by save().

246  {
247  return $this->rbac_log_age;
248  }
+ Here is the caller graph for this function:

◆ groupConfirmationRequired()

ilPrivacySettings::groupConfirmationRequired ( )

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

References $export_confirm_group.

Referenced by confirmationRequired(), and save().

271  {
273  }
+ Here is the caller graph for this function:

◆ learningSequenceConfirmationRequired()

ilPrivacySettings::learningSequenceConfirmationRequired ( )

Definition at line 275 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 125 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 412 of file class.ilPrivacySettings.php.

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

Referenced by __construct().

413  {
414  global $DIC;
415 
416  $ilDB = $DIC['ilDB'];
417 
418  $query = "SELECT object_reference.ref_id FROM object_reference,tree,object_data " .
419  "WHERE tree.parent = " . $ilDB->quote(SYSTEM_FOLDER_ID, 'integer') . " " .
420  "AND object_data.type = 'ps' " .
421  "AND object_reference.ref_id = tree.child " .
422  "AND object_reference.obj_id = object_data.obj_id";
423  $res = $this->db->query($query);
424  $row = $res->fetchRow(ilDBConstants::FETCHMODE_ASSOC);
425  $this->ref_id = $row["ref_id"];
426 
427  $this->export_course = (bool) $this->settings->get('ps_export_course', false);
428  $this->export_group = (bool) $this->settings->get('ps_export_group', false);
429  $this->export_confirm_course = (bool) $this->settings->get('ps_export_confirm', false);
430  $this->export_confirm_group = (bool) $this->settings->get('ps_export_confirm_group', false);
431  $this->fora_statistics = (bool) $this->settings->get('enable_fora_statistics', false);
432  $this->anonymous_fora = (bool) $this->settings->get('enable_anonymous_fora', false);
433  $this->show_grp_access_times = (bool) $this->settings->get('ps_access_times', false);
434  $this->show_crs_access_times = (bool) $this->settings->get('ps_crs_access_times', false);
435  $this->rbac_log = (bool) $this->settings->get('rbac_log', false);
436  $this->rbac_log_age = (int) $this->settings->get('rbac_log_age', 6);
437  $this->sahs_protocol_data = (int) $this->settings->get('enable_sahs_pd', 0);
438  $this->export_scorm = (bool) $this->settings->get('ps_export_scorm', false);
439  $this->enableParticipantsListInCourses((bool) $this->settings->get('participants_list_courses', $this->participantsListInCoursesEnabled()));
440  $this->enableCommentsExport((bool) $this->settings->get('comments_export', false));
441  }
settings()
Definition: settings.php:2
const SYSTEM_FOLDER_ID
Definition: constants.php:33
foreach($_POST as $key=> $value) $res
enableCommentsExport($a_status)
Enable comments export.
global $DIC
Definition: goto.php:24
$query
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 385 of file class.ilPrivacySettings.php.

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

386  {
387  $this->settings->set('ps_export_confirm', (bool) $this->courseConfirmationRequired());
388  $this->settings->set('ps_export_confirm_group', (bool) $this->groupConfirmationRequired());
389  $this->settings->set('ps_export_confirm_learning_sequence', (bool) $this->learningSequenceConfirmationRequired());
390  $this->settings->set('ps_export_course', (bool) $this->enabledCourseExport());
391  $this->settings->set('ps_export_group', (bool) $this->enabledGroupExport());
392  $this->settings->set('ps_export_learning_sequence', (bool) $this->enabledLearningSequenceExport());
393  $this->settings->set('enable_fora_statistics', (bool) $this->enabledForaStatistics());
394  $this->settings->set('enable_anonymous_fora', (bool) $this->enabledAnonymousFora());
395  $this->settings->set('ps_access_times', (bool) $this->enabledGroupAccessTimes());
396  $this->settings->set('ps_crs_access_times', (bool) $this->enabledCourseAccessTimes());
397  $this->settings->set('rbac_log', (bool) $this->enabledRbacLog());
398  $this->settings->set('rbac_log_age', (int) $this->getRbacLogAge());
399  $this->settings->set('enable_sahs_pd', (int) $this->enabledSahsProtocolData());
400  $this->settings->set('ps_export_scorm', (bool) $this->enabledExportSCORM());
401 
402  $this->settings->set('participants_list_courses', (bool) $this->participantsListInCoursesEnabled());
403  $this->settings->set('comments_export', (bool) $this->enabledCommentsExport());
404  }
enabledGroupAccessTimes()
check if group access time are visible
enabledCommentsExport()
Enable comments export.
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 280 of file class.ilPrivacySettings.php.

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

◆ setGroupConfirmationRequired()

ilPrivacySettings::setGroupConfirmationRequired (   $a_status)

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

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

◆ setLearningSequenceConfirmationRequired()

ilPrivacySettings::setLearningSequenceConfirmationRequired (   $a_status)

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

291  {
292  $this->export_confirm_learning_sequence = (bool) $a_status;
293  }

◆ setRbacLogAge()

ilPrivacySettings::setRbacLogAge (   $a_age)

write access to property rbac log age

Parameters
int$a_agevalue to set property

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

237  {
238  $this->rbac_log_age = (int) $a_age;
239  }

◆ showCourseAccessTimes()

ilPrivacySettings::showCourseAccessTimes (   $a_status)

show course access times

public

Parameters
boolstatus
Returns

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

326  {
327  $this->show_crs_access_times = $a_status;
328  }

◆ showGroupAccessTimes()

ilPrivacySettings::showGroupAccessTimes (   $a_status)

Show group last access times.

public

Parameters

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

303  {
304  $this->show_grp_access_times = $a_status;
305  }

◆ showLearningSequenceAccessTimes()

ilPrivacySettings::showLearningSequenceAccessTimes (   $a_status)

show lso access times

public

Parameters
boolstatus
Returns

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

349  {
350  $this->show_lso_access_times = $a_status;
351  }

◆ validate()

ilPrivacySettings::validate ( )

validate settings

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

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

449  {
450  return 0;
451  }

Field Documentation

◆ $anonymous_fora

ilPrivacySettings::$anonymous_fora
private

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

Referenced by enabledAnonymousFora().

◆ $comments_export

ilPrivacySettings::$comments_export
private

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

Referenced by enabledCommentsExport().

◆ $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: