4 include_once(
"./Services/JSON/classes/class.ilJsonUtil.php");
5 include_once(
"./Modules/Cloud/exceptions/class.ilCloudException.php");
31 $response->content = $this->form->getHTML();
36 header(
'Content-type: application/json');
50 $ilCtrl = $DIC[
'ilCtrl'];
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);
63 $id->setValue(
$_POST[
"id"]);
64 $this->form->addItem($id);
66 $this->form->addCommandButton(
"createFolder",
$lng->txt(
"cld_create_folder"));
67 $this->form->addCommandButton(
"cancel",
$lng->txt(
"cancel"));
69 $this->form->setTitle(
$lng->txt(
"cld_create_folder"));
70 $this->form->setFormAction($ilCtrl->getFormAction($this));
71 $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();
100 echo
"<script language='javascript' type='text/javascript'>window.parent.il.CloudFileList.afterCreateFolder(" .
ilJsonUtil::encode(
$response) .
");</script>";
113 echo
"<script language='javascript' type='text/javascript'>window.parent.il.CloudFileList.afterCreateFolder(" .
ilJsonUtil::encode(
$response) .
");</script>";
Class ilCloudPluginCreateFolderGUI.
static getFileTreeFromSession()
static getSystemMessageHTML($a_txt, $a_type="info")
Get HTML for a system message.
initCreateFolder()
Init form.
static encode($mixed, $suppress_native=false)
createFolder()
Update properties.
cancel()
Update properties.
if($DIC->http() ->request() ->getMethod()=="GET" &&isset($DIC->http() ->request() ->getQueryParams()['tex'])) $tpl