5 include_once
"Services/Cron/classes/class.ilCronJob.php";
16 return "rep_disk_quota";
24 $lng->loadLanguageModule(
"file");
25 return $lng->txt(
"repository_disk_quota");
33 $lng->loadLanguageModule(
"file");
34 return $lng->txt(
"repository_disk_quota_info");
39 return self::SCHEDULE_TYPE_DAILY;
64 require_once
'./Services/WebDAV/classes/class.ilDiskQuotaActivationChecker.php';
67 require_once
'./Services/WebDAV/classes/class.ilDiskQuotaChecker.php';
91 $lng->loadLanguageModule(
"file");
93 require_once
'Services/WebDAV/classes/class.ilObjDiskQuotaSettings.php';
97 $cb_prop_reminder =
new ilCheckboxInputGUI(
$lng->txt(
"enable_disk_quota_reminder_mail"),
"enable_disk_quota_reminder_mail");
99 $cb_prop_reminder->setChecked($disk_quota_obj->isDiskQuotaReminderMailEnabled());
100 $cb_prop_reminder->setInfo(
$lng->txt(
'disk_quota_reminder_mail_desc'));
101 $a_form->
addItem($cb_prop_reminder);
104 $cb_prop_summary=
new ilCheckboxInputGUI(
$lng->txt(
"enable_disk_quota_summary_mail"),
"enable_disk_quota_summary_mail");
106 $cb_prop_summary->setChecked($disk_quota_obj->isDiskQuotaSummaryMailEnabled());
107 $cb_prop_summary->setInfo(
$lng->txt(
'enable_disk_quota_summary_mail_desc'));
108 $a_form->
addItem($cb_prop_summary);
111 $summary_rcpt =
new ilTextInputGUI(
$lng->txt(
"disk_quota_summary_rctp"),
"disk_quota_summary_rctp");
112 $summary_rcpt->
setValue($disk_quota_obj->getSummaryRecipients());
113 $summary_rcpt->setInfo(
$lng->txt(
'disk_quota_summary_rctp_desc'));
114 $cb_prop_summary->addSubItem($summary_rcpt);
119 require_once
'Services/WebDAV/classes/class.ilObjDiskQuotaSettings.php';
121 $disk_quota_obj->setDiskQuotaReminderMailEnabled(
$_POST[
'enable_disk_quota_reminder_mail'] ==
'1');
122 $disk_quota_obj->isDiskQuotaSummaryMailEnabled(
$_POST[
'enable_disk_quota_summary_mail'] ==
'1');
124 $disk_quota_obj->update();
134 $lng->loadLanguageModule(
"file");
141 require_once(
'Services/WebDAV/classes/class.ilDiskQuotaActivationChecker.php');
144 "enable_disk_quota_reminder_mail" =>
array(
148 "enable_disk_quota_summary_mail" =>
array(
153 $a_fields[
"repository_disk_quota"] =
array($a_is_active ?
154 $lng->txt(
"enabled") :
155 $lng->txt(
"disabled"),
165 $settings->set(
'enabled', $a_currently_active);
activationWasToggled($a_currently_active)
static _sendSummaryMails()
getDefaultScheduleValue()
static _sendReminderMails()
Sends reminder e-mails to all users who have access and who have exceeded their disk quota and who ha...
static _isReminderMailActive()
Static getter.
addToExternalSettingsForm($a_form_id, array &$a_fields, $a_is_active)
static _isSummaryMailActive()
Static getter.
static _isActive()
Static getter.
Cron job application base class.
Soft disk quota notifications.
static _updateDiskUsageReport()
Updates the disk usage info of all user accounts.
This class represents a text property in a property form.
saveCustomSettings(ilPropertyFormGUI $a_form)
static stripSlashes($a_str, $a_strip_html=true, $a_allow="")
strip slashes if magic qoutes is enabled
Create styles array
The data for the language used.
Cron job result data container.
addCustomSettingsToForm(ilPropertyFormGUI $a_form)
setValue($a_value)
Set Value.
static getInstance()
Get settings instance.