37include_once 
"./Services/Object/classes/class.ilObjectGUI.php";
 
   53                parent::__construct($a_data,$a_id,$a_call_by_reference, 
false);
 
   54                $this->folderSettings = 
new ilSetting(
'fold');
 
   57                require_once 
'Services/WebDAV/classes/class.ilObjDiskQuotaSettings.php';
 
   59                $this->disk_quota_obj->read();
 
   70                $ilAccess = 
$DIC[
'ilAccess'];
 
   74                $lng->loadLanguageModule(
"file");
 
   76                $next_class = $this->ctrl->getNextClass($this);
 
   77                $cmd = $this->ctrl->getCmd();
 
   81                if(!$ilAccess->checkAccess(
'read',
'',$this->object->getRefId()))
 
   88                        case 'ilpermissiongui':
 
   89                                $this->tabs_gui->setTabActive(
'perm_settings');
 
   90                                include_once(
"Services/AccessControl/classes/class.ilPermissionGUI.php");
 
   92                                $ret =& $this->ctrl->forwardCommand($perm_gui);
 
   95                        case 'ilfmsettingsgui':
 
   96                                $this->tabs_gui->setTabActive(
'fm_settings_tab');
 
   97                                include_once 
'./Services/WebServices/FileManager/classes/class.ilFMSettingsGUI.php';
 
   99                                $this->ctrl->forwardCommand($fmg);
 
  105                                        $cmd = 
"editDownloadingSettings";
 
  123                $rbacsystem = 
$DIC[
'rbacsystem'];
 
  124                $ilAccess = 
$DIC[
'ilAccess'];
 
  126                $GLOBALS[
'DIC'][
'lng']->loadLanguageModule(
'fm');
 
  128                if ($rbacsystem->checkAccess(
"visible,read",$this->object->getRefId()))
 
  130                        $this->tabs_gui->addTarget(
'downloading_settings',
 
  131                                $this->ctrl->getLinkTarget($this, 
"editDownloadingSettings"),
 
  132                                array(
"editDownloadingSettings", 
"view"));
 
  134                        $this->tabs_gui->addTarget(
'upload_settings',
 
  135                                $this->ctrl->getLinkTarget($this, 
"editUploadSettings"),
 
  136                                array(
"editUploadSettings", 
"view"));
 
  138                        $this->tabs_gui->addTarget(
'preview_settings',
 
  139                                $this->ctrl->getLinkTarget($this, 
"editPreviewSettings"),
 
  140                                array(
"editPreviewSettings", 
"view"));
 
  142                        $this->tabs_gui->addTarget(
'webdav',
 
  143                                $this->ctrl->getLinkTarget($this, 
"editWebDAVSettings"),
 
  144                                array(
"editWebDAVSettings", 
"view"));
 
  146                        $this->tabs_gui->addTarget(
 
  148                                $this->ctrl->getLinkTargetByClass(
'ilFMSettingsGUI',
'settings'),
 
  153                        $this->tabs_gui->addTarget(
"disk_quota",
 
  154                                $this->ctrl->getLinkTarget($this, 
"editDiskQuotaSettings"),
 
  155                                array(
"editDiskQuota", 
"view"));
 
  157                if ($rbacsystem->checkAccess(
'edit_permission',$this->object->getRefId()))
 
  159                        $this->tabs_gui->addTarget(
"perm_settings",
 
  160                                $this->ctrl->getLinkTargetByClass(
'ilpermissiongui',
"perm"),
 
  161                                array(),
'ilpermissiongui');
 
  177                require_once(
"./Services/Form/classes/class.ilPropertyFormGUI.php");
 
  178                require_once(
"./Services/Form/classes/class.ilCheckboxInputGUI.php");
 
  179                require_once(
"./Services/Form/classes/class.ilRadioGroupInputGUI.php");
 
  180                require_once(
"./Services/Form/classes/class.ilRadioOption.php");
 
  181                require_once(
"./Services/Form/classes/class.ilTextAreaInputGUI.php");
 
  184                $form->setFormAction(
$ilCtrl->getFormAction($this));
 
  185                $form->setTitle(
$lng->txt(
"settings"));
 
  190                $dl_prop = 
new ilCheckboxInputGUI(
$lng->txt(
"download_with_uploaded_filename"), 
"download_with_uploaded_filename");
 
  191                $dl_prop->setValue(
'1');
 
  193                $dl_prop->setChecked($this->object->isDownloadWithUploadedFilename() == 1);
 
  194                $dl_prop->setInfo(
$lng->txt(
'download_with_uploaded_filename_info'));
 
  195                $form->addItem($dl_prop);
 
  199                $dl_prop->setValue(
'1');
 
  201                $dl_prop->setChecked($this->folderSettings->get(
"enable_download_folder", 0) == 1);
 
  202                $dl_prop->setInfo(
$lng->txt(
'enable_download_folder_info'));
 
  203                $form->addItem($dl_prop);
 
  207                $dl_prop->setValue(
'1');
 
  209                $dl_prop->setChecked($this->folderSettings->get(
"enable_multi_download", 0) == 1);
 
  210                $dl_prop->setInfo(
$lng->txt(
'enable_multi_download_info'));
 
  211                $form->addItem($dl_prop);
 
  216                $lng->loadLanguageModule(
"bgtask");
 
  218                $dl_bg->setInfo(
$lng->txt(
"bgtask_setting_info"));
 
  219                $dl_bg->setChecked($this->folderSettings->get(
"bgtask_download", 0));           
 
  220                $form->addItem($dl_bg);
 
  223                $dl_bgtc->setInfo(
$lng->txt(
"bgtask_setting_threshold_count_info"));
 
  224                $dl_bgtc->setRequired(
true);
 
  225                $dl_bgtc->setSize(10);
 
  226                $dl_bgtc->setMinValue(1);
 
  227                $dl_bgtc->setSuffix(
$lng->txt(
"files"));
 
  228                $dl_bgtc->setValue($this->folderSettings->get(
"bgtask_download_tcount", 
null));
 
  229                $dl_bg->addSubItem($dl_bgtc);
 
  232                $dl_bgts->setInfo(
$lng->txt(
"bgtask_setting_threshold_size_info"));
 
  233                $dl_bgts->setRequired(
true);
 
  234                $dl_bgts->setSize(10);
 
  235                $dl_bgts->setMinValue(1);
 
  236                $dl_bgts->setSuffix(
$lng->txt(
"lang_size_mb"));
 
  237                $dl_bgts->setValue($this->folderSettings->get(
"bgtask_download_tsize", 
null));
 
  238                $dl_bg->addSubItem($dl_bgts);
 
  241                $dl_bgl->setInfo(
$lng->txt(
"bgtask_setting_limit_info"));
 
  242                $dl_bgl->setRequired(
true);
 
  243                $dl_bgl->setSize(10);
 
  244                $dl_bgl->setMinValue(1);
 
  245                $dl_bgl->setSuffix(
$lng->txt(
"lang_size_mb"));
 
  246                $dl_bgl->setValue($this->folderSettings->get(
"bgtask_download_limit", 
null));
 
  247                $dl_bg->addSubItem($dl_bgl);
 
  252                $tai_prop->setValue($this->object->getInlineFileExtensions());
 
  253                $tai_prop->setInfo(
$lng->txt(
'inline_file_extensions_info'));
 
  254                $tai_prop->setCols(80);
 
  255                $tai_prop->setRows(5);
 
  256                $form->addItem($tai_prop);
 
  259                $form->addCommandButton(
'saveDownloadingSettings', 
$lng->txt(
'save'));
 
  260                $form->addCommandButton(
'view', 
$lng->txt(
'cancel'));
 
  272                $this->tabs_gui->setTabActive(
'downloading_settings');
 
  274                if (! $rbacsystem->checkAccess(
"visible,read",$this->object->getRefId()))
 
  284                $tpl->setContent($a_form->getHTML());
 
  293                $rbacsystem = 
$DIC[
'rbacsystem'];
 
  298                if (! $rbacsystem->checkAccess(
"write",$this->object->getRefId()))
 
  304                if($form->checkInput())
 
  308                        $this->
object->update();
 
  310                        $this->folderSettings->set(
"enable_download_folder", 
$_POST[
"enable_download_folder"] == 1);
 
  311                        $this->folderSettings->set(
"enable_multi_download", 
$_POST[
"enable_multi_download"] == 1);
 
  313                        $this->folderSettings->set(
"bgtask_download", (
bool)
$_POST[
"enable_bg"]);
 
  314                        if((
bool)
$_POST[
"enable_bg"])
 
  316                                $this->folderSettings->set(
"bgtask_download_limit", (
int)
$_POST[
"bg_limit"]);
 
  317                                $this->folderSettings->set(
"bgtask_download_tcount", (
int)
$_POST[
"bg_tcount"]);
 
  318                                $this->folderSettings->set(
"bgtask_download_tsize", (
int)
$_POST[
"bg_tsize"]);
 
  322                        $ilCtrl->redirect($this, 
"editDownloadingSettings");
 
  325                $form->setValuesByPost();
 
  335                $rbacsystem = 
$DIC[
'rbacsystem'];
 
  337                $ilTabs = 
$DIC[
'ilTabs'];
 
  345                $this->tabs_gui->setTabActive(
'webdav');
 
  347                if (! $rbacsystem->checkAccess(
"visible,read",$this->object->getRefId()))
 
  352                require_once(
"./Services/Form/classes/class.ilPropertyFormGUI.php");
 
  353                require_once(
"./Services/Form/classes/class.ilCheckboxInputGUI.php");
 
  354                require_once(
"./Services/Form/classes/class.ilRadioGroupInputGUI.php");
 
  355                require_once(
"./Services/Form/classes/class.ilRadioOption.php");
 
  356                require_once(
"./Services/Form/classes/class.ilTextAreaInputGUI.php");
 
  357                require_once(
"./Services/WebDAV/classes/class.ilDAVServer.php");
 
  360                $form->setFormAction(
$ilCtrl->getFormAction($this));
 
  361                $form->setTitle(
$lng->txt(
"settings"));
 
  366                $cb_prop->setValue(
'1');
 
  367                $cb_prop->setChecked($this->object->isWebdavEnabled());
 
  368                $form->addItem($cb_prop);
 
  371                $rgi_prop->addOption(
new ilRadioOption(
$lng->txt(
'use_default_instructions'), 
'default'));
 
  372                $rgi_prop->addOption(
new ilRadioOption(
$lng->txt(
'use_customized_instructions'), 
'custom'));
 
  373                $rgi_prop->setValue($this->object->isCustomWebfolderInstructionsEnabled() ? 
'custom':
'default');
 
  374                $form->addItem($rgi_prop);
 
  376                $tai_prop->setValue($this->object->getCustomWebfolderInstructions());
 
  377                $tai_prop->setInfo(
$lng->txt(
"webfolder_instructions_info"));
 
  378                $tai_prop->setRows(20);
 
  379                $form->addItem($tai_prop);
 
  382                $form->addCommandButton(
'saveWebDAVSettings', 
$lng->txt(
'save'));
 
  383                $form->addCommandButton(
'view', 
$lng->txt(
'cancel'));
 
  385                $tpl->setContent($form->getHTML());
 
  394                $rbacsystem = 
$DIC[
'rbacsystem'];
 
  399                if (! $rbacsystem->checkAccess(
"write",$this->object->getRefId()))
 
  404                $this->
object->setWebdavEnabled(
$_POST[
'enable_webdav'] == 
'1');
 
  406                $this->
object->setCustomWebfolderInstructionsEnabled(
$_POST[
'custom_webfolder_instructions_choice']==
'custom');
 
  408                $this->
object->update();
 
  411                $ilCtrl->redirect($this, 
"editWebDAVSettings");
 
  419                parent::setTitleAndDescription();
 
  420                $this->tpl->setDescription($this->object->getDescription());
 
  432                $ilTabs = 
$DIC[
'ilTabs'];
 
  434                include_once(
"./Services/COPage/classes/class.ilPageEditorSettings.php");
 
  436                $ilTabs->addSubTabTarget(
"settings",
 
  437                         $ilCtrl->getLinkTarget($this, 
"editDiskQuotaSettings"),
 
  438                         array(
"editDiskQuotaSettings"));
 
  440                require_once 
'Services/WebDAV/classes/class.ilDiskQuotaActivationChecker.php';
 
  443                        $ilTabs->addSubTabTarget(
"disk_quota_report",
 
  444                                 $ilCtrl->getLinkTarget($this, 
"viewDiskQuotaReport"),
 
  445                                 array(
"viewDiskQuotaReport"));
 
  448                $ilTabs->addSubTabTarget(
"disk_quota_reminder_mail",
 
  449                         $ilCtrl->getLinkTarget($this, 
"editDiskQuotaMailTemplate"),
 
  450                         array(
"editDiskQuotaMailTemplate"));
 
  452                $ilTabs->setSubTabActive($a_active_subtab);
 
  462                $rbacsystem = 
$DIC[
'rbacsystem'];
 
  470                if (! $rbacsystem->checkAccess(
"visible,read",$this->object->getRefId()))
 
  475                $this->tabs_gui->setTabActive(
'disk_quota');
 
  478                require_once(
"./Services/Form/classes/class.ilPropertyFormGUI.php");
 
  479                require_once(
"./Services/Form/classes/class.ilCheckboxInputGUI.php");
 
  480                require_once(
"./Services/Form/classes/class.ilRadioGroupInputGUI.php");
 
  481                require_once(
"./Services/Form/classes/class.ilRadioOption.php");
 
  482                require_once(
"./Services/Form/classes/class.ilTextAreaInputGUI.php");
 
  483                require_once(
"./Services/WebDAV/classes/class.ilDAVServer.php");
 
  485                $lng->loadLanguageModule(
"file");
 
  488                $form->setFormAction(
$ilCtrl->getFormAction($this));
 
  489                $form->setTitle(
$lng->txt(
"settings"));
 
  491                include_once 
"Services/Administration/classes/class.ilAdministrationSettingsFormHandler.php";
 
  504                $tpl->setContent($form->getHTML());
 
  513                $rbacsystem = 
$DIC[
'rbacsystem'];
 
  518                if (! $rbacsystem->checkAccess(
"write",$this->object->getRefId()))
 
  524                $ilCtrl->redirect($this, 
"editDiskQuotaSettings");
 
  534                $rbacsystem = 
$DIC[
'rbacsystem'];
 
  539                if (! $rbacsystem->checkAccess(
"visible,read",$this->object->getRefId()))
 
  544                $this->tabs_gui->setTabActive(
'disk_quota');
 
  548                require_once 
'Services/WebDAV/classes/class.ilDiskQuotaActivationChecker.php';
 
  555                $this->tpl->addBlockfile(
'ADM_CONTENT',
'adm_content',
'tpl.disk_quota_report.html',
 
  559                require_once(
"./Services/WebDAV/classes/class.ilDiskQuotaChecker.php");
 
  561                if ($last_update == 
null)
 
  564                        $this->tpl->setVariable(
'LAST_UPDATE_TEXT',
$lng->txt(
'disk_quota_report_not_run_yet'));
 
  569                        $this->tpl->setVariable(
'LAST_UPDATE_TEXT',
$lng->txt(
'last_update').
': '.
 
  575                if (
$_SESSION[
'quota_usage_filter'] == 0)
 
  580                if (
$_SESSION[
'quota_access_filter'] == 0)
 
  584                $usage_action[1] = 
$lng->txt(
'all_users');
 
  585                $usage_action[2] = 
$lng->txt(
'filter_users_without_disk_usage');
 
  586                $usage_action[3] = 
$lng->txt(
'filter_users_with_disk_usage');
 
  587                $usage_action[4] = 
$lng->txt(
'filter_users_with_exceeded_disk_quota');
 
  588                $access_action[1] = 
$lng->txt(
'all_users');
 
  589                $access_action[2] = 
$lng->txt(
'filter_users_with_access');
 
  590                $access_action[3] = 
$lng->txt(
'filter_users_without_access');
 
  595                $this->tpl->setCurrentBlock(
"filter");
 
  596                $this->tpl->setVariable(
"FILTER_TXT_FILTER",
$lng->txt(
'filter'));
 
  597                $this->tpl->setVariable(
"SELECT_USAGE_FILTER",$select_usage_filter);
 
  598                $this->tpl->setVariable(
"SELECT_ACCESS_FILTER",$select_access_filter);
 
  599                $this->tpl->setVariable(
"FILTER_ACTION",$this->ctrl->getLinkTarget($this, 
'viewDiskQuotaReport'));
 
  600                $this->tpl->setVariable(
"FILTER_NAME",
'view');
 
  601                $this->tpl->setVariable(
"FILTER_VALUE",
$lng->txt(
'apply_filter'));
 
  602                $this->tpl->parseCurrentBlock();
 
  605                $a_tpl = 
new ilTemplate(
'tpl.table.html',
true,
true);
 
  606                $a_tpl->addBlockfile(
"TBL_CONTENT", 
"tbl_content", 
"tpl.obj_tbl_rows.html");
 
  609                require_once 
'./Services/Table/classes/class.ilTableGUI.php';
 
  613                $header_vars = array(
'login',
'firstname',
'lastname',
'email',
'access_until',
'last_login',
'disk_quota',
'disk_usage', 
'last_reminder');
 
  614                $tbl->setHeaderNames(
 
  617                                $lng->txt(
'firstname'),
 
  618                                $lng->txt(
'lastname'),
 
  620                                $lng->txt(
'access_until'),
 
  621                                $lng->txt(
'last_login'),
 
  622                                $lng->txt(
'disk_quota'),
 
  623                                $lng->txt(
'disk_usage'),
 
  624                                $lng->txt(
'last_reminder')
 
  629                        $this->ctrl->getParameterArray($this,
'viewDiskQuotaReport',
false)
 
  632                $tbl->enable(
"numinfo_header");
 
  633                $tbl->setFormName(
"cmd");
 
  634                $tbl->setSelectAllCheckbox(
"id");
 
  638                $tbl->setOrderDirection(
$_GET[
"sort_order"]);
 
  644                        $header_vars[
$tbl->getOrderColumn()], 
$tbl->getOrderDirection());
 
  652                $tbl->setFooter(
"tblfooter",
$lng->txt(
"previous"),
$lng->txt(
"next"));
 
  655                $tbl->setTemplate($a_tpl);
 
  659                for ($i = 
$tbl->getOffset(); $i < count(
$data) && $i < $tbl->getOffset() + 
$tbl->getLimit(); $i++)
 
  664                        foreach ($header_vars as $key)
 
  670                                                $this->ctrl->setParameterByClass(
"ilobjusergui", 
"ref_id", 
"7");
 
  671                                                $this->ctrl->setParameterByClass(
"ilobjusergui", 
"obj_id", 
$row[
"usr_id"]);
 
  672                                                $link = $this->ctrl->getLinkTargetByClass(
"ilobjusergui", 
"view");
 
  673                                                $tbl_content_cell = 
'<a href="'.$link.
'">'.htmlspecialchars(
$row[$key]).
'</a>';
 
  676                                                if (
$row[
'role_id'] == SYSTEM_ROLE_ID)
 
  678                                                        $tbl_content_cell = 
"<span class=\"smallgreen\">".$lng->txt(
'access_unlimited').
'</span>';
 
  686                                                if (
$row[
'last_update'] == 
null)
 
  688                                                        $tbl_content_cell = 
$lng->txt(
'unknown');
 
  690                                                else if (
$row[
'disk_usage'] > 
$row[
'disk_quota'])
 
  692                                                 $tbl_content_cell = 
"<span class=\"smallred\">".ilUtil::formatSize(
$row[$key],
'short').
'</span>';
 
  699                                        case 'access_until' :
 
  700                                                if (! 
$row[
'active'])
 
  702                                                         $tbl_content_cell = 
"<span class=\"smallred\">".$lng->txt(
'inactive').
'</span>';
 
  704                                                else if (
$row[
'time_limit_unlimited'])
 
  706                                                        $tbl_content_cell = 
"<span class=\"smallgreen\">".$lng->txt(
'access_unlimited').
'</span>';
 
  708                                                else if (
$row[
'expired'])
 
  710                                                         $tbl_content_cell = 
"<span class=\"smallred\">".$lng->txt(
'access_expired').
'</span>';
 
  718                                        case 'last_reminder' :
 
  719                                                if (
$row[$key] == 
null)
 
  721                                                        $tbl_content_cell = 
$lng->txt(
'no_date');
 
  729                                                 $tbl_content_cell = htmlspecialchars(
$row[$key]);
 
  740                                $tbl->tpl->setCurrentBlock(
"tbl_content_cell");
 
  741                                $tbl->tpl->setVariable(
"TBL_CONTENT_CELL",$tbl_content_cell);
 
  743                                $tbl->tpl->parseCurrentBlock();
 
  746                        $tbl->tpl->setCurrentBlock(
"tbl_content_row");
 
  748                        $tbl->tpl->setVariable(
"ROWCOLOR", $rowcolor);
 
  749                        $tbl->tpl->parseCurrentBlock();
 
  753                $tbl->disable(
'icon');
 
  754                $tbl->disable(
'title');
 
  758                $this->tpl->setVariable(
"USER_TABLE",$a_tpl->get());
 
  766                $lng->loadLanguageModule(
"meta");
 
  767                $lng->loadLanguageModule(
"mail");
 
  769                include_once 
"Services/Form/classes/class.ilPropertyFormGUI.php";
 
  771                $form->setFormAction($this->ctrl->getFormAction($this));
 
  773                $form->setTitle(
$lng->txt(
"disk_quota_reminder_mail"));
 
  774                $form->setDescription(
$lng->txt(
"disk_quota_reminder_mail_desc"));
 
  776                foreach(
$lng->getInstalledLanguages() as $lang_key)
 
  778                        $lang_def = ($lang_key == 
$lng->getDefaultLanguage())
 
  779                                ?  
" (".
$lng->txt(
"default").
")" 
  783                        $sec->setTitle(
$lng->txt(
"meta_l_".$lang_key).$lang_def);
 
  784                        $form->addItem($sec);
 
  787                        $subj->setRequired(
true);
 
  788                        $form->addItem($subj);
 
  790                        $sal_g = 
new ilTextInputGUI(
$lng->txt(
"mail_salutation_general"), 
"sal_g_".$lang_key);
 
  791                        $sal_g->setRequired(
true);
 
  792                        $form->addItem($sal_g);
 
  795                        $sal_f->setRequired(
true);
 
  796                        $form->addItem($sal_f);
 
  799                        $sal_m->setRequired(
true);
 
  800                        $form->addItem($sal_m);
 
  803                        $body->setRequired(
true);
 
  805                        $form->addItem($body);                          
 
  809                        $subj->setValue($amail[
"subject"]);
 
  810                        $sal_g->setValue($amail[
"sal_g"]);
 
  811                        $sal_f->setValue($amail[
"sal_f"]);
 
  812                        $sal_m->setValue($amail[
"sal_m"]);
 
  813                        $body->setValue($amail[
"body"]);                        
 
  816                $form->addCommandButton(
"saveDiskQuotaMailTemplate", 
$lng->txt(
"save"));
 
  817                $form->addCommandButton(
"editDiskQuotaSettings", 
$lng->txt(
"cancel"));
 
  828                $rbacsystem = 
$DIC[
'rbacsystem'];
 
  832                if (! $rbacsystem->checkAccess(
"visible,read",$this->object->getRefId()))
 
  837                $this->tabs_gui->setTabActive(
"disk_quota");
 
  845                $tpl = 
new ilTemplate(
"tpl.disk_quota_reminder_mail.html", 
true, 
true, 
"Services/WebDAV");              
 
  846                $tpl->setVariable(
"TXT_USE_PLACEHOLDERS", 
$lng->txt(
"mail_nacc_use_placeholder"));
 
  847                $tpl->setVariable(
"TXT_MAIL_SALUTATION", 
$lng->txt(
"mail_nacc_salutation"));
 
  848                $tpl->setVariable(
"TXT_FIRST_NAME", 
$lng->txt(
"firstname"));
 
  849                $tpl->setVariable(
"TXT_LAST_NAME", 
$lng->txt(
"lastname"));
 
  850                $tpl->setVariable(
"TXT_EMAIL", 
$lng->txt(
"email"));
 
  851                $tpl->setVariable(
"TXT_LOGIN", 
$lng->txt(
"mail_nacc_login"));
 
  852                $tpl->setVariable(
"TXT_DISK_QUOTA", 
$lng->txt(
"disk_quota"));
 
  853                $tpl->setVariable(
"TXT_DISK_USAGE", 
$lng->txt(
"disk_usage"));
 
  854                $tpl->setVariable(
"TXT_DISK_USAGE_DETAILS", 
$lng->txt(
"disk_usage_details"));
 
  855                $tpl->setVariable(
"TXT_ADMIN_MAIL", 
$lng->txt(
"mail_nacc_admin_mail"));
 
  856                $tpl->setVariable(
"TXT_ILIAS_URL", 
$lng->txt(
"mail_nacc_ilias_url"));
 
  857                $tpl->setVariable(
"TXT_CLIENT_NAME", 
$lng->txt(
"mail_nacc_client_name"));
 
  859                include_once 
"Services/UIComponent/Panel/classes/class.ilPanelGUI.php";
 
  862                $legend->setHeading(
$lng->txt(
"mail_nacc_use_placeholder"));
 
  865                $this->tpl->setContent($a_form->getHTML().$legend->getHTML());
 
  874                if($form->checkInput())
 
  876                        foreach(
$lng->getInstalledLanguages() as $lang_key)
 
  878                                $this->disk_quota_obj->_writeReminderMailTemplate(
 
  880                                        $form->getInput(
"subject_".$lang_key),
 
  881                                        $form->getInput(
"sal_g_".$lang_key),
 
  882                                        $form->getInput(
"sal_f_".$lang_key),
 
  883                                        $form->getInput(
"sal_m_".$lang_key),
 
  884                                        $form->getInput(
"body_".$lang_key)
 
  889                        $this->ctrl->redirect($this, 
"editDiskQuotaMailTemplate");
 
  892                $form->setValuesByPost();
 
  905                require_once(
"./Services/Form/classes/class.ilPropertyFormGUI.php");
 
  907                $form->setFormAction(
$ilCtrl->getFormAction($this));
 
  908                $form->setTitle(
$lng->txt(
"settings"));
 
  910                require_once(
"Services/FileUpload/classes/class.ilFileUploadSettings.php");
 
  914                $chk_enabled->setValue(
'1');
 
  916                $chk_enabled->setInfo(
$lng->txt(
'enable_dnd_upload_info'));
 
  917                $form->addItem($chk_enabled);
 
  920                $chk_repo = 
new ilCheckboxInputGUI(
$lng->txt(
"enable_repository_dnd_upload"), 
"enable_repository_dnd_upload");
 
  921                $chk_repo->setValue(
'1');
 
  923                $chk_repo->setInfo(
$lng->txt(
'enable_repository_dnd_upload_info'));
 
  924                $chk_enabled->addSubItem($chk_repo);
 
  928                $num_prop->setDecimals(0);
 
  929                $num_prop->setMinValue(1);
 
  930                $num_prop->setMinvalueShouldBeGreater(
false);
 
  932                $num_prop->setMaxvalueShouldBeLess(
false);
 
  933                $num_prop->setMaxLength(5);
 
  934                $num_prop->setSize(10);
 
  936                $num_prop->setInfo(
$lng->txt(
'concurrent_uploads_info'));
 
  937                $chk_enabled->addSubItem($num_prop);
 
  939                include_once(
"./Services/Utilities/classes/class.ilFileUtils.php");
 
  944                $ne->setInfo($this->lng->txt(
"file_suffix_default_white_info"));
 
  948                $ta = 
new ilTextAreaInputGUI($this->lng->txt(
"file_suffix_custom_black"), 
"suffix_repl_additional");
 
  949                $ta->setInfo($this->lng->txt(
"file_suffix_custom_black_info"));
 
  954                $ta = 
new ilTextAreaInputGUI($this->lng->txt(
"file_suffix_custom_white"), 
"suffix_custom_white_list");
 
  955                $ta->setInfo($this->lng->txt(
"file_suffix_custom_white_info"));
 
  962                $ne->setInfo($this->lng->txt(
"file_suffix_overall_white_info"));
 
  966                $form->addCommandButton(
'saveUploadSettings', 
$lng->txt(
'save'));
 
  967                $form->addCommandButton(
'view', 
$lng->txt(
'cancel'));
 
  978                $rbacsystem = 
$DIC[
'rbacsystem'];
 
  984                $this->tabs_gui->setTabActive(
'upload_settings');
 
  986                if (!$rbacsystem->checkAccess(
"visible,read", $this->object->getRefId()))
 
  994                require_once(
"Services/FileUpload/classes/class.ilFileUploadSettings.php");
 
 1001                $val[
"suffix_repl_additional"] = 
$ilSetting->get(
"suffix_repl_additional");
 
 1002                $val[
"suffix_custom_white_list"] = 
$ilSetting->get(
"suffix_custom_white_list");
 
 1003                $form->setValuesByArray($val);
 
 1006                $tpl->setContent($form->getHTML());
 
 1015                $rbacsystem = 
$DIC[
'rbacsystem'];
 
 1022                if (!$rbacsystem->checkAccess(
"write",$this->object->getRefId()))
 
 1029                if ($form->checkInput())
 
 1031                        require_once(
"Services/FileUpload/classes/class.ilFileUploadSettings.php");
 
 1037                        $ilSetting->set(
"suffix_repl_additional", 
$_POST[
"suffix_repl_additional"]);
 
 1038                        $ilSetting->set(
"suffix_custom_white_list", 
$_POST[
"suffix_custom_white_list"]);
 
 1041                        $ilCtrl->redirect($this, 
"editUploadSettings");
 
 1045                        $form->setValuesByPost();       
 
 1046                        $tpl->setContent($form->getHTML());
 
 1059                require_once(
"./Services/Form/classes/class.ilPropertyFormGUI.php");
 
 1061                $form->setFormAction(
$ilCtrl->getFormAction($this));
 
 1062                $form->setTitle(
$lng->txt(
"settings"));
 
 1064                require_once(
"Services/Preview/classes/class.ilPreviewSettings.php");
 
 1068                $chk_prop->setValue(
'1');
 
 1070                $chk_prop->setInfo(
$lng->txt(
'enable_preview_info'));
 
 1071                $form->addItem($chk_prop);
 
 1073                $num_prop = 
new ilNumberInputGUI(
$lng->txt(
"max_previews_per_object"), 
"max_previews_per_object");
 
 1074                $num_prop->setDecimals(0);
 
 1075                $num_prop->setMinValue(1);
 
 1076                $num_prop->setMinvalueShouldBeGreater(
false);
 
 1078                $num_prop->setMaxvalueShouldBeLess(
false);
 
 1079                $num_prop->setMaxLength(5);
 
 1080                $num_prop->setSize(10);
 
 1082                $num_prop->setInfo(
$lng->txt(
'max_previews_per_object_info'));
 
 1083                $form->addItem($num_prop);
 
 1086                $form->addCommandButton(
'savePreviewSettings', 
$lng->txt(
'save'));
 
 1087                $form->addCommandButton(
'view', 
$lng->txt(
'cancel'));
 
 1098                $rbacsystem = 
$DIC[
'rbacsystem'];
 
 1103                $this->tabs_gui->setTabActive(
'preview_settings');
 
 1105                if (!$rbacsystem->checkAccess(
"visible,read", $this->object->getRefId()))
 
 1111                include_once(
"./Services/Preview/classes/class.ilGhostscriptRenderer.php");
 
 1121                require_once(
"Services/Preview/classes/class.ilPreviewSettings.php");
 
 1126                $form->setValuesByArray($val);
 
 1128                $html = $form->getHTML();
 
 1131                require_once(
"Services/Preview/classes/class.ilRendererFactory.php");
 
 1132                require_once(
"Services/Preview/classes/class.ilRendererTableGUI.php");
 
 1137                $table->setMaxCount(
sizeof($renderers));
 
 1138                $table->setData($renderers);    
 
 1140                $html .= 
"<br/>" . $table->getHTML();
 
 1152                $rbacsystem = 
$DIC[
'rbacsystem'];
 
 1158                $this->tabs_gui->setTabActive(
'preview_settings');
 
 1160                if (!$rbacsystem->checkAccess(
"write",$this->object->getRefId()))
 
 1167                if ($form->checkInput())
 
 1169                        require_once(
"Services/Preview/classes/class.ilPreviewSettings.php");
 
 1174                        $ilCtrl->redirect($this, 
"editPreviewSettings");
 
 1178                        $form->setValuesByPost();       
 
 1179                        $tpl->setContent($form->getHTML());
 
 1192                                $fields = array(
'file_suffix_repl' => 
$ilSetting->get(
"suffix_repl_additional"));
 
 1194                                return array(array(
"editUploadSettings", $fields));                             
 
An exception for terminatinating execution or to throw for unit testing.
static getInstance()
Get singelton instance.
static formatDate(ilDateTime $date)
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()
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.
executeCommand()
Execute command.
editWebDAVSettings()
Edit settings.
initDownloadingSettingsForm()
Edit settings.
editUploadSettings()
Edit upload settings.
editDiskQuotaSettings()
Edit disk quota settings.
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 @access public.
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.
This class represents an option in a radio group.
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 sendSuccess($a_info="", $a_keep=false)
Send Success 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 sendInfo($a_info="", $a_keep=false)
Send Info Message to Screen.
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.
$GLOBALS['loaded']
Global hash that tracks already loaded includes.