ILIAS  Release_4_4_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)

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

Member Function Documentation

ilCloudPluginItemCreationListGUI::addItemsAfter ( )
protected

Reimplemented from ilCloudPluginListGUI.

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

Referenced by getGroupedListItemsHTML().

{
}

+ Here is the caller graph for this function:

ilCloudPluginItemCreationListGUI::addItemsBefore ( )
protected

Reimplemented from ilCloudPluginListGUI.

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

Referenced by getGroupedListItemsHTML().

{
}

+ Here is the caller graph for this function:

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().

{
global $lng;
include_once("./Services/UIComponent/GroupedList/classes/class.ilGroupedListGUI.php");
$this->gl = new ilGroupedListGUI();
$this->addItemsBefore();
if ($showUpload)
{
include_once("Services/FileUpload/classes/class.ilFileUploadGUI.php");
$icon_path = "./Modules/Cloud/templates/images/icon_file_s.png";
$this->gl->addEntry(ilUtil::img($icon_path) . " " .$lng->txt("cld_add_file"), "javascript:il.CloudFileList.uploadFile();",
"_top", "", "", "il_cld_add_file", $lng->txt("cld_info_add_file_to_current_directory"), "bottom center", "top center", false);
}
if ($showCreateFolders)
{
$icon_path = "./Modules/Cloud/templates/images/icon_folder_s.png";
$this->gl->addEntry(ilUtil::img($icon_path)." ".$lng->txt("cld_add_folder"), "javascript:il.CloudFileList.createFolder();",
"_top", "", "", "il_cld_add_folder", $lng->txt("cld_info_add_folder_to_current_directory"), "bottom center", "top center", false);
}
$this->addItemsAfter();
return $this->gl->getHTML();
}

+ Here is the call graph for this function:

Field Documentation

ilCloudPluginItemCreationListGUI::$gl = null
protected

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


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