ILIAS  Release_4_0_x_branch Revision 61816
 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 Private Attributes

static $isActive
static $isReminderMailActive

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 20544 2009-07-13 14:16:27Z wrandels

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

References $isActive.

Referenced by _isReminderMailActive(), ilObjFileAccessSettingsGUI\addDiskQuotaSubtabs(), ilInfoScreenGUI\addObjectSections(), ilObjRoleGUI\editObject2(), ilObjUserGUI\getValues(), ilObjUserGUI\initForm(), ilObjRoleGUI\initFormRoleProperties(), ilObjRoleGUI\readRoleProperties(), ilObjUserGUI\saveObject(), ilCronCheck\start(), 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 64 of file class.ilDiskQuotaActivationChecker.php.

References $isReminderMailActive, and _isActive().

Referenced by ilCronCheck\start().

{
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:

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().


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