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");
51 $tpl->setContent($this->form->getHTML());
68 $this->form->addItem($ti);
72 $this->form->addItem($ta);
76 $this->form->addItem($cb);
79 if (!$this->cloud_object->currentUserIsOwner()) {
81 $folder->setInfo(
$lng->txt(
"cld_only_owner_has_permission_to_change_root_path"));
84 $folder->setMaxLength(255);
86 $this->form->addItem($folder);
91 $this->form->addCommandButton(
"updateSettings",
$lng->txt(
"save"));
93 $this->form->setTitle(
$lng->txt(
"cld_edit_Settings"));
94 $this->form->setFormAction(
$ilCtrl->getFormActionByClass(
"ilCloudPluginSettingsGUI"));
102 $section->setTitle($this->cloud_object->getServiceName() .
" " .
$lng->txt(
"cld_service_specific_settings"));
121 $values[
"title"] = $this->cloud_object->getTitle();
122 $values[
"desc"] = $this->cloud_object->getDescription();
123 $values[
"online"] = $this->cloud_object->getOnline();
124 $values[
"root_folder"] = $this->cloud_object->getRootFolder();
126 $this->form->setValuesByArray(
$values);
142 $ilTabs = $DIC[
'ilTabs'];
144 $ilTabs->activateTab(
"settings");
148 if ($this->form->checkInput()) {
149 $this->cloud_object->setTitle($this->form->getInput(
"title"));
150 $this->cloud_object->setDescription($this->form->getInput(
"desc"));
153 $this->cloud_object->setRootFolder($this->form->getInput(
"root_folder"));
154 $this->cloud_object->setRootId($this->
getService()->getRootId($this->cloud_object->getRootFolder()));
157 $this->cloud_object->setOnline($this->form->getInput(
"online"));
158 $this->cloud_object->update();
159 ilUtil::sendSuccess(
$lng->txt(
"msg_obj_modified"),
true);
160 $ilCtrl->redirect($this,
'editSettings');
166 $this->form->setValuesByPost();
167 $tpl->setContent($this->form->getHtml());
getMakeOwnPluginSection()
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)