5include_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");
 
   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");
 
   98                $cb_prop_reminder->setValue(
'1');
 
   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");
 
  105                $cb_prop_summary->setValue(1);
 
  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);
 
An exception for terminatinating execution or to throw for unit testing.
Cron job result data container.
Cron job application base class.
const SCHEDULE_TYPE_DAILY
Soft disk quota notifications.
hasFlexibleSchedule()
Can the schedule be configured?
addToExternalSettingsForm($a_form_id, array &$a_fields, $a_is_active)
Add external settings to form.
getDescription()
Get description.
getDefaultScheduleValue()
Get schedule value.
hasAutoActivation()
Is to be activated on "installation".
saveCustomSettings(ilPropertyFormGUI $a_form)
Save custom settings.
getDefaultScheduleType()
Get schedule type.
addCustomSettingsToForm(ilPropertyFormGUI $a_form)
Add custom settings to form.
activationWasToggled($a_currently_active)
Cron job status was changed.
hasCustomSettings()
Has cron job any custom setting which can be edited?
static _isReminderMailActive()
Static getter.
static _isSummaryMailActive()
Static getter.
static _isActive()
Static getter.
static _updateDiskUsageReport()
Updates the disk usage info of all user accounts.
static _sendSummaryMails()
static _sendReminderMails()
Sends reminder e-mails to all users who have access and who have exceeded their disk quota and who ha...
static getInstance()
Get settings instance.
This class represents a text property in a property form.
static stripSlashes($a_str, $a_strip_html=true, $a_allow="")
strip slashes if magic qoutes is enabled