ILIAS  eassessment Revision 61809
 All Data Structures Namespaces Files Functions Variables Groups Pages
ilDiskQuotaActivationChecker Class Reference

Activation Checker. More...

+ Collaboration diagram for ilDiskQuotaActivationChecker:

Static Public Member Functions

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

Static Private Attributes

static $isActive
static $isReminderMailActive
static $isSummaryMailActive

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:
class.ilDiskQuotaActivationChecker.php 25692 2010-09-15 09:44:16Z mwarkus

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

Member Function Documentation

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 47 of file class.ilDiskQuotaActivationChecker.php.

References $isActive.

Referenced by _isReminderMailActive(), _isSummaryMailActive(), ilObjFileAccessSettingsGUI\addDiskQuotaSubtabs(), ilInfoScreenGUI\addObjectSections(), ilObjRoleGUI\editObject2(), ilObjUserGUI\getValues(), ilObjUserGUI\initForm(), ilObjRoleGUI\initFormRoleProperties(), ilCronCheck\initTasks(), ilObjRoleGUI\readRoleProperties(), ilObjUserGUI\saveObject(), ilObjUserGUI\updateObject(), ilObjRoleGUI\updateObject2(), and ilObjFileAccessSettingsGUI\viewDiskQuotaReport().

{
if (self::$isActive == null)
{
$settings = new ilSetting('disk_quota');
self::$isActive = $settings->get('enabled') == true;
}
}

+ Here is the caller graph for this function:

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 65 of file class.ilDiskQuotaActivationChecker.php.

References $isReminderMailActive, and _isActive().

Referenced by ilCronCheck\initTasks().

{
if (self::$isReminderMailActive == null)
{
$settings = new ilSetting('disk_quota');
self::$isReminderMailActive = self::_isActive() && $settings->get('reminder_mail_enabled') == true;
}
}

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

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 84 of file class.ilDiskQuotaActivationChecker.php.

References $isSummaryMailActive, and _isActive().

Referenced by ilCronCheck\initTasks().

{
if (self::$isSummaryMailActive == null)
{
$settings = new ilSetting('disk_quota');
self::$isSummaryMailActive = self::_isActive() && (int)$settings->get('summary_mail_enabled') == 1;
}
}

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

Field Documentation

ilDiskQuotaActivationChecker::$isActive
staticprivate

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

Referenced by _isActive().

ilDiskQuotaActivationChecker::$isReminderMailActive
staticprivate

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

Referenced by _isReminderMailActive().

ilDiskQuotaActivationChecker::$isSummaryMailActive
staticprivate

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

Referenced by _isSummaryMailActive().


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