4 include_once(
"./Services/Form/classes/class.ilPropertyFormGUI.php");
5 include_once(
"class.ilCloudUtil.php");
33 $this->cloud_object = $object;
43 $ilTabs = $DIC[
'ilTabs'];
46 $ilTabs->activateTab(
"settings");
52 $tpl->setContent($this->form->getHTML());
70 $this->form->addItem($ti);
74 $this->form->addItem($ta);
78 $this->form->addItem($cb);
81 if(!$this->cloud_object->currentUserIsOwner())
84 $folder->setInfo(
$lng->txt(
"cld_only_owner_has_permission_to_change_root_path"));
87 $folder->setMaxLength(255);
89 $this->form->addItem($folder);
94 $this->form->addCommandButton(
"updateSettings",
$lng->txt(
"save"));
96 $this->form->setTitle(
$lng->txt(
"cld_edit_Settings"));
97 $this->form->setFormAction(
$ilCtrl->getFormActionByClass(
"ilCloudPluginSettingsGUI"));
106 $section->setTitle($this->cloud_object->getServiceName().
" ".
$lng->txt(
"cld_service_specific_settings"));
123 $values[
"title"] = $this->cloud_object->getTitle();
124 $values[
"desc"] = $this->cloud_object->getDescription();
125 $values[
"online"] = $this->cloud_object->getOnline();
126 $values[
"root_folder"] = $this->cloud_object->getRootFolder();
128 $this->form->setValuesByArray($values);
142 $ilTabs = $DIC[
'ilTabs'];
144 $ilTabs->activateTab(
"settings");
149 if ($this->form->checkInput())
151 $this->cloud_object->setTitle($this->form->getInput(
"title"));
152 $this->cloud_object->setDescription($this->form->getInput(
"desc"));
156 $this->cloud_object->setRootFolder($this->form->getInput(
"root_folder"));
157 $this->cloud_object->setRootId($this->
getService()->getRootId($this->cloud_object->getRootFolder()));
160 $this->cloud_object->setOnline($this->form->getInput(
"online"));
161 $this->cloud_object->update();
163 $ilCtrl->redirect($this,
'editSettings');
170 $this->form->setValuesByPost();
171 $tpl->setContent($this->form->getHtml());
getMakeOwnPluginSection()
static sendSuccess($a_info="", $a_keep=false)
Send Success Message to Screen.
Class ilCloudPluginSettingsGUI.
editSettings()
Edit Settings.
getPluginSettingsValues(&$values)
updateSettings()
Update Settings.
This class represents a text property in a property form.
static sendFailure($a_info="", $a_keep=false)
Send Failure Message to Screen.
setCloudObject(ilObjCloud $object)
This class represents a text area property in a property form.
getSettingsValues()
Get values for edit Settings form.
static normalizePath($path)