4 include_once
'./Services/WebServices/FileManager/classes/class.ilFMSettings.php';
24 $this->parent_obj = $a_parent_gui;
35 $next_class = $ilCtrl->getNextClass();
36 $cmd = $ilCtrl->getCmd();
66 $GLOBALS[
'tpl']->setContent($form->getHTML());
74 include_once
'./Services/WebServices/FileManager/classes/class.ilFMSettings.php';
78 if($form->checkInput())
80 $settings->enable($form->getInput(
'active'));
81 $settings->enableLocalFS($form->getInput(
'local'));
82 $settings->setMaxFileSize($form->getInput(
'filesize'));
86 $GLOBALS[
'ilCtrl']->redirect($this,
'settings');
97 include_once
'./Services/Form/classes/class.ilPropertyFormGUI.php';
99 $form->setFormAction($ilCtrl->getFormAction($this));
100 $form->setTitle(
$GLOBALS[
'lng']->txt(
'settings'));
101 $form->addCommandButton(
'update',
$GLOBALS[
'lng']->txt(
'save'));
102 $form->addCommandButton(
'settings',
$GLOBALS[
'lng']->txt(
'cancel'));
106 $active->setInfo(
$GLOBALS[
'lng']->txt(
'fm_settings_active_info'));
107 $active->setValue(1);
109 $form->addItem($active);
113 $local->setInfo(
$GLOBALS[
'lng']->txt(
'fm_settings_local_info'));
116 $form->addItem($local);
119 $fs->setSuffix(
'MiB');
121 $fs->setMaxLength(3);
123 $fs->setMaxValue(999);
124 $fs->setInfo(
$GLOBALS[
'lng']->txt(
'fm_settings_filesize_info'));