4 include_once(
"./Services/JSON/classes/class.ilJsonUtil.php");
5 include_once(
"./Modules/Cloud/exceptions/class.ilCloudException.php");
32 $response->content = $this->form->getHTML();
35 $response->message =
$tpl->getMessageHTML($e->getMessage(),
"failure");
37 header(
'Content-type: application/json');
53 include_once(
"./Services/Form/classes/class.ilPropertyFormGUI.php");
55 $this->form->setId(
"cld_create_folder");
58 $name->setRequired(
true);
59 $this->form->addItem(
$name);
64 $this->form->addItem(
$id);
67 $this->form->addCommandButton(
"createFolder",
$lng->txt(
"cld_create_folder"));
68 $this->form->addCommandButton(
"cancel",
$lng->txt(
"cancel"));
70 $this->form->setTitle(
$lng->txt(
"cld_create_folder"));
71 $this->form->setFormAction(
$ilCtrl->getFormAction($this));
72 $this->form->setTarget(
"cld_blank_target");
90 include_once(
"class.ilCloudFileTree.php");
92 $new_node = $file_tree->addFolderToService(
$_POST[
"parent_folder_id"],
$_POST[
"folder_name"]);
93 $response->folder_id = $new_node->getId();
94 $response->folder_path = $new_node->getPath();
96 $response->message =
$tpl->getMessageHTML(
$lng->txt(
"cld_folder_created"),
"success");
98 $response->message =
$tpl->getMessageHTML($e->getMessage(),
"failure");
100 echo "<script language='javascript' type='text/javascript'>window.parent.il.CloudFileList.afterCreateFolder(" .
ilJsonUtil::encode(
$response) .
");</script>";
112 echo "<script language='javascript' type='text/javascript'>window.parent.il.CloudFileList.afterCreateFolder(" .
ilJsonUtil::encode(
$response) .
");</script>";
Class ilCloudPluginCreateFolderGUI.
static getFileTreeFromSession()
initCreateFolder()
Init form.
if(!array_key_exists('StateId', $_REQUEST)) $id
static encode($mixed, $suppress_native=false)
createFolder()
Update properties.
This class represents a text property in a property form.
cancel()
Update properties.