ILIAS  release_5-3 Revision v5.3.23-19-g915713cf615
ilCloudPluginItemCreationListGUI Class Reference

Class ilCloudPluginItemCreationListGUI. More...

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

Public Member Functions

 getGroupedListItemsHTML ($showUpload=false, $showCreateFolders=false)
 
 getGroupedListItems ($show_upload=false, $show_create_folders=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 19 of file class.ilCloudPluginItemCreationListGUI.php.

Member Function Documentation

◆ addItemsAfter()

ilCloudPluginItemCreationListGUI::addItemsAfter ( )
protected

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

Referenced by getGroupedListItems().

87  {
88  }
+ Here is the caller graph for this function:

◆ addItemsBefore()

ilCloudPluginItemCreationListGUI::addItemsBefore ( )
protected

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

Referenced by getGroupedListItems().

82  {
83  }
+ Here is the caller graph for this function:

◆ getGroupedListItems()

ilCloudPluginItemCreationListGUI::getGroupedListItems (   $show_upload = false,
  $show_create_folders = false 
)
Parameters
bool$show_upload
bool$show_create_folders
Returns
ilCloudGroupedListGUI

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

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

Referenced by getGroupedListItemsHTML().

49  {
50  global $DIC;
51  $lng = $DIC['lng'];
52 
53  $this->gl = new ilCloudGroupedListGUI();
54 
55  $this->addItemsBefore();
56  $this->gl->setAsDropDown(true);
57 
58  if ($show_upload) {
60  $icon_path = ilUtil::getImagePath('icon_dcl_file.svg');
61  $img = ilUtil::img($icon_path);
62  $a_ttip = $lng->txt('cld_info_add_file_to_current_directory');
63  $this->gl->addEntry($img . ' '
64  . $lng->txt('cld_add_file'), '#', '_top', 'javascript:il.CloudFileList.uploadFile();', '', 'il_cld_add_file', $a_ttip, 'bottom center', 'top center', false);
65  }
66 
67  if ($show_create_folders) {
68  $icon_path = ilUtil::getImagePath('icon_dcl_fold.svg');
69  $img1 = ilUtil::img($icon_path);
70  $a_ttip1 = $lng->txt('cld_info_add_folder_to_current_directory');
71  $this->gl->addEntry($img1 . ' '
72  . $lng->txt('cld_add_folder'), '#', '_top', 'javascript:il.CloudFileList.createFolder();', '', 'il_cld_add_file', $a_ttip1, 'bottom center', 'top center', false);
73  }
74 
75  $this->addItemsAfter();
76 
77  return $this->gl;
78  }
static initFileUpload()
Initializes the file upload and loads the needed javascripts and styles.
global $DIC
Definition: saml.php:7
Class ilCloudGroupedListGUI.
static getImagePath($img, $module_path="", $mode="output", $offline=false)
get image path (for images located in a template directory)
static img($a_src, $a_alt="", $a_width="", $a_height="", $a_border=0, $a_id="", $a_class="")
Build img tag.
global $lng
Definition: privfeed.php:17
+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ getGroupedListItemsHTML()

ilCloudPluginItemCreationListGUI::getGroupedListItemsHTML (   $showUpload = false,
  $showCreateFolders = false 
)
Parameters
bool$showUpload
bool$showCreateFolders
Returns
string

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

References $gl, and getGroupedListItems().

35  {
36  $gl = $this->getGroupedListItems($showUpload, $showCreateFolders);
37 
38  return $gl->getHTML();
39  }
getGroupedListItems($show_upload=false, $show_create_folders=false)
+ Here is the call graph for this function:

Field Documentation

◆ $gl

ilCloudPluginItemCreationListGUI::$gl = null
protected

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