ILIAS  Release_5_0_x_branch Revision 61816
 All Data Structures Namespaces Files Functions Variables Groups Pages
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)

Protected Member Functions

 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 18 of file class.ilCloudPluginItemCreationListGUI.php.

Member Function Documentation

ilCloudPluginItemCreationListGUI::addItemsAfter ( )
protected

Reimplemented from ilCloudPluginListGUI.

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

Referenced by getGroupedListItems().

{
}

+ Here is the caller graph for this function:

ilCloudPluginItemCreationListGUI::addItemsBefore ( )
protected

Reimplemented from ilCloudPluginListGUI.

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

Referenced by getGroupedListItems().

{
}

+ Here is the caller graph for this function:

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

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

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

Referenced by getGroupedListItemsHTML().

{
global $lng;
$this->gl = new ilCloudGroupedListGUI();
$this->addItemsBefore();
$this->gl->setAsDropDown(true);
if ($show_upload) {
// $icon_path = './Modules/Cloud/templates/images/icon_file_s.svg';
$icon_path = ilUtil::getImagePath('icon_dcl_file.svg');
$img = ilUtil::img($icon_path);
$a_ttip = $lng->txt('cld_info_add_file_to_current_directory');
$this->gl->addEntry($img . ' '
. $lng->txt('cld_add_file'), 'javascript:il.CloudFileList.uploadFile();', '_top', '', '', 'il_cld_add_file', $a_ttip, 'bottom center', 'top center', false);
}
if ($show_create_folders) {
// $icon_path = './Modules/Cloud/templates/images/icon_folder_s.svg';
$icon_path = ilUtil::getImagePath('icon_dcl_fold.svg');
$img1 = ilUtil::img($icon_path);
$a_ttip1 = $lng->txt('cld_info_add_folder_to_current_directory');
$this->gl->addEntry($img1 . ' '
. $lng->txt('cld_add_folder'), 'javascript:il.CloudFileList.createFolder();', '_top', '', '', 'il_cld_add_file', $a_ttip1, 'bottom center', 'top center', false);
}
$this->addItemsAfter();
return $this->gl;
}

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

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

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

References $gl, and getGroupedListItems().

{
$gl = $this->getGroupedListItems($showUpload, $showCreateFolders);
return $gl->getHTML();
}

+ Here is the call graph for this function:

Field Documentation

ilCloudPluginItemCreationListGUI::$gl = NULL
protected

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