4include_once(
"class.ilCloudPluginGUI.php");
 
  234        $ilTabs = 
$DIC[
'ilTabs'];
 
  238        $ilTabs->activateTab(
"content");
 
  255                $tpl->addJavaScript(
"./Modules/Cloud/js/ilCloudFileList.js");
 
  256                $tpl->addJavaScript(
"./Modules/Cloud/js/jquery.address.js");
 
  257                $tpl->addJavascript(
"./Services/UIComponent/AdvancedSelectionList/js/AdvancedSelectionList.js");
 
  258                $tpl->addCss(
"./Modules/Cloud/templates/css/cloud.css");
 
  260                include_once(
"./Services/YUI/classes/class.ilYuiUtil.php");
 
  263                $this->tpl_file_tree = 
new ilTemplate(
"tpl.cloud_file_tree.html", 
true, 
true, 
"Modules/Cloud");
 
  265                $file_tree = 
new ilCloudFileTree($this->getGUIClass()->object->getRootFolder(), $this->getGUIClass()->object->getRootId(), $this->getGUIClass()->object->getId(), $this->getGUIClass()->object->getServiceName());
 
  266                $file_tree->storeFileTreeToSession();
 
  270                $this->tpl_file_tree->setVariable(
"ASYNC_GET_BLOCK", json_encode($this->getGUIClass()->getCtrl()->getLinkTargetByClass(
"ilobjcloudgui", 
"asyncGetBlock", 
true)));
 
  271                $this->tpl_file_tree->setVariable(
"ASYNC_CREATE_FOLDER", json_encode($this->getGUIClass()->getCtrl()->getLinkTargetByClass(
"ilcloudplugincreatefoldergui", 
"asyncCreateFolder", 
true)));
 
  272                $this->tpl_file_tree->setVariable(
"ASYNC_UPLOAD_FILE", json_encode($this->getGUIClass()->getCtrl()->getLinkTargetByClass(
"ilcloudpluginuploadgui", 
"asyncUploadFile", 
true)));
 
  273                $this->tpl_file_tree->setVariable(
"ASYNC_DELETE_ITEM", json_encode($this->getGUIClass()->getCtrl()->getLinkTargetByClass(
"ilcloudplugindeletegui", 
"asyncDeleteItem", 
true)));
 
  274                $this->tpl_file_tree->setVariable(
"ROOT_ID", json_encode($file_tree->getRootNode()->getId()));
 
  275                $this->tpl_file_tree->setVariable(
"ROOT_PATH", json_encode($file_tree->getRootNode()->getPath()));
 
  276                if (isset(
$_POST[
"path"])) {
 
  277                    $this->tpl_file_tree->setVariable(
"CURRENT_PATH", json_encode(
$_POST[
"path"]));
 
  278                    $file_tree->updateFileTree(
$_POST[
"path"]);
 
  279                    $node = $file_tree->getNodeFromPath(
$_POST[
"path"]);
 
  280                    $this->tpl_file_tree->setVariable(
"CURRENT_ID", json_encode($node->getId()));
 
  282                    $this->tpl_file_tree->setVariable(
"CURRENT_PATH", json_encode($file_tree->getRootNode()->getPath()));
 
  283                    $this->tpl_file_tree->setVariable(
"CURRENT_ID", json_encode($file_tree->getRootNode()->getID()));
 
  285                $txt_max_file_size = 
$lng->txt(
"file_notice") . 
" " 
  287                        ->getMaxFileSize() . 
" MB";
 
  288                $this->tpl_file_tree->setVariable(
"MAX_FILE_SIZE", json_encode($txt_max_file_size));
 
  290                $tpl->setContent($this->tpl_file_tree->get());
 
  291                $tpl->setPermanentLink(
"cld", $this->
getGuiClass()->object->getRefId(), 
"_path__endPath");
 
  319        } 
catch (Exception $e) {
 
  321                $this->getGUIClass()->object->setAuthComplete(
false);
 
  322                $this->getGUIClass()->object->doUpdate();
 
  336        $ilToolbar = 
$DIC[
'ilToolbar'];
 
  342        if ($list_gui_html) {
 
  346            $ilToolbar->setId(
'xcld_toolbar');
 
  347            $ilToolbar->addText(
"<div class='xcld_locator'>" . $toolbar_locator->getHtml() . 
"</div>");
 
  348            $ilToolbar->addSeparator();
 
  350            include_once(
"./Services/UIComponent/AdvancedSelectionList/classes/class.ilAdvancedSelectionListGUI.php");
 
  352            $adv->setListTitle(
$lng->txt(
"cld_add_new_item"));
 
  356            if ($ilCloudGroupedListGUI->hasItems()) {
 
  357                $adv->setGroupedList($ilCloudGroupedListGUI);
 
  361            $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(ilTemplate $a_main_tpl=null)
Init YUI Connection module.