4include_once(
"./Services/Form/classes/class.ilPropertyFormGUI.php");
 
    5include_once(
"class.ilCloudUtil.php");
 
   33        $this->cloud_object = $object;
 
   43        $ilTabs = 
$DIC[
'ilTabs'];
 
   46        $ilTabs->activateTab(
"settings");
 
   51            $tpl->setContent($this->form->getHTML());
 
   52        } 
catch (Exception $e) {
 
   67        $ti->setRequired(
true);
 
   68        $this->form->addItem($ti);
 
   72        $this->form->addItem($ta);
 
   76        $this->form->addItem($cb);
 
   79        if (!$this->cloud_object->currentUserIsOwner()) {
 
   80            $folder->setDisabled(
true);
 
   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();
 
  160                $ilCtrl->redirect($this, 
'editSettings');
 
  162        } 
catch (Exception $e) {
 
  166        $this->form->setValuesByPost();
 
  167        $tpl->setContent($this->form->getHtml());
 
An exception for terminatinating execution or to throw for unit testing.
Class ilCloudPluginSettingsGUI.
editSettings()
Edit Settings.
getPluginSettingsValues(&$values)
getMakeOwnPluginSection()
getSettingsValues()
Get values for edit Settings form.
updateSettings()
Update Settings.
setCloudObject(ilObjCloud $object)
static normalizePath($path)
This class represents a text area property in a property form.
This class represents a text property in a property form.
static sendSuccess($a_info="", $a_keep=false)
Send Success Message to Screen.
static sendFailure($a_info="", $a_keep=false)
Send Failure Message to Screen.