ILIAS  release_8 Revision v8.19
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 (bool $a_status)
 
 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 $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
 

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

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

60  {
61  global $DIC;
62 
63  $this->settings = $DIC->settings();
64  $this->db = $DIC->database();
65  $this->user = $DIC->user();
66 
67  $this->read();
68  }
global $DIC
Definition: feed.php:28
+ 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 111 of file class.ilPrivacySettings.php.

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

111  : bool
112  {
113  global $DIC;
114 
115  $ilAccess = $DIC->access();
116  $rbacsystem = $DIC->rbac()->system();
117 
118  $user_id = $a_user_id ?: $this->user->getId();
119  if (ilObject::_lookupType($a_ref_id, true) == 'crs') {
120  return $this->enabledCourseExport() and $ilAccess->checkAccessOfUser(
121  $user_id,
122  'manage_members',
123  '',
124  $a_ref_id
125  ) and $rbacsystem->checkAccessOfUser(
126  $user_id,
127  'export_member_data',
128  $this->getPrivacySettingsRefId()
129  );
130  } elseif (ilObject::_lookupType($a_ref_id, true) == 'grp') {
131  return $this->enabledGroupExport() and $ilAccess->checkAccessOfUser(
132  $user_id,
133  'manage_members',
134  '',
135  $a_ref_id
136  ) and $rbacsystem->checkAccessOfUser(
137  $user_id,
138  'export_member_data',
139  $this->getPrivacySettingsRefId()
140  );
141  } elseif (ilObject::_lookupType($a_ref_id, true) == 'lso') {
142  return $this->enabledLearningSequenceExport() and $ilAccess->checkAccessOfUser(
143  $user_id,
144  'manage_members',
145  '',
146  $a_ref_id
147  ) and $rbacsystem->checkAccessOfUser(
148  $user_id,
149  'export_member_data',
150  $this->getPrivacySettingsRefId()
151  );
152  }
153  return false;
154  }
global $DIC
Definition: feed.php:28
return['3gp', '7z', 'ai', 'aif', 'aifc', 'aiff', 'au', 'arw', 'avi', 'backup', 'bak', 'bas', 'bpmn', 'bpmn2', 'bmp', 'bib', 'bibtex', 'bz', 'bz2', 'c', 'c++', 'cc', 'cct', 'cdf', 'cer', 'class', 'cls', 'conf', 'cpp', 'crt', 'crs', 'crw', 'cr2', 'css', 'cst', 'csv', 'cur', 'db', 'dcr', 'des', 'dng', 'doc', 'docx', 'dot', 'dotx', 'dtd', 'dvi', 'el', 'eps', 'epub', 'f', 'f77', 'f90', 'flv', 'for', 'g3', 'gif', 'gl', 'gan', 'ggb', 'gsd', 'gsm', 'gtar', 'gz', 'gzip', 'h', 'hpp', 'htm', 'html', 'htmls', 'ibooks', 'ico', 'ics', 'ini', 'ipynb', 'java', 'jbf', 'jpeg', 'jpg', 'js', 'jsf', 'jso', 'json', 'latex', 'lang', 'less', 'log', 'lsp', 'ltx', 'm1v', 'm2a', 'm2v', 'm3u', 'm4a', 'm4v', 'markdown', 'm', 'mat', 'md', 'mdl', 'mdown', 'mid', 'min', 'midi', 'mobi', 'mod', 'mov', 'movie', 'mp2', 'mp3', 'mp4', 'mpa', 'mpeg', 'mpg', 'mph', 'mpga', 'mpp', 'mpt', 'mpv', 'mpx', 'mv', 'mw', 'mv4', 'nb', 'nbp', 'nef', 'nif', 'niff', 'obj', 'obm', 'odt', 'ods', 'odp', 'odg', 'odf', 'oga', 'ogg', 'ogv', 'old', 'p', 'pas', 'pbm', 'pcl', 'pct', 'pcx', 'pdf', 'pgm', 'pic', 'pict', 'png', 'por', 'pov', 'project', 'properties', 'ppa', 'ppm', 'pps', 'ppsx', 'ppt', 'pptx', 'ppz', 'ps', 'psd', 'pwz', 'qt', 'qtc', 'qti', 'qtif', 'r', 'ra', 'ram', 'rar', 'rast', 'rda', 'rev', 'rexx', 'ris', 'rf', 'rgb', 'rm', 'rmd', 'rmi', 'rmm', 'rmp', 'rt', 'rtf', 'rtx', 'rv', 's', 's3m', 'sav', 'sbs', 'sec', 'sdml', 'sgm', 'sgml', 'smi', 'smil', 'srt', 'sps', 'spv', 'stl', 'svg', 'swa', 'swf', 'swz', 'tar', 'tex', 'texi', 'texinfo', 'text', 'tgz', 'tif', 'tiff', 'ttf', 'txt', 'tmp', 'uvproj', 'vdf', 'vimeo', 'viv', 'vivo', 'vrml', 'vsdx', 'wav', 'webm', 'wmv', 'wmx', 'wmz', 'woff', 'wwd', 'xhtml', 'xif', 'xls', 'xlsx', 'xmind', 'xml', 'xsl', 'xsd', 'zip']
static _lookupType(int $id, bool $reference=false)
+ Here is the call graph for this function:

◆ confirmationRequired()

ilPrivacySettings::confirmationRequired ( string  $a_type)

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

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

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

◆ courseConfirmationRequired()

ilPrivacySettings::courseConfirmationRequired ( )

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

References $export_confirm_course.

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

250  : bool
251  {
253  }
+ Here is the caller graph for this function:

◆ enableAnonymousFora()

ilPrivacySettings::enableAnonymousFora ( bool  $a_status)

write access to property anonymous fora

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

190  : void
191  {
192  $this->anonymous_fora = $a_status;
193  }

◆ enableCommentsExport()

ilPrivacySettings::enableCommentsExport ( bool  $a_status)

Enable comments export.

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

Referenced by read().

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

◆ enableCourseExport()

ilPrivacySettings::enableCourseExport ( bool  $a_status)

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

156  : void
157  {
158  $this->export_course = $a_status;
159  }

◆ enabledAccessTimesByType()

ilPrivacySettings::enabledAccessTimesByType ( string  $a_obj_type)

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

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

328  : bool
329  {
330  switch ($a_obj_type) {
331  case 'crs':
332  return $this->enabledCourseAccessTimes();
333 
334  case 'grp':
335  return $this->enabledGroupAccessTimes();
336 
337  case 'lso':
338  return $this->enabledLearningSequenceAccessTimes();
339  }
340  return false;
341  }
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 198 of file class.ilPrivacySettings.php.

References $anonymous_fora.

Referenced by save().

198  : bool
199  {
200  return $this->anonymous_fora;
201  }
+ Here is the caller graph for this function:

◆ enabledCommentsExport()

ilPrivacySettings::enabledCommentsExport ( )

Enable comments export.

Returns
bool

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

References $comments_export.

Referenced by save().

449  : bool
450  {
451  return $this->comments_export;
452  }
+ Here is the caller graph for this function:

◆ enabledCourseAccessTimes()

ilPrivacySettings::enabledCourseAccessTimes ( )

check if access time are enabled in courses

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

References $show_crs_access_times.

Referenced by enabledAccessTimesByType(), and save().

323  : bool
324  {
326  }
+ Here is the caller graph for this function:

◆ enabledCourseExport()

ilPrivacySettings::enabledCourseExport ( )

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

References $export_course.

Referenced by checkExportAccess(), and save().

83  : bool
84  {
85  return $this->export_course;
86  }
+ Here is the caller graph for this function:

◆ enabledExportSCORM()

ilPrivacySettings::enabledExportSCORM ( )

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

References $export_scorm.

Referenced by save().

427  : bool
428  {
429  return $this->export_scorm;
430  }
+ Here is the caller graph for this function:

◆ enabledForaStatistics()

ilPrivacySettings::enabledForaStatistics ( )

read access to property enable fora statistics

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

References $fora_statistics.

Referenced by save().

182  : bool
183  {
184  return $this->fora_statistics;
185  }
+ Here is the caller graph for this function:

◆ enabledGroupAccessTimes()

ilPrivacySettings::enabledGroupAccessTimes ( )

check if group access time are visible

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

References $show_grp_access_times.

Referenced by enabledAccessTimesByType(), and save().

291  : bool
292  {
294  }
+ Here is the caller graph for this function:

◆ enabledGroupExport()

ilPrivacySettings::enabledGroupExport ( )

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

References $export_group.

Referenced by checkExportAccess(), and save().

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

◆ enabledLearningSequenceAccessTimes()

ilPrivacySettings::enabledLearningSequenceAccessTimes ( )

check if access time are enabled in lso

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

References $show_lso_access_times.

Referenced by enabledAccessTimesByType(), and save().

307  : bool
308  {
310  }
+ Here is the caller graph for this function:

◆ enabledLearningSequenceExport()

ilPrivacySettings::enabledLearningSequenceExport ( )

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

References $export_learning_sequence.

Referenced by checkExportAccess(), and save().

93  : bool
94  {
96  }
+ Here is the caller graph for this function:

◆ enabledRbacLog()

ilPrivacySettings::enabledRbacLog ( )

read access to property enable rbac log

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

References $rbac_log.

Referenced by save().

214  : bool
215  {
216  return $this->rbac_log;
217  }
+ Here is the caller graph for this function:

◆ enabledSahsProtocolData()

ilPrivacySettings::enabledSahsProtocolData ( )

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

References $sahs_protocol_data.

Referenced by save().

416  : int
417  {
418  return (int) $this->sahs_protocol_data;
419  }
+ Here is the caller graph for this function:

◆ enableExportSCORM()

ilPrivacySettings::enableExportSCORM ( int  $a_status)

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

432  : void
433  {
434  $this->export_scorm = (bool) $a_status;
435  }

◆ enableForaStatistics()

ilPrivacySettings::enableForaStatistics ( bool  $a_status)

write access to property fora statitics

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

174  : void
175  {
176  $this->fora_statistics = $a_status;
177  }

◆ enableGroupExport()

ilPrivacySettings::enableGroupExport ( bool  $a_status)

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

161  : void
162  {
163  $this->export_group = $a_status;
164  }

◆ enableLearningSequenceExport()

ilPrivacySettings::enableLearningSequenceExport ( bool  $a_status)

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

166  : void
167  {
168  $this->export_learning_sequence = $a_status;
169  }

◆ enableParticipantsListInCourses()

ilPrivacySettings::enableParticipantsListInCourses ( bool  $a_status)

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

Referenced by read().

103  : void
104  {
105  $this->participants_list_course_enabled = $a_status;
106  }
+ Here is the caller graph for this function:

◆ enableRbacLog()

ilPrivacySettings::enableRbacLog ( bool  $a_status)

write access to property rbac_log

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

206  : void
207  {
208  $this->rbac_log = $a_status;
209  }

◆ enableSahsProtocolData()

ilPrivacySettings::enableSahsProtocolData ( int  $status)

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

References ILIAS\Repository\int().

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

◆ getInstance()

static ilPrivacySettings::getInstance ( )
static

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

Referenced by ilMemberAgreement\__construct(), ilGroupParticipantsTableGUI\__construct(), ilCourseParticipantsTableGUI\__construct(), ilSCORMTrackingItemsTableGUI\__construct(), ilCourseEditParticipantsTableGUI\__construct(), ilSCORM2004TrackingItemsTableGUI\__construct(), ilMemberAgreementGUI\__construct(), ilGroupEditParticipantsTableGUI\__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(), 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(), 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(), ilObjCommentsSettingsGUI\saveSettings(), ilObjLearningResourcesSettingsGUI\saveSettings(), ilObjRoleFolderGUI\saveSettingsObject(), ilSAHSPresentationGUI\setInfoTabs(), ilMembershipGUI\setSubTabs(), ilObjCourseGUI\setSubTabs(), ilObjGroupGUI\setSubTabs(), ilPrivacySettingsTest\testConstruct(), ilObjCourseGUI\updateObject(), and ilSCORMTrackingItems\userDataHeaderForExport().

71  {
72  if (!self::$instance instanceof ilPrivacySettings) {
73  self::$instance = new self();
74  }
75  return self::$instance;
76  }
Singleton class that stores all privacy settings.
+ Here is the caller graph for this function:

◆ getPrivacySettingsRefId()

ilPrivacySettings::getPrivacySettingsRefId ( )

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

References $ref_id.

Referenced by checkExportAccess().

78  : int
79  {
80  return $this->ref_id;
81  }
+ Here is the caller graph for this function:

◆ getRbacLogAge()

ilPrivacySettings::getRbacLogAge ( )

read access to property rbac log age

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

References $rbac_log_age.

Referenced by save().

230  : int
231  {
232  return $this->rbac_log_age;
233  }
+ Here is the caller graph for this function:

◆ groupConfirmationRequired()

ilPrivacySettings::groupConfirmationRequired ( )

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

References $export_confirm_group.

Referenced by confirmationRequired(), and save().

255  : bool
256  {
258  }
+ Here is the caller graph for this function:

◆ learningSequenceConfirmationRequired()

ilPrivacySettings::learningSequenceConfirmationRequired ( )

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

References $export_confirm_learning_sequence.

Referenced by confirmationRequired(), and save().

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

◆ participantsListInCoursesEnabled()

ilPrivacySettings::participantsListInCoursesEnabled ( )

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

References $participants_list_course_enabled.

Referenced by save().

98  : bool
99  {
101  }
+ Here is the caller graph for this function:

◆ read()

ilPrivacySettings::read ( )
private

read settings

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

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

Referenced by __construct().

374  : void
375  {
376  $query = "SELECT object_reference.ref_id FROM object_reference,tree,object_data " .
377  "WHERE tree.parent = " . $this->db->quote(SYSTEM_FOLDER_ID, 'integer') . " " .
378  "AND object_data.type = 'ps' " .
379  "AND object_reference.ref_id = tree.child " .
380  "AND object_reference.obj_id = object_data.obj_id";
381  $res = $this->db->query($query);
382  $row = $res->fetchRow(ilDBConstants::FETCHMODE_ASSOC);
383  $this->ref_id = (int) ($row["ref_id"] ?? 0);
384 
385  $this->export_course = (bool) $this->settings->get('ps_export_course', null);
386  $this->export_group = (bool) $this->settings->get('ps_export_group', null);
387  $this->export_learning_sequence = (bool) $this->settings->get('ps_export_learning_sequence', null);
388  $this->export_confirm_course = (bool) $this->settings->get('ps_export_confirm', null);
389  $this->export_confirm_group = (bool) $this->settings->get('ps_export_confirm_group', null);
390  $this->export_confirm_learning_sequence = (bool) $this->settings->get('ps_export_confirm_learning_sequence', null);
391  $this->fora_statistics = (bool) $this->settings->get('enable_fora_statistics', null);
392  $this->anonymous_fora = (bool) $this->settings->get('enable_anonymous_fora', null);
393  $this->show_grp_access_times = (bool) $this->settings->get('ps_access_times', null);
394  $this->show_crs_access_times = (bool) $this->settings->get('ps_crs_access_times', null);
395  $this->show_lso_access_times = (bool) $this->settings->get('ps_lso_access_times', null);
396  $this->rbac_log = (bool) $this->settings->get('rbac_log', null);
397  $this->rbac_log_age = (int) $this->settings->get('rbac_log_age', "6");
398  $this->sahs_protocol_data = (int) $this->settings->get('enable_sahs_pd', "0");
399  $this->export_scorm = (bool) $this->settings->get('ps_export_scorm', null);
400  $this->enableParticipantsListInCourses((bool) $this->settings->get(
401  'participants_list_courses',
402  (string) $this->participantsListInCoursesEnabled()
403  ));
404  $this->enableCommentsExport((bool) $this->settings->get('comments_export', null));
405  }
$res
Definition: ltiservices.php:69
const SYSTEM_FOLDER_ID
Definition: constants.php:35
$query
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 346 of file class.ilPrivacySettings.php.

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

346  : void
347  {
348  $this->settings->set('ps_export_confirm', (string) $this->courseConfirmationRequired());
349  $this->settings->set('ps_export_confirm_group', (string) $this->groupConfirmationRequired());
350  $this->settings->set(
351  'ps_export_confirm_learning_sequence',
352  (string) $this->learningSequenceConfirmationRequired()
353  );
354  $this->settings->set('ps_export_course', (string) $this->enabledCourseExport());
355  $this->settings->set('ps_export_group', (string) $this->enabledGroupExport());
356  $this->settings->set('ps_export_learning_sequence', (string) $this->enabledLearningSequenceExport());
357  $this->settings->set('enable_fora_statistics', (string) $this->enabledForaStatistics());
358  $this->settings->set('enable_anonymous_fora', (string) $this->enabledAnonymousFora());
359  $this->settings->set('ps_access_times', (string) $this->enabledGroupAccessTimes());
360  $this->settings->set('ps_crs_access_times', (string) $this->enabledCourseAccessTimes());
361  $this->settings->set('ps_lso_access_times', (string) $this->enabledLearningSequenceAccessTimes());
362  $this->settings->set('rbac_log', (string) $this->enabledRbacLog());
363  $this->settings->set('rbac_log_age', (string) $this->getRbacLogAge());
364  $this->settings->set('enable_sahs_pd', (string) $this->enabledSahsProtocolData());
365  $this->settings->set('ps_export_scorm', (string) $this->enabledExportSCORM());
366 
367  $this->settings->set('participants_list_courses', (string) $this->participantsListInCoursesEnabled());
368  $this->settings->set('comments_export', (string) $this->enabledCommentsExport());
369  }
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 265 of file class.ilPrivacySettings.php.

265  : void
266  {
267  $this->export_confirm_course = $a_status;
268  }

◆ setGroupConfirmationRequired()

ilPrivacySettings::setGroupConfirmationRequired ( bool  $a_status)

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

270  : void
271  {
272  $this->export_confirm_group = (bool) $a_status;
273  }

◆ setLearningSequenceConfirmationRequired()

ilPrivacySettings::setLearningSequenceConfirmationRequired ( bool  $a_status)

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

275  : void
276  {
277  $this->export_confirm_learning_sequence = $a_status;
278  }

◆ setRbacLogAge()

ilPrivacySettings::setRbacLogAge ( int  $a_age)

write access to property rbac log age

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

222  : void
223  {
224  $this->rbac_log_age = $a_age;
225  }

◆ showCourseAccessTimes()

ilPrivacySettings::showCourseAccessTimes ( bool  $a_status)

show course access times

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

299  : void
300  {
301  $this->show_crs_access_times = $a_status;
302  }

◆ showGroupAccessTimes()

ilPrivacySettings::showGroupAccessTimes ( bool  $a_status)

Show group last access times.

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

283  : void
284  {
285  $this->show_grp_access_times = $a_status;
286  }

◆ showLearningSequenceAccessTimes()

ilPrivacySettings::showLearningSequenceAccessTimes ( bool  $a_status)

show lso access times

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

315  : void
316  {
317  $this->show_lso_access_times = $a_status;
318  }

◆ validate()

ilPrivacySettings::validate ( )

validate settings

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

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

411  : int
412  {
413  return 0;
414  }

Field Documentation

◆ $anonymous_fora

bool ilPrivacySettings::$anonymous_fora
private

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

Referenced by enabledAnonymousFora().

◆ $comments_export

bool ilPrivacySettings::$comments_export
private

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

Referenced by enabledExportSCORM().

◆ $fora_statistics

bool ilPrivacySettings::$fora_statistics
private

Definition at line 42 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().

◆ $rbac_log

bool ilPrivacySettings::$rbac_log
private

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

Referenced by enabledRbacLog().

◆ $rbac_log_age

int ilPrivacySettings::$rbac_log_age
private

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

Referenced by getRbacLogAge().

◆ $ref_id

int ilPrivacySettings::$ref_id
private

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

Referenced by getPrivacySettingsRefId().

◆ $sahs_protocol_data

int ilPrivacySettings::$sahs_protocol_data
private

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

Referenced by enabledCourseAccessTimes().

◆ $show_grp_access_times

bool ilPrivacySettings::$show_grp_access_times
private

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

Referenced by enabledGroupAccessTimes().

◆ $show_lso_access_times

bool ilPrivacySettings::$show_lso_access_times
private

Definition at line 48 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: