60 public function __construct($a_data, $a_id, $a_call_by_reference)
64 $this->folderSettings =
new ilSetting(
'fold');
68 $this->disk_quota_obj->read();
81 $ilAccess =
$DIC[
'ilAccess'];
82 $ilias =
$DIC[
'ilias'];
85 $lng->loadLanguageModule(
"file");
87 $next_class = $this->ctrl->getNextClass($this);
88 $cmd = $this->ctrl->getCmd();
92 if (!$ilAccess->checkAccess(
'read',
'', $this->object->getRefId())) {
93 $ilias->raiseError(
$lng->txt(
'no_permission'), $ilias->error_obj->MESSAGE);
96 switch ($next_class) {
97 case 'ilpermissiongui':
98 $this->tabs_gui->setTabActive(
'perm_settings');
100 $ret = &$this->ctrl->forwardCommand($perm_gui);
103 case 'ilfmsettingsgui':
104 $this->tabs_gui->setTabActive(
'fm_settings_tab');
106 $this->ctrl->forwardCommand($fmg);
109 case 'ilwebdavmountinstructionsuploadgui':
116 $DIC->rbac()->system(),
118 $DIC->logger()->root(),
121 $DIC->ui()->factory(),
122 $DIC->ui()->renderer(),
127 $this->tabs_gui->setTabActive(
'webdav');
129 $this->tabs_gui->setSubTabActive(
'webdav_upload_instructions');
130 $this->ctrl->forwardCommand($document_gui);
134 if (!$cmd || $cmd ==
'view') {
157 $GLOBALS[
'DIC'][
'lng']->loadLanguageModule(
'fm');
159 if (
$rbacsystem->checkAccess(
"visible,read", $this->object->getRefId())) {
160 $this->tabs_gui->addTarget(
161 'downloading_settings',
162 $this->ctrl->getLinkTarget($this, self::CMD_EDIT_DOWNLOADING_SETTINGS),
163 array(self::CMD_EDIT_DOWNLOADING_SETTINGS,
"view")
166 $this->tabs_gui->addTarget(
168 $this->ctrl->getLinkTarget($this,
"editUploadSettings"),
169 array(
"editUploadSettings",
"view")
172 $this->tabs_gui->addTarget(
174 $this->ctrl->getLinkTarget($this,
"editPreviewSettings"),
175 array(
"editPreviewSettings",
"view")
178 $this->tabs_gui->addTarget(
'webdav', $this->ctrl->getLinkTarget($this,
"editWebDAVSettings"), array(
"editWebDAVSettings",
"view"));
180 $this->tabs_gui->addTarget(
182 $this->ctrl->getLinkTargetByClass(
'ilFMSettingsGUI',
'settings'),
187 $this->tabs_gui->addTarget(
"disk_quota", $this->ctrl->getLinkTarget($this,
"editDiskQuotaSettings"), array(
"editDiskQuota",
"view"));
189 if (
$rbacsystem->checkAccess(
'edit_permission', $this->object->getRefId())) {
190 $this->tabs_gui->addTarget(
"perm_settings", $this->ctrl->getLinkTargetByClass(
'ilpermissiongui',
"perm"), array(),
'ilpermissiongui');
204 require_once(
"./Services/Form/classes/class.ilPropertyFormGUI.php");
205 require_once(
"./Services/Form/classes/class.ilCheckboxInputGUI.php");
206 require_once(
"./Services/Form/classes/class.ilRadioGroupInputGUI.php");
207 require_once(
"./Services/Form/classes/class.ilRadioOption.php");
208 require_once(
"./Services/Form/classes/class.ilTextAreaInputGUI.php");
211 $form->setFormAction(
$ilCtrl->getFormAction($this));
212 $form->setTitle(
$lng->txt(
"settings"));
217 $dl_prop =
new ilCheckboxInputGUI(
$lng->txt(
"download_with_uploaded_filename"),
"download_with_uploaded_filename");
218 $dl_prop->setValue(
'1');
220 $dl_prop->setChecked($this->object->isDownloadWithUploadedFilename() == 1);
221 $dl_prop->setInfo(
$lng->txt(
'download_with_uploaded_filename_info'));
222 $form->addItem($dl_prop);
226 $dl_prop->setValue(
'1');
228 $dl_prop->setChecked($this->folderSettings->get(
"enable_download_folder", 0) == 1);
229 $dl_prop->setInfo(
$lng->txt(
'enable_download_folder_info'));
230 $form->addItem($dl_prop);
234 $dl_prop->setValue(
'1');
236 $dl_prop->setChecked($this->folderSettings->get(
"enable_multi_download", 0) == 1);
237 $dl_prop->setInfo(
$lng->txt(
'enable_multi_download_info'));
238 $form->addItem($dl_prop);
241 $lng->loadLanguageModule(
"bgtask");
243 $dl_prop->setInfo(
$lng->txt(
"bgtask_setting_limit_info"));
244 $dl_prop->setRequired(
true);
245 $dl_prop->setSize(10);
246 $dl_prop->setMinValue(1);
247 $dl_prop->setSuffix(
$lng->txt(
"lang_size_mb"));
248 $dl_prop->setValue($this->folderSettings->get(
"bgtask_download_limit",
null));
249 $form->addItem($dl_prop);
253 $tai_prop->setValue($this->object->getInlineFileExtensions());
254 $tai_prop->setInfo(
$lng->txt(
'inline_file_extensions_info'));
255 $tai_prop->setCols(80);
256 $tai_prop->setRows(5);
257 $form->addItem($tai_prop);
260 $form->addCommandButton(
'saveDownloadingSettings',
$lng->txt(
'save'));
261 $form->addCommandButton(
'view',
$lng->txt(
'cancel'));
276 $this->tabs_gui->setTabActive(
'downloading_settings');
278 if (!
$DIC->rbac()->system()->checkAccess(
"visible,read", $this->object->getRefId())) {
279 $ilErr->raiseError(
$DIC->language()->txt(
"no_permission"),
$ilErr->WARNING);
286 $DIC->ui()->mainTemplate()->setContent($a_form->getHTML());
294 $report =
$DIC->backgroundTasks()->taskFactory()->createTask(SanitationReportJob::class);
295 $ui =
$DIC->backgroundTasks()->taskFactory()->createTask(DownloadSanitationReportUserInteraction::class, [$report]);
298 $bucket->setUserId(
$DIC->user()->getId());
299 $bucket->setTask($ui);
300 $bucket->setTitle(
"File Sanitiation Report");
301 $bucket->setDescription(
"");
303 $DIC->backgroundTasks()->taskManager()->run($bucket);
304 $this->ctrl->redirect($this, self::CMD_EDIT_DOWNLOADING_SETTINGS);
316 if (!
$rbacsystem->checkAccess(
"write", $this->object->getRefId())) {
318 $DIC->ctrl()->redirect($this, self::CMD_EDIT_DOWNLOADING_SETTINGS);
322 if ($form->checkInput()) {
325 $this->
object->update();
327 $this->folderSettings->set(
"enable_download_folder",
$_POST[
"enable_download_folder"] == 1);
328 $this->folderSettings->set(
"enable_multi_download",
$_POST[
"enable_multi_download"] == 1);
330 $this->folderSettings->set(
"bgtask_download_limit", (
int)
$_POST[
"bg_limit"]);
331 ilUtil::sendSuccess(
$DIC->language()->txt(
'settings_saved'),
true);
332 $DIC->ctrl()->redirect($this, self::CMD_EDIT_DOWNLOADING_SETTINGS);
335 $form->setValuesByPost();
347 $form->setFormAction(
$DIC->ctrl()->getFormAction($this));
348 $form->setTitle(
$lng->txt(
"settings"));
352 $cb_prop->setValue(
'1');
353 $cb_prop->setChecked($this->object->isWebdavEnabled());
354 $form->addItem($cb_prop);
358 $cb_prop->setValue(
'1');
359 $cb_prop->setInfo(
$lng->txt(
"webdav_versioning_info"));
360 $cb_prop->setChecked($this->object->isWebdavVersioningEnabled());
361 $form->addItem($cb_prop);
364 $form->addCommandButton(
'saveWebDAVSettings',
$lng->txt(
'save'));
365 $form->addCommandButton(
'view',
$lng->txt(
'cancel'));
372 $this->tabs_gui->addSubTabTarget(
373 "webdav_general_settings",
374 $this->ctrl->getLinkTarget($this, self::CMD_EDIT_WEBDAV_SETTINGS),
375 array(self::CMD_EDIT_WEBDAV_SETTINGS,
"view")
377 $this->tabs_gui->addSubTabTarget(
378 "webdav_upload_instructions",
379 $this->ctrl->getLinkTargetByClass(
'ilWebDAVMountInstructionsUploadGUI'),
396 $this->tabs_gui->setTabActive(
'webdav');
399 if (!
$rbacsystem->checkAccess(
"visible,read", $this->object->getRefId())) {
405 $tpl->setContent($form->getHTML());
420 if (!
$rbacsystem->checkAccess(
"write", $this->object->getRefId())) {
422 $DIC->ctrl()->redirect($this, self::CMD_EDIT_WEBDAV_SETTINGS);
426 if ($form->checkInput()) {
427 $this->
object->setWebdavEnabled(
$_POST[
'enable_webdav'] ==
'1');
428 $this->
object->setWebdavVersioningEnabled(
$_POST[
'enable_versioning_webdav'] ==
'1');
429 $this->
object->update();
430 ilUtil::sendSuccess(
$lng->txt(
'settings_saved'),
true);
431 $ilCtrl->redirect($this, self::CMD_EDIT_WEBDAV_SETTINGS);
433 $form->setValuesByPost();
434 $this->tpl->setContent($form->getHTML());
444 parent::setTitleAndDescription();
445 $this->tpl->setDescription($this->object->getDescription());
459 $ilTabs =
$DIC[
'ilTabs'];
461 $ilTabs->addSubTabTarget(
"settings",
$ilCtrl->getLinkTarget($this,
"editDiskQuotaSettings"), array(
"editDiskQuotaSettings"));
464 $ilTabs->addSubTabTarget(
"disk_quota_report",
$ilCtrl->getLinkTarget($this,
"viewDiskQuotaReport"), array(
"viewDiskQuotaReport"));
467 $ilTabs->addSubTabTarget(
468 "disk_quota_reminder_mail",
469 $ilCtrl->getLinkTarget($this,
"editDiskQuotaMailTemplate"),
470 array(
"editDiskQuotaMailTemplate")
473 $ilTabs->setSubTabActive($a_active_subtab);
490 if (!
$rbacsystem->checkAccess(
"visible,read", $this->object->getRefId())) {
494 $this->tabs_gui->setTabActive(
'disk_quota');
497 $lng->loadLanguageModule(
"file");
500 $form->setFormAction(
$ilCtrl->getFormAction($this));
501 $form->setTitle(
$lng->txt(
"settings"));
506 $tpl->setContent($form->getHTML());
521 if (!
$rbacsystem->checkAccess(
"write", $this->object->getRefId())) {
526 $ilCtrl->redirect($this,
"editDiskQuotaSettings");
542 if (!
$rbacsystem->checkAccess(
"visible,read", $this->object->getRefId())) {
546 $this->tabs_gui->setTabActive(
'disk_quota');
555 $this->tpl->addBlockfile(
'ADM_CONTENT',
'adm_content',
'tpl.disk_quota_report.html',
"Services/DiskQuota");
559 if ($last_update ==
null) {
561 $this->tpl->setVariable(
'LAST_UPDATE_TEXT',
$lng->txt(
'disk_quota_report_not_run_yet'));
565 $this->tpl->setVariable(
573 if (
$_SESSION[
'quota_usage_filter'] == 0) {
577 if (
$_SESSION[
'quota_access_filter'] == 0) {
580 $usage_action[1] =
$lng->txt(
'all_users');
581 $usage_action[2] =
$lng->txt(
'filter_users_without_disk_usage');
582 $usage_action[3] =
$lng->txt(
'filter_users_with_disk_usage');
583 $usage_action[4] =
$lng->txt(
'filter_users_with_exceeded_disk_quota');
584 $access_action[1] =
$lng->txt(
'all_users');
585 $access_action[2] =
$lng->txt(
'filter_users_with_access');
586 $access_action[3] =
$lng->txt(
'filter_users_without_access');
591 $this->tpl->setCurrentBlock(
"filter_section");
592 $this->tpl->setVariable(
"FILTER_TXT_FILTER",
$lng->txt(
'filter'));
593 $this->tpl->setVariable(
"SELECT_USAGE_FILTER", $select_usage_filter);
594 $this->tpl->setVariable(
"SELECT_ACCESS_FILTER", $select_access_filter);
595 $this->tpl->setVariable(
"FILTER_ACTION", $this->ctrl->getLinkTarget($this,
'viewDiskQuotaReport'));
596 $this->tpl->setVariable(
"FILTER_NAME",
'view');
597 $this->tpl->setVariable(
"FILTER_VALUE",
$lng->txt(
'apply_filter'));
598 $this->tpl->parseCurrentBlock();
601 $a_tpl =
new ilTemplate(
'tpl.table.html',
true,
true);
602 $a_tpl->addBlockfile(
"TBL_CONTENT",
"tbl_content",
"tpl.obj_tbl_rows.html");
605 require_once
'./Services/Table/classes/class.ilTableGUI.php';
610 $header_vars = array(
'login',
'firstname',
'lastname',
'email',
'access_until',
'last_login',
'disk_quota',
'disk_usage',
'last_reminder');
611 $tbl->setHeaderNames(array(
613 $lng->txt(
'firstname'),
614 $lng->txt(
'lastname'),
616 $lng->txt(
'access_until'),
617 $lng->txt(
'last_login'),
618 $lng->txt(
'disk_quota'),
619 $lng->txt(
'disk_usage'),
620 $lng->txt(
'last_reminder'),
622 $tbl->setHeaderVars($header_vars, $this->ctrl->getParameterArray($this,
'viewDiskQuotaReport',
false));
624 $tbl->enable(
"numinfo_header");
625 $tbl->setFormName(
"cmd");
626 $tbl->setSelectAllCheckbox(
"id");
629 $tbl->setOrderColumn(
$_GET[
"sort_by"]);
630 $tbl->setOrderDirection(
$_GET[
"sort_order"]);
636 $header_vars[$tbl->getOrderColumn()],
637 $tbl->getOrderDirection()
641 $tbl->setLimit(
$_GET[
"limit"]);
642 $tbl->setOffset(
$_GET[
"offset"]);
643 $tbl->setMaxCount(count(
$data));
646 $tbl->setFooter(
"tblfooter",
$lng->txt(
"previous"),
$lng->txt(
"next"));
649 $tbl->setTemplate($a_tpl);
653 for (
$i = $tbl->getOffset();
$i < count(
$data) && $i < $tbl->getOffset() + $tbl->getLimit();
$i++) {
657 foreach ($header_vars as $key) {
661 $this->ctrl->setParameterByClass(
"ilobjusergui",
"ref_id",
"7");
662 $this->ctrl->setParameterByClass(
"ilobjusergui",
"obj_id", $row[
"usr_id"]);
663 $link = $this->ctrl->getLinkTargetByClass(
"ilobjusergui",
"view");
664 $tbl_content_cell =
'<a href="' . $link .
'">' . htmlspecialchars($row[$key]) .
'</a>';
667 if ($row[
'role_id'] == SYSTEM_ROLE_ID) {
668 $tbl_content_cell =
"<span class=\"smallgreen\">" .
$lng->txt(
'access_unlimited') .
'</span>';
674 if ($row[
'last_update'] ==
null) {
675 $tbl_content_cell =
$lng->txt(
'unknown');
677 if ($row[
'disk_usage'] > $row[
'disk_quota']) {
678 $tbl_content_cell =
"<span class=\"smallred\">" .
ilUtil::formatSize($row[$key],
'short') .
'</span>';
685 if (!$row[
'active']) {
686 $tbl_content_cell =
"<span class=\"smallred\">" .
$lng->txt(
'inactive') .
'</span>';
688 if ($row[
'time_limit_unlimited']) {
689 $tbl_content_cell =
"<span class=\"smallgreen\">" .
$lng->txt(
'access_unlimited') .
'</span>';
691 if ($row[
'expired']) {
692 $tbl_content_cell =
"<span class=\"smallred\">" .
$lng->txt(
'access_expired') .
'</span>';
700 case 'last_reminder':
701 if ($row[$key] ==
null) {
702 $tbl_content_cell =
$lng->txt(
'no_date');
708 $tbl_content_cell = htmlspecialchars($row[$key]);
711 $tbl->getTemplateObject()->setCurrentBlock(
"tbl_content_cell");
712 $tbl->getTemplateObject()->setVariable(
"TBL_CONTENT_CELL", $tbl_content_cell);
714 $tbl->getTemplateObject()->parseCurrentBlock();
717 $tbl->getTemplateObject()->setCurrentBlock(
"tbl_content_row");
719 $tbl->getTemplateObject()->setVariable(
"ROWCOLOR", $rowcolor);
720 $tbl->getTemplateObject()->parseCurrentBlock();
727 $this->tpl->setVariable(
"USER_TABLE", $a_tpl->get());
736 $lng->loadLanguageModule(
"meta");
737 $lng->loadLanguageModule(
"mail");
740 $form->setFormAction($this->ctrl->getFormAction($this));
742 $form->setTitle(
$lng->txt(
"disk_quota_reminder_mail"));
743 $form->setDescription(
$lng->txt(
"disk_quota_reminder_mail_desc"));
745 foreach (
$lng->getInstalledLanguages() as $lang_key) {
746 $lang_def = ($lang_key ==
$lng->getDefaultLanguage()) ?
" (" .
$lng->txt(
"default") .
")" :
"";
749 $sec->setTitle(
$lng->txt(
"meta_l_" . $lang_key) . $lang_def);
750 $form->addItem($sec);
753 $subj->setRequired(
true);
754 $form->addItem($subj);
756 $sal_g =
new ilTextInputGUI(
$lng->txt(
"mail_salutation_general"),
"sal_g_" . $lang_key);
757 $sal_g->setRequired(
true);
758 $form->addItem($sal_g);
760 $sal_f =
new ilTextInputGUI(
$lng->txt(
"mail_salutation_female"),
"sal_f_" . $lang_key);
761 $sal_f->setRequired(
true);
762 $form->addItem($sal_f);
765 $sal_m->setRequired(
true);
766 $form->addItem($sal_m);
769 $body->setRequired(
true);
771 $form->addItem($body);
775 $subj->setValue($amail[
"subject"]);
776 $sal_g->setValue($amail[
"sal_g"]);
777 $sal_f->setValue($amail[
"sal_f"]);
778 $sal_m->setValue($amail[
"sal_m"]);
779 $body->setValue($amail[
"body"]);
782 $form->addCommandButton(
"saveDiskQuotaMailTemplate",
$lng->txt(
"save"));
783 $form->addCommandButton(
"editDiskQuotaSettings",
$lng->txt(
"cancel"));
799 if (!
$rbacsystem->checkAccess(
"visible,read", $this->object->getRefId())) {
803 $this->tabs_gui->setTabActive(
"disk_quota");
810 $tpl =
new ilTemplate(
"tpl.disk_quota_reminder_mail.html",
true,
true,
"Services/DiskQuota");
811 $tpl->setVariable(
"TXT_USE_PLACEHOLDERS",
$lng->txt(
"mail_nacc_use_placeholder"));
812 $tpl->setVariable(
"TXT_MAIL_SALUTATION",
$lng->txt(
"mail_nacc_salutation"));
813 $tpl->setVariable(
"TXT_FIRST_NAME",
$lng->txt(
"firstname"));
814 $tpl->setVariable(
"TXT_LAST_NAME",
$lng->txt(
"lastname"));
815 $tpl->setVariable(
"TXT_EMAIL",
$lng->txt(
"email"));
816 $tpl->setVariable(
"TXT_LOGIN",
$lng->txt(
"mail_nacc_login"));
817 $tpl->setVariable(
"TXT_DISK_QUOTA",
$lng->txt(
"disk_quota"));
818 $tpl->setVariable(
"TXT_DISK_USAGE",
$lng->txt(
"disk_usage"));
819 $tpl->setVariable(
"TXT_DISK_USAGE_DETAILS",
$lng->txt(
"disk_usage_details"));
820 $tpl->setVariable(
"TXT_ADMIN_MAIL",
$lng->txt(
"mail_nacc_admin_mail"));
821 $tpl->setVariable(
"TXT_ILIAS_URL",
$lng->txt(
"mail_nacc_ilias_url"));
822 $tpl->setVariable(
"TXT_CLIENT_NAME",
$lng->txt(
"mail_nacc_client_name"));
826 $legend->setHeading(
$lng->txt(
"mail_nacc_use_placeholder"));
827 $legend->setBody(
$tpl->get());
829 $this->tpl->setContent($a_form->getHTML() . $legend->getHTML());
839 if ($form->checkInput()) {
840 foreach (
$lng->getInstalledLanguages() as $lang_key) {
841 $this->disk_quota_obj->_writeReminderMailTemplate(
843 $form->getInput(
"subject_" . $lang_key),
844 $form->getInput(
"sal_g_" . $lang_key),
845 $form->getInput(
"sal_f_" . $lang_key),
846 $form->getInput(
"sal_m_" . $lang_key),
847 $form->getInput(
"body_" . $lang_key)
851 ilUtil::sendSuccess($this->lng->txt(
"msg_obj_modified"),
true);
852 $this->ctrl->redirect($this,
"editDiskQuotaMailTemplate");
855 $form->setValuesByPost();
869 require_once(
"./Services/Form/classes/class.ilPropertyFormGUI.php");
871 $form->setFormAction(
$ilCtrl->getFormAction($this));
872 $form->setTitle(
$lng->txt(
"settings"));
874 require_once(
"Services/FileUpload/classes/class.ilFileUploadSettings.php");
878 $chk_enabled->setValue(
'1');
880 $chk_enabled->setInfo(
$lng->txt(
'enable_dnd_upload_info'));
881 $form->addItem($chk_enabled);
884 $chk_repo =
new ilCheckboxInputGUI(
$lng->txt(
"enable_repository_dnd_upload"),
"enable_repository_dnd_upload");
885 $chk_repo->setValue(
'1');
887 $chk_repo->setInfo(
$lng->txt(
'enable_repository_dnd_upload_info'));
888 $chk_enabled->addSubItem($chk_repo);
892 $num_prop->setDecimals(0);
893 $num_prop->setMinValue(1);
894 $num_prop->setMinvalueShouldBeGreater(
false);
896 $num_prop->setMaxvalueShouldBeLess(
false);
897 $num_prop->setMaxLength(5);
898 $num_prop->setSize(10);
900 $num_prop->setInfo(
$lng->txt(
'concurrent_uploads_info'));
901 $chk_enabled->addSubItem($num_prop);
906 $ne->setInfo($this->lng->txt(
"file_suffix_default_white_info"));
910 $ta =
new ilTextAreaInputGUI($this->lng->txt(
"file_suffix_custom_black"),
"suffix_repl_additional");
911 $ta->setInfo($this->lng->txt(
"file_suffix_custom_black_info"));
916 $ta =
new ilTextAreaInputGUI($this->lng->txt(
"file_suffix_custom_white"),
"suffix_custom_white_list");
917 $ta->setInfo($this->lng->txt(
"file_suffix_custom_white_info"));
924 $ne->setInfo($this->lng->txt(
"file_suffix_overall_white_info"));
928 $ta =
new ilTextAreaInputGUI($this->lng->txt(
"file_suffix_custom_expl_black"),
"suffix_custom_expl_black");
929 $ta->setInfo($this->lng->txt(
"file_suffix_custom_expl_black_info"));
934 $form->addCommandButton(
'saveUploadSettings',
$lng->txt(
'save'));
935 $form->addCommandButton(
'view',
$lng->txt(
'cancel'));
953 $this->tabs_gui->setTabActive(
'upload_settings');
955 if (!
$rbacsystem->checkAccess(
"visible,read", $this->object->getRefId())) {
962 require_once(
"Services/FileUpload/classes/class.ilFileUploadSettings.php");
969 $val[
"suffix_repl_additional"] =
$ilSetting->get(
"suffix_repl_additional");
970 $val[
"suffix_custom_white_list"] =
$ilSetting->get(
"suffix_custom_white_list");
971 $val[
"suffix_custom_expl_black"] =
$ilSetting->get(
"suffix_custom_expl_black");
972 $form->setValuesByArray($val);
975 $tpl->setContent($form->getHTML());
992 if (!
$rbacsystem->checkAccess(
"write", $this->object->getRefId())) {
998 if ($form->checkInput()) {
999 require_once(
"Services/FileUpload/classes/class.ilFileUploadSettings.php");
1005 $ilSetting->set(
"suffix_repl_additional",
$_POST[
"suffix_repl_additional"]);
1006 $ilSetting->set(
"suffix_custom_white_list",
$_POST[
"suffix_custom_white_list"]);
1007 $ilSetting->set(
"suffix_custom_expl_black",
$_POST[
"suffix_custom_expl_black"]);
1009 ilUtil::sendSuccess(
$lng->txt(
'settings_saved'),
true);
1010 $ilCtrl->redirect($this,
"editUploadSettings");
1012 $form->setValuesByPost();
1013 $tpl->setContent($form->getHTML());
1027 require_once(
"./Services/Form/classes/class.ilPropertyFormGUI.php");
1029 $form->setFormAction(
$ilCtrl->getFormAction($this));
1030 $form->setTitle(
$lng->txt(
"settings"));
1032 require_once(
"Services/Preview/classes/class.ilPreviewSettings.php");
1036 $chk_prop->setValue(
'1');
1038 $chk_prop->setInfo(
$lng->txt(
'enable_preview_info'));
1039 $form->addItem($chk_prop);
1041 $num_prop =
new ilNumberInputGUI(
$lng->txt(
"max_previews_per_object"),
"max_previews_per_object");
1042 $num_prop->setDecimals(0);
1043 $num_prop->setMinValue(1);
1044 $num_prop->setMinvalueShouldBeGreater(
false);
1046 $num_prop->setMaxvalueShouldBeLess(
false);
1047 $num_prop->setMaxLength(5);
1048 $num_prop->setSize(10);
1050 $num_prop->setInfo(
$lng->txt(
'max_previews_per_object_info'));
1051 $form->addItem($num_prop);
1054 $form->addCommandButton(
'savePreviewSettings',
$lng->txt(
'save'));
1055 $form->addCommandButton(
'view',
$lng->txt(
'cancel'));
1072 $this->tabs_gui->setTabActive(
'preview_settings');
1074 if (!
$rbacsystem->checkAccess(
"visible,read", $this->object->getRefId())) {
1087 require_once(
"Services/Preview/classes/class.ilPreviewSettings.php");
1092 $form->setValuesByArray($val);
1094 $html = $form->getHTML();
1097 require_once(
"Services/Preview/classes/class.ilRendererFactory.php");
1098 require_once(
"Services/Preview/classes/class.ilRendererTableGUI.php");
1103 $table->setMaxCount(
sizeof($renderers));
1104 $table->setData($renderers);
1106 $html .=
"<br/>" . $table->getHTML();
1109 $tpl->setContent($html);
1125 $this->tabs_gui->setTabActive(
'preview_settings');
1127 if (!
$rbacsystem->checkAccess(
"write", $this->object->getRefId())) {
1133 if ($form->checkInput()) {
1134 require_once(
"Services/Preview/classes/class.ilPreviewSettings.php");
1138 ilUtil::sendSuccess(
$lng->txt(
'settings_saved'),
true);
1139 $ilCtrl->redirect($this,
"editPreviewSettings");
1141 $form->setValuesByPost();
1142 $tpl->setContent($form->getHTML());
1152 switch ($a_form_id) {
1155 $fields = array(
'file_suffix_repl' =>
$ilSetting->get(
"suffix_repl_additional"));
1157 return array(array(
"editUploadSettings", $fields));
if(!defined('PATH_SEPARATOR')) $GLOBALS['_PEAR_default_error_mode']
An exception for terminatinating execution or to throw for unit testing.
Class DownloadSanitationReportUserInteraction.
Class SanitationReportJob.
static formatDate(ilDateTime $date, $a_skip_day=false, $a_include_wd=false, $include_seconds=false)
Format a date @access public.
@classDescription Date and time handling
static _isActive()
Static getter.
static _lookupDiskUsageReportLastUpdate()
Returns the SQL datetime of the last update of the disk usage report.
static _fetchDiskQuotaReport($a_usage_filter=3, $a_access_filter=1, $a_order_column='disk_usage', $a_order_by='desc')
Reads disk quota/disk usage report of the user accounts.
const CONCURRENT_UPLOADS_MAX
static setRepositoryDragAndDropUploadEnabled($newValue)
Sets whether drag and drop file upload in the repository is enabled.
static isRepositoryDragAndDropUploadEnabled()
Gets whether drag and drop file upload in the repository is enabled.
static isDragAndDropUploadEnabled()
Gets whether drag and drop file upload is enabled.
static setConcurrentUploads($newValue)
Sets the number of files that can be uploaded at the same time.
static setDragAndDropUploadEnabled($newValue)
Sets whether drag and drop file upload is enabled.
static getConcurrentUploads()
Gets the number of files that can be uploaded at the same time.
static getDefaultValidExtensionWhiteList()
Valid extensions.
static getValidExtensions()
Valid extensions.
static isGhostscriptInstalled()
Determines whether Ghostscript is installed.
This class represents a non editable value in a property form.
static _lookupReminderMailTemplate($a_lang)
Looks up the mail template for the specified language.
addDiskQuotaSubtabs($a_active_subtab)
Add disk quota subtabs.
setTitleAndDescription()
called by prepare output
initPreviewSettingsForm()
Initializes the preview settings form.
initUploadSettingsForm()
Initializes the upload settings form.
addToExternalSettingsForm($a_form_id)
editDownloadingSettings(ilPropertyFormGUI $a_form=null)
Edit settings.
saveWebDAVSettings()
Save settings.
saveDiskQuotaSettings()
Save disk quota settings.
saveUploadSettings()
Save upload settings.
const CMD_EDIT_DOWNLOADING_SETTINGS
const CMD_EDIT_WEBDAV_SETTINGS
executeCommand()
Execute command.
editWebDAVSettings()
Edit settings.
initDownloadingSettingsForm()
Edit settings.
editUploadSettings()
Edit upload settings.
editDiskQuotaSettings()
Edit disk quota settings.
viewDiskQuotaReport()
The disk quota report list shows user accounts, their disk quota and their disk usage,...
saveDownloadingSettings()
Save settings.
editPreviewSettings()
Edit preview settings.
initDiskQuotaMailTemplateForm()
saveDiskQuotaMailTemplate()
savePreviewSettings()
Save preview settings.
editDiskQuotaMailTemplate(ilPropertyFormGUI $a_form=null)
Edit disk quota settings.
__construct($a_data, $a_id, $a_call_by_reference)
Constructor.
Class ilObjectGUI Basic methods of all Output classes.
prepareOutput($a_show_subobjects=true)
prepare output
const HEADING_STYLE_BLOCK
static getInstance()
Get instance.
New PermissionGUI (extends from old ilPermission2GUI) RBAC related output.
static isPreviewEnabled()
Gets whether the preview functionality is enabled.
static setMaximumPreviews($a_value)
Sets the maximum number of preview pictures per object.
static getMaximumPreviews()
Gets the maximum number of preview pictures per object.
static setPreviewEnabled($a_value)
Sets whether the preview functionality is enabled.
static getRenderers()
Gets an array containing all available preview renderers.
Displays an overview of all loaded preview renderers.
special template class to simplify handling of ITX/PEAR
This class represents a text area property in a property form.
This class represents a text property in a property form.
static sendFailure($a_info="", $a_keep=false)
Send Failure Message to Screen.
static switchColor($a_num, $a_css1, $a_css2)
switches style sheets for each even $a_num (used for changing colors of different result rows)
static formatSize($size, $a_mode='short', $a_lng=null)
Returns the specified file size value in a human friendly form.
static stripSlashes($a_str, $a_strip_html=true, $a_allow="")
strip slashes if magic qoutes is enabled
static formSelect( $selected, $varname, $options, $multiple=false, $direct_text=false, $size="0", $style_class="", $attribs="", $disabled=false)
Builds a select form field with options and shows the selected option first.
static sendInfo($a_info="", $a_keep=false)
Send Info Message to Screen.
__construct(Container $dic, ilPlugin $plugin)
@inheritDoc