5 include_once
"Services/Cron/classes/class.ilCronJob.php";
16 return "rep_disk_quota";
23 $lng->loadLanguageModule(
"file");
24 return $lng->txt(
"repository_disk_quota");
31 $lng->loadLanguageModule(
"file");
32 return $lng->txt(
"repository_disk_quota_info");
62 require_once
'./Services/WebDAV/classes/class.ilDiskQuotaActivationChecker.php';
65 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();
130 $lng->loadLanguageModule(
"file");
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);