4include_once
'./Services/WebServices/FileManager/classes/class.ilFMSettings.php';
38 $this->ctrl = $this->dic->ctrl();
39 $this->rbacsystem = $this->dic->rbac()->system();
40 $this->parent_obj = $a_parent_gui;
51 $next_class =
$ilCtrl->getNextClass();
53 switch ($next_class) {
88 include_once
'./Services/WebServices/FileManager/classes/class.ilFMSettings.php';
92 if (
$form->checkInput()) {
93 $settings->enable(
$form->getInput(
'active'));
94 $settings->enableLocalFS(
$form->getInput(
'local'));
95 $settings->setMaxFileSize(
$form->getInput(
'filesize'));
99 $GLOBALS[
'ilCtrl']->redirect($this,
'settings');
110 include_once
'./Services/Form/classes/class.ilPropertyFormGUI.php';
115 if ($this->rbacsystem->checkAccess(
'write',
$_GET[
'ref_id'])) {
116 $form->addCommandButton(
'update',
$GLOBALS[
'lng']->txt(
'save'));
117 $form->addCommandButton(
'settings',
$GLOBALS[
'lng']->txt(
'cancel'));
122 $active->setInfo(
$GLOBALS[
'lng']->txt(
'fm_settings_active_info'));
123 $active->setValue(1);
125 $form->addItem($active);
129 $local->setInfo(
$GLOBALS[
'lng']->txt(
'fm_settings_local_info'));
132 $form->addItem($local);
135 $fs->setSuffix(
'MiB');
137 $fs->setMaxLength(3);
139 $fs->setMaxValue(999);
140 $fs->setInfo(
$GLOBALS[
'lng']->txt(
'fm_settings_filesize_info'));
An exception for terminatinating execution or to throw for unit testing.
getParentObject()
Get parent gui.
executeCommand()
Execute command @global ilCtrl $ilCtrl.
initSettingsForm()
Init settings form.
__construct($a_parent_gui)
Constructor.
static getInstance()
Get singleton instance.
static sendSuccess($a_info="", $a_keep=false)
Send Success Message to Screen.
$GLOBALS['loaded']
Global hash that tracks already loaded includes.
if(isset($_POST['submit'])) $form