public function saveCustomSettings(ilPropertyFormGUI $a_form)
 {
     require_once 'Services/WebDAV/classes/class.ilObjDiskQuotaSettings.php';
     $disk_quota_obj = ilObjDiskQuotaSettings::getInstance();
     $disk_quota_obj->setDiskQuotaReminderMailEnabled($_POST['enable_disk_quota_reminder_mail'] == '1');
     $disk_quota_obj->isDiskQuotaSummaryMailEnabled($_POST['enable_disk_quota_summary_mail'] == '1');
     $disk_quota_obj->setSummaryRecipients(ilUtil::stripSlashes($_POST['disk_quota_summary_rctp']));
     $disk_quota_obj->update();
     return true;
 }
 public function addToExternalSettingsForm($a_form_id)
 {
     switch ($a_form_id) {
         case ilAdministrationSettingsFormHandler::FORM_FILES_QUOTA:
             require_once 'Services/WebDAV/classes/class.ilObjDiskQuotaSettings.php';
             $disk_quota_obj = ilObjDiskQuotaSettings::getInstance();
             $fields = array('personal_workspace_disk_quota' => array($disk_quota_obj->isPersonalWorkspaceDiskQuotaEnabled(), ilAdministrationSettingsFormHandler::VALUE_BOOL));
             return array(array("editWsp", $fields));
     }
 }
 public function activationWasToggled($a_currently_active)
 {
     require_once 'Services/WebDAV/classes/class.ilObjDiskQuotaSettings.php';
     $disk_quota_obj = ilObjDiskQuotaSettings::getInstance();
     $disk_quota_obj->setDiskQuotaEnabled((bool) $a_currently_active);
 }