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';
66 require_once
'./Services/WebDAV/classes/class.ilDiskQuotaChecker.php';
88 $lng->loadLanguageModule(
"file");
90 require_once
'Services/WebDAV/classes/class.ilObjDiskQuotaSettings.php';
94 $cb_prop_reminder =
new ilCheckboxInputGUI(
$lng->txt(
"enable_disk_quota_reminder_mail"),
"enable_disk_quota_reminder_mail");
96 $cb_prop_reminder->setChecked($disk_quota_obj->isDiskQuotaReminderMailEnabled());
97 $cb_prop_reminder->setInfo(
$lng->txt(
'disk_quota_reminder_mail_desc'));
98 $a_form->
addItem($cb_prop_reminder);
101 $cb_prop_summary =
new ilCheckboxInputGUI(
$lng->txt(
"enable_disk_quota_summary_mail"),
"enable_disk_quota_summary_mail");
103 $cb_prop_summary->setChecked($disk_quota_obj->isDiskQuotaSummaryMailEnabled());
104 $cb_prop_summary->setInfo(
$lng->txt(
'enable_disk_quota_summary_mail_desc'));
105 $a_form->
addItem($cb_prop_summary);
108 $summary_rcpt =
new ilTextInputGUI(
$lng->txt(
"disk_quota_summary_rctp"),
"disk_quota_summary_rctp");
109 $summary_rcpt->
setValue($disk_quota_obj->getSummaryRecipients());
110 $summary_rcpt->setInfo(
$lng->txt(
'disk_quota_summary_rctp_desc'));
111 $cb_prop_summary->addSubItem($summary_rcpt);
116 require_once
'Services/WebDAV/classes/class.ilObjDiskQuotaSettings.php';
118 $disk_quota_obj->setDiskQuotaReminderMailEnabled(
$_POST[
'enable_disk_quota_reminder_mail'] ==
'1');
119 $disk_quota_obj->isDiskQuotaSummaryMailEnabled(
$_POST[
'enable_disk_quota_summary_mail'] ==
'1');
121 $disk_quota_obj->update();
131 $lng->loadLanguageModule(
"file");
133 switch ($a_form_id) {
137 require_once(
'Services/WebDAV/classes/class.ilDiskQuotaActivationChecker.php');
140 "enable_disk_quota_reminder_mail" => array(
144 "enable_disk_quota_summary_mail" => array(
149 $a_fields[
"repository_disk_quota"] = array($a_is_active ?
150 $lng->txt(
"enabled") :
151 $lng->txt(
"disabled"),
161 $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
Cron job result data container.
addCustomSettingsToForm(ilPropertyFormGUI $a_form)
setValue($a_value)
Set Value.
static getInstance()
Get settings instance.