ILIAS  release_4-4 Revision
All Data Structures Namespaces Files Functions Variables Modules Pages
class.ilCloudPluginItemCreationListGUI.php
Go to the documentation of this file.
1 <?php
2 /* Copyright (c) 1998-2010 ILIAS open source, Extended GPL, see docs/LICENSE */
3 
4 include_once("class.ilCloudPluginListGUI.php");
5 
17 {
21  protected $gl = null;
22 
28  public function getGroupedListItemsHTML($showUpload = false, $showCreateFolders = false)
29  {
30 
31 
32  global $lng;
33 
34  include_once("./Services/UIComponent/GroupedList/classes/class.ilGroupedListGUI.php");
35  $this->gl = new ilGroupedListGUI();
36 
37  $this->addItemsBefore();
38 
39  if ($showUpload)
40  {
41  include_once("Services/FileUpload/classes/class.ilFileUploadGUI.php");
43  $icon_path = "./Modules/Cloud/templates/images/icon_file_s.png";
44  $this->gl->addEntry(ilUtil::img($icon_path) . " " .$lng->txt("cld_add_file"), "javascript:il.CloudFileList.uploadFile();",
45  "_top", "", "", "il_cld_add_file", $lng->txt("cld_info_add_file_to_current_directory"), "bottom center", "top center", false);
46  }
47 
48  if ($showCreateFolders)
49  {
50  $icon_path = "./Modules/Cloud/templates/images/icon_folder_s.png";
51  $this->gl->addEntry(ilUtil::img($icon_path)." ".$lng->txt("cld_add_folder"), "javascript:il.CloudFileList.createFolder();",
52  "_top", "", "", "il_cld_add_folder", $lng->txt("cld_info_add_folder_to_current_directory"), "bottom center", "top center", false);
53  }
54 
55  $this->addItemsAfter();
56 
57  return $this->gl->getHTML();
58  }
59 
60  protected function addItemsBefore()
61  {
62  }
63 
64  protected function addItemsAfter()
65  {
66  }
67 }
68 ?>
static initFileUpload()
Initializes the file upload and loads the needed javascripts and styles.
static img($a_src, $a_alt="", $a_width="", $a_height="", $a_border=0, $a_id="")
Build img tag.
Grouped list GUI class.
Class ilCloudPluginItemCreationListGUI.
global $lng
Definition: privfeed.php:40
Class ilCloudPluginListGUI.
getGroupedListItemsHTML($showUpload=false, $showCreateFolders=false)