ILIAS  Release_4_4_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 _isSummaryMailActive ()
 Static getter.
static _isPersonalWorkspaceActive ()
 Static getter.

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:
class.ilDiskQuotaActivationChecker.php 42282 2013-05-21 09:05:53Z jluetzen

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

References $isActive.

Referenced by _isReminderMailActive(), _isSummaryMailActive(), ilObjFileAccessSettingsGUI\addDiskQuotaSubtabs(), ilInfoScreenGUI\addObjectSections(), ilObjUserGUI\getValues(), ilObjUserGUI\initForm(), ilObjRoleGUI\initFormRoleProperties(), ilObjRoleGUI\readRoleProperties(), ilDAVCronDiskQuota\run(), ilObjUserGUI\saveObject(), ilObjUserGUI\updateObject(), 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::_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.

References $isWspActive.

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

{
if (self::$isWspActive == null)
{
$settings = new ilSetting('disk_quota');
self::$isWspActive = $settings->get('wsp_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 66 of file class.ilDiskQuotaActivationChecker.php.

References $isReminderMailActive, and _isActive().

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

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

References $isSummaryMailActive, and _isActive().

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

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

ilDiskQuotaActivationChecker::$isWspActive
staticprivate

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

Referenced by _isPersonalWorkspaceActive().


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