4 include_once(
"./Services/Form/classes/class.ilPropertyFormGUI.php");
5 include_once(
"class.ilCloudUtil.php");
39 $DIC->language()->loadLanguageModule(
'content');
40 $DIC->language()->loadLanguageModule(
'obj');
41 $DIC->language()->loadLanguageModule(
'cntr');
50 $this->cloud_object = $object;
61 $ilTabs = $DIC[
'ilTabs'];
63 $ilTabs->activateTab(
"settings");
68 $tpl->setContent($this->form->getHTML());
88 $ti->setRequired(
true);
89 $this->form->addItem($ti);
93 $this->form->addItem($ta);
97 $this->form->addItem($cb);
100 if (!$this->cloud_object->currentUserIsOwner()) {
101 $folder->setDisabled(
true);
102 $folder->setInfo(
$lng->txt(
"cld_only_owner_has_permission_to_change_root_path"));
105 $folder->setMaxLength(255);
106 $folder->setSize(50);
107 $this->form->addItem($folder);
114 $this->form->addCommandButton(
"updateSettings",
$lng->txt(
"save"));
116 $this->form->setTitle(
$lng->txt(
"cld_edit_Settings"));
117 $this->form->setFormAction(
$ilCtrl->getFormActionByClass(
"ilCloudPluginSettingsGUI"));
130 $section->setTitle($this->cloud_object->getServiceName() .
" " .
$lng->txt(
"cld_service_specific_settings"));
151 $section_appearance->setTitle($DIC->language()->txt(
'cont_presentation'));
152 $this->form->addItem($section_appearance);
153 $DIC->object()->commonSettings()->legacyForm($this->form, $this->cloud_object)->addTileImage();
171 $values[
"title"] = $this->cloud_object->getTitle();
172 $values[
"desc"] = $this->cloud_object->getDescription();
173 $values[
"online"] = $this->cloud_object->getOnline();
174 $values[
"root_folder"] = $this->cloud_object->getRootFolder();
176 $this->form->setValuesByArray($values,
true);
197 $ilTabs = $DIC[
'ilTabs'];
199 $ilTabs->activateTab(
"settings");
204 if ($this->form->checkInput()) {
205 $this->cloud_object->setTitle($this->form->getInput(
"title"));
206 $this->cloud_object->setDescription($this->form->getInput(
"desc"));
209 $this->cloud_object->setRootFolder($this->form->getInput(
"root_folder"));
210 $this->cloud_object->setRootId($this->
getService()->getRootId($this->cloud_object->getRootFolder()));
213 $this->cloud_object->setOnline($this->form->getInput(
"online"));
214 $this->cloud_object->update();
216 $DIC->object()->commonSettings()->legacyForm($this->form, $this->cloud_object)->saveTileImage();
218 ilUtil::sendSuccess(
$lng->txt(
"msg_obj_modified"),
true);
219 $ilCtrl->redirect($this,
'editSettings');
225 $this->form->setValuesByPost();
226 $tpl->setContent($this->form->getHtml());
getMakeOwnPluginSection()
__construct($plugin_service_class)
ilCloudPluginSettingsGUI constructor.
if(isset($_FILES['img_file']['size']) && $_FILES['img_file']['size'] > 0) $tpl
Class ilCloudPluginSettingsGUI.
editSettings()
Edit Settings.
getPluginSettingsValues(&$values)
updateSettings()
Update Settings.
static sendFailure($a_info="", $a_keep=false)
Send Failure Message to Screen.
setCloudObject(ilObjCloud $object)
__construct(Container $dic, ilPlugin $plugin)
This class represents a text area property in a property form.
getSettingsValues()
Get values for edit Settings form.
static normalizePath($path)
initPresentationSection()