ILIAS  release_5-1 Revision 5.0.0-5477-g43f3e3fab5
ilDiskQuotaActivationChecker Class Reference

Activation Checker. More...

+ Collaboration diagram for ilDiskQuotaActivationChecker:

Static Public Member Functions

static _isActive ()
 Static getter. More...
 
static _isReminderMailActive ()
 Static getter. More...
 
static _isSummaryMailActive ()
 Static getter. More...
 
static _isPersonalWorkspaceActive ()
 Static getter. More...
 

Static Private Attributes

static $isActive
 
static $isReminderMailActive
 
static $isSummaryMailActive
 
static $isWspActive
 

Detailed Description

Activation Checker.

Keep this class small, since it is included, even if DiskQuota is deactivated.

Author
Werner Randelshofer, Hochschule Luzern, werne.nosp@m.r.ra.nosp@m.ndels.nosp@m.hofe.nosp@m.r@hsl.nosp@m.u.ch
Version
$Id$

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

Member Function Documentation

◆ _isActive()

static ilDiskQuotaActivationChecker::_isActive ( )
static

Static getter.

Returns true, if disk quota is active.

Disk quota is active if the variable "enabled" is set in ilSetting('disk_quota')

Returns
boolean value

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

Referenced by ilObjFileAccessSettingsGUI\addDiskQuotaSubtabs(), ilInfoScreenGUI\addObjectSections(), ilObjUserGUI\getValues(), ilObjUserGUI\initForm(), ilObjRoleGUI\initFormRoleProperties(), ilObjRoleGUI\readRoleProperties(), ilDAVCronDiskQuota\run(), ilObjUserGUI\saveObject(), ilObjUserGUI\updateObject(), and ilObjFileAccessSettingsGUI\viewDiskQuotaReport().

49  {
50  if (self::$isActive == null)
51  {
52  $settings = new ilSetting('disk_quota');
53  self::$isActive = $settings->get('enabled') == true;
54  }
55 
56  return self::$isActive;
57  }
ILIAS Setting Class.
+ Here is the caller graph for this function:

◆ _isPersonalWorkspaceActive()

static ilDiskQuotaActivationChecker::_isPersonalWorkspaceActive ( )
static

Static getter.

Returns true, if personal workspace disk quota is active.

Disk quota is active if the variable "wsp_enabled" is set in ilSetting('disk_quota')

Returns
boolean value

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

Referenced by ilDiskQuotaHandler\getStatusLegend(), ilObjUserGUI\getValues(), ilObjPortfolioGUI\initCreatePortfolioFromTemplateForm(), ilObjUserGUI\initForm(), ilObjRoleGUI\initFormRoleProperties(), ilDiskQuotaHandler\isUploadPossible(), ilObjRoleGUI\readRoleProperties(), ilFileInputGUI\setPersonalWorkspaceQuotaCheck(), and ilObjUserGUI\updateObject().

105  {
106  if (self::$isWspActive == null)
107  {
108  $settings = new ilSetting('disk_quota');
109  self::$isWspActive = $settings->get('wsp_enabled') == true;
110  }
111 
112  return self::$isWspActive;
113  }
ILIAS Setting Class.
+ Here is the caller graph for this function:

◆ _isReminderMailActive()

static ilDiskQuotaActivationChecker::_isReminderMailActive ( )
static

Static getter.

Returns true, if disk quota reminder mails is active.

Reminder mails is is active if the variable "reminder_enabled" is set in ilSetting('disk_quota')

Returns
boolean value

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

Referenced by ilDAVCronDiskQuota\addToExternalSettingsForm(), and ilDAVCronDiskQuota\run().

67  {
68  if (self::$isReminderMailActive == null)
69  {
70  $settings = new ilSetting('disk_quota');
71  self::$isReminderMailActive = self::_isActive() && $settings->get('reminder_mail_enabled') == true;
72  }
73 
74  return self::$isReminderMailActive;
75  }
ILIAS Setting Class.
+ Here is the caller graph for this function:

◆ _isSummaryMailActive()

static ilDiskQuotaActivationChecker::_isSummaryMailActive ( )
static

Static getter.

Returns true, if disk quota summary mails are active.

Summary mails are active if the variable "summary_mail_enabled" is set in ilSetting('disk_quota')

Returns
boolean value

Definition at line 85 of file class.ilDiskQuotaActivationChecker.php.

Referenced by ilDAVCronDiskQuota\addToExternalSettingsForm(), and ilDAVCronDiskQuota\run().

86  {
87  if (self::$isSummaryMailActive == null)
88  {
89  $settings = new ilSetting('disk_quota');
90  self::$isSummaryMailActive = self::_isActive() && (int)$settings->get('summary_mail_enabled') == 1;
91  }
92 
93  return self::$isSummaryMailActive;
94  }
ILIAS Setting Class.
+ Here is the caller graph for this function:

Field Documentation

◆ $isActive

ilDiskQuotaActivationChecker::$isActive
staticprivate

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

◆ $isReminderMailActive

ilDiskQuotaActivationChecker::$isReminderMailActive
staticprivate

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

◆ $isSummaryMailActive

ilDiskQuotaActivationChecker::$isSummaryMailActive
staticprivate

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

◆ $isWspActive

ilDiskQuotaActivationChecker::$isWspActive
staticprivate

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


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