4include_once(
"class.ilCloudPluginGUI.php");
 
  214                $ilTabs = 
$DIC[
'ilTabs'];
 
  218                $ilTabs->activateTab(
"content");
 
  235                                $tpl->addJavaScript(
"./Modules/Cloud/js/ilCloudFileList.js");
 
  236                                $tpl->addJavaScript(
"./Modules/Cloud/js/jquery.address.js");
 
  237                                $tpl->addJavascript(
"./Services/UIComponent/AdvancedSelectionList/js/AdvancedSelectionList.js");
 
  238                                $tpl->addCss(
"./Modules/Cloud/templates/css/cloud.css");
 
  240                                include_once(
"./Services/YUI/classes/class.ilYuiUtil.php");
 
  243                                $this->tpl_file_tree = 
new ilTemplate(
"tpl.cloud_file_tree.html", 
true, 
true, 
"Modules/Cloud");
 
  245                                $file_tree = 
new ilCloudFileTree($this->getGUIClass()->object->getRootFolder(), $this->getGUIClass()->object->getRootId(), $this->getGUIClass()->object->getId(), $this->getGUIClass()->object->getServiceName());
 
  246                                $file_tree->storeFileTreeToSession();
 
  250                                $this->tpl_file_tree->setVariable(
"ASYNC_GET_BLOCK", json_encode($this->getGUIClass()->getCtrl()->getLinkTargetByClass(
"ilobjcloudgui", 
"asyncGetBlock", 
true)));
 
  251                                $this->tpl_file_tree->setVariable(
"ASYNC_CREATE_FOLDER", json_encode($this->getGUIClass()->getCtrl()->getLinkTargetByClass(
"ilcloudplugincreatefoldergui", 
"asyncCreateFolder", 
true)));
 
  252                                $this->tpl_file_tree->setVariable(
"ASYNC_UPLOAD_FILE", json_encode($this->getGUIClass()->getCtrl()->getLinkTargetByClass(
"ilcloudpluginuploadgui", 
"asyncUploadFile", 
true)));
 
  253                                $this->tpl_file_tree->setVariable(
"ASYNC_DELETE_ITEM", json_encode($this->getGUIClass()->getCtrl()->getLinkTargetByClass(
"ilcloudplugindeletegui", 
"asyncDeleteItem", 
true)));
 
  254                                $this->tpl_file_tree->setVariable(
"ROOT_ID", json_encode($file_tree->getRootNode()->getId()));
 
  255                                $this->tpl_file_tree->setVariable(
"ROOT_PATH", json_encode($file_tree->getRootNode()->getPath()));
 
  256                                if (isset(
$_POST[
"path"])) {
 
  257                                        $this->tpl_file_tree->setVariable(
"CURRENT_PATH", json_encode(
$_POST[
"path"]));
 
  258                                        $file_tree->updateFileTree(
$_POST[
"path"]);
 
  259                                        $node = $file_tree->getNodeFromPath(
$_POST[
"path"]);
 
  260                                        $this->tpl_file_tree->setVariable(
"CURRENT_ID", json_encode($node->getId()));
 
  262                                        $this->tpl_file_tree->setVariable(
"CURRENT_PATH", json_encode($file_tree->getRootNode()->getPath()));
 
  263                                        $this->tpl_file_tree->setVariable(
"CURRENT_ID", json_encode($file_tree->getRootNode()->getID()));
 
  265                                $txt_max_file_size = 
$lng->txt(
"file_notice") . 
" " 
  267                                                ->getMaxFileSize() . 
" MB";
 
  268                                $this->tpl_file_tree->setVariable(
"MAX_FILE_SIZE", json_encode($txt_max_file_size));
 
  270                                $tpl->setContent($this->tpl_file_tree->get());
 
  271                                $tpl->setPermanentLink(
"cld", $this->
getGuiClass()->object->getRefId(), 
"_path__endPath");
 
  299                } 
catch (Exception $e) {
 
  301                                $this->getGUIClass()->object->setAuthComplete(
false);
 
  302                                $this->getGUIClass()->object->doUpdate();
 
  315                $ilToolbar = 
$DIC[
'ilToolbar'];
 
  321                if ($list_gui_html) {
 
  325                        $ilToolbar->setId(
'xcld_toolbar');
 
  326                        $ilToolbar->addText(
"<div class='xcld_locator'>" . $toolbar_locator->getHtml() . 
"</div>");
 
  327                        $ilToolbar->addSeparator();
 
  329                        include_once(
"./Services/UIComponent/AdvancedSelectionList/classes/class.ilAdvancedSelectionListGUI.php");
 
  331                        $adv->setListTitle(
$lng->txt(
"cld_add_new_item"));
 
  335                        if ($ilCloudGroupedListGUI->hasItems()) {
 
  336                                $adv->setGroupedList($ilCloudGroupedListGUI);
 
  340                        $ilToolbar->addText($adv->getHTML());
 
An exception for terminatinating execution or to throw for unit testing.
User interface class for advanced drop-down selection lists.
static checkServiceActive($name)
static getPluginClass($service_name, $obj_id)
static getItemCreationListGUIClass(ilCloudPluginService $plugin_service_class)
const AUTHENTICATION_FAILED
static getLinkToFolder(ilCloudFileNode $node)
Class ilCloudPluginInitGUI.
setPermFoldersVisible($perm_folders_visible)
initGUI(ilObjCloudGUI $gui_class, $perm_create_folder, $perm_upload_items, $perm_delete_files, $perm_delete_folders, $perm_download, $perm_files_visible, $perm_folders_visible)
setPermDeleteFiles($perm_delete_files)
setPermCreateFolders($perm_create_folders)
setPermDownload($perm_download)
setPermUploadItems($perm_upload_items)
setPermFilesVisible($perm_files_visible)
setPermDeleteFolders($perm_delete_folders)
setTplFileTree($tpl_file_tree)
special template class to simplify handling of ITX/PEAR
static sendFailure($a_info="", $a_keep=false)
Send Failure Message to Screen.
static initConnection()
Init YUI Connection module.