ILIAS  release_4-4 Revision
All Data Structures Namespaces Files Functions Variables Modules Pages
ilCloudPluginItemCreationListGUI Class Reference

Class ilCloudPluginItemCreationListGUI. More...

+ Inheritance diagram for ilCloudPluginItemCreationListGUI:
+ Collaboration diagram for ilCloudPluginItemCreationListGUI:

Public Member Functions

 getGroupedListItemsHTML ($showUpload=false, $showCreateFolders=false)
 
- Public Member Functions inherited from ilCloudPluginGUI
 __construct ($plugin_service_class)
 
 getPluginObject ()
 
 getPluginHookObject ()
 
 getAdminConfigObject ()
 
 getService ()
 
 txt ($var="")
 
 executeCommand ()
 

Protected Member Functions

 addItemsBefore ()
 
 addItemsAfter ()
 
- Protected Member Functions inherited from ilCloudPluginListGUI
 addItemsBefore ()
 
 addItemsAfter ()
 

Protected Attributes

 $gl = null
 
- Protected Attributes inherited from ilCloudPluginListGUI
 $node = null
 
- Protected Attributes inherited from ilCloudPluginGUI
 $service = null
 

Detailed Description

Class ilCloudPluginItemCreationListGUI.

Class for the drawing of the list "add new item". Can be extended by the plugin if needed.

Author
Timon Amstutz timon.nosp@m..ams.nosp@m.tutz@.nosp@m.ilub.nosp@m..unib.nosp@m.e.ch
Version
$Id$

Definition at line 16 of file class.ilCloudPluginItemCreationListGUI.php.

Member Function Documentation

◆ addItemsAfter()

ilCloudPluginItemCreationListGUI::addItemsAfter ( )
protected

Definition at line 64 of file class.ilCloudPluginItemCreationListGUI.php.

Referenced by getGroupedListItemsHTML().

65  {
66  }
+ Here is the caller graph for this function:

◆ addItemsBefore()

ilCloudPluginItemCreationListGUI::addItemsBefore ( )
protected

Definition at line 60 of file class.ilCloudPluginItemCreationListGUI.php.

Referenced by getGroupedListItemsHTML().

61  {
62  }
+ Here is the caller graph for this function:

◆ getGroupedListItemsHTML()

ilCloudPluginItemCreationListGUI::getGroupedListItemsHTML (   $showUpload = false,
  $showCreateFolders = false 
)
Parameters
bool$delete
ilCloudFileNode$node
Returns
string $html

Definition at line 28 of file class.ilCloudPluginItemCreationListGUI.php.

References $lng, addItemsAfter(), addItemsBefore(), ilUtil\img(), and ilFileUploadGUI\initFileUpload().

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  }
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.
global $lng
Definition: privfeed.php:40
+ Here is the call graph for this function:

Field Documentation

◆ $gl

ilCloudPluginItemCreationListGUI::$gl = null
protected

Definition at line 21 of file class.ilCloudPluginItemCreationListGUI.php.


The documentation for this class was generated from the following file: