ILIAS  release_5-2 Revision v5.2.25-18-g3f80b828510
ilCloudPluginActionListGUI Class Reference

Class ilCloudPluginActionListGUI. More...

+ Inheritance diagram for ilCloudPluginActionListGUI:
+ Collaboration diagram for ilCloudPluginActionListGUI:

Public Member Functions

 asyncGetContent ($delete_item=false, $delete_folder=false, ilCloudFileNode $node)
 
- Public Member Functions inherited from ilCloudPluginGUI
 __construct ($plugin_service_class)
 
 getPluginObject ()
 
 getPluginHookObject ()
 
 getAdminConfigObject ()
 
 getService ()
 
 txt ($var="")
 
 executeCommand ()
 

Protected Member Functions

 addSelectionListItems ($delete_item, $delete_folder)
 
 addItemsBefore ()
 
 addItemsAfter ()
 
 checkHasAction ()
 
 getAsyncMode ()
 
- Protected Member Functions inherited from ilCloudPluginListGUI
 addItemsBefore ()
 
 addItemsAfter ()
 

Protected Attributes

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

Detailed Description

Class ilCloudPluginActionListGUI.

Basic functionality of the action list. Can be extended to define addidtional actions by the plugin. Note that the list is loaded asyncronically by default. Disable if not wanted.

Author
Timon Amstutz timon.nosp@m..ams.nosp@m.tutz@.nosp@m.ilub.nosp@m..unib.nosp@m.e.ch
Fabian Schmid fs@st.nosp@m.uder.nosp@m.-raim.nosp@m.ann..nosp@m.ch
Version
$Id:

Definition at line 19 of file class.ilCloudPluginActionListGUI.php.

Member Function Documentation

◆ addItemsAfter()

ilCloudPluginActionListGUI::addItemsAfter ( )
protected

Definition at line 118 of file class.ilCloudPluginActionListGUI.php.

Referenced by addSelectionListItems().

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

◆ addItemsBefore()

ilCloudPluginActionListGUI::addItemsBefore ( )
protected

Definition at line 115 of file class.ilCloudPluginActionListGUI.php.

Referenced by addSelectionListItems().

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

◆ addSelectionListItems()

ilCloudPluginActionListGUI::addSelectionListItems (   $delete_item,
  $delete_folder 
)
protected
Parameters
$delete_item
$delete_folder

Definition at line 76 of file class.ilCloudPluginActionListGUI.php.

References $DIC, $lng, addItemsAfter(), and addItemsBefore().

Referenced by asyncGetContent().

76  {
77  global $DIC;
78  $lng = $DIC['lng'];
79  $this->addItemsBefore();
80  if (($delete_item && !$this->node->getIsDir()) || ($delete_folder && $this->node->getIsDir())) {
81  $this->selection_list->addItem($lng->txt("delete"), "delete_item", "javascript:il.CloudFileList.deleteItem(\'" . $this->node->getId()
82  . "\');");
83  }
84 
85  $this->addItemsAfter();
86  }
global $lng
Definition: privfeed.php:17
global $DIC
+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ asyncGetContent()

ilCloudPluginActionListGUI::asyncGetContent (   $delete_item = false,
  $delete_folder = false,
ilCloudFileNode  $node 
)
Parameters
bool$delete_item
bool$delete_folder
ilCloudFileNode$node

Definition at line 94 of file class.ilCloudPluginActionListGUI.php.

References $DIC, $lng, $node, addSelectionListItems(), and exit.

94  {
95  global $DIC;
96  $lng = $DIC['lng'];
97  $this->node = $node;
98  include_once("./Services/UIComponent/AdvancedSelectionList/classes/class.ilAdvancedSelectionListGUI.php");
99  $this->selection_list = new ilAdvancedSelectionListGUI();
100  $this->selection_list->setId($this->node->getId());
101  $this->selection_list->setListTitle($lng->txt("actions"));
102  $this->selection_list->setItemLinkClass("xsmall");
103 
104  $this->addSelectionListItems($delete_item, $delete_folder);
105  if ($this->selection_list->getItems() != NULL) {
106  echo $this->selection_list->getHTML(true);
107  exit;
108  } else {
109  echo $lng->txt("empty");
110  exit;
111  }
112  }
addSelectionListItems($delete_item, $delete_folder)
User interface class for advanced drop-down selection lists.
global $lng
Definition: privfeed.php:17
global $DIC
+ Here is the call graph for this function:

◆ checkHasAction()

ilCloudPluginActionListGUI::checkHasAction ( )
protected

Definition at line 121 of file class.ilCloudPluginActionListGUI.php.

121 { }

◆ getAsyncMode()

ilCloudPluginActionListGUI::getAsyncMode ( )
protected
Returns
bool

Definition at line 127 of file class.ilCloudPluginActionListGUI.php.

127  {
128  return true;
129  }

Field Documentation

◆ $node

ilCloudPluginActionListGUI::$node = NULL
protected

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

Referenced by asyncGetContent().

◆ $selection_list

ilCloudPluginActionListGUI::$selection_list
protected

Definition at line 24 of file class.ilCloudPluginActionListGUI.php.


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