ILIAS  release_5-4 Revision v5.4.26-12-gabc799a52e6
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 123 of file class.ilCloudPluginActionListGUI.php.

Referenced by addSelectionListItems().

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

◆ addItemsBefore()

ilCloudPluginActionListGUI::addItemsBefore ( )
protected

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

Referenced by addSelectionListItems().

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

◆ addSelectionListItems()

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

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

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

Referenced by asyncGetContent().

78  {
79  global $DIC;
80  $lng = $DIC['lng'];
81  $this->addItemsBefore();
82  if (($delete_item && !$this->node->getIsDir()) || ($delete_folder && $this->node->getIsDir())) {
83  $this->selection_list->addItem($lng->txt("delete"), "delete_item", "javascript:il.CloudFileList.deleteItem(\'" . $this->node->getId()
84  . "\');");
85  }
86 
87  $this->addItemsAfter();
88  }
global $DIC
Definition: saml.php:7
$lng
+ 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 96 of file class.ilCloudPluginActionListGUI.php.

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

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

◆ checkHasAction()

ilCloudPluginActionListGUI::checkHasAction ( )
protected

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

129  {
130  }

◆ getAsyncMode()

ilCloudPluginActionListGUI::getAsyncMode ( )
protected
Returns
bool

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

137  {
138  return true;
139  }

Field Documentation

◆ $node

ilCloudPluginActionListGUI::$node = null
protected

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

Referenced by asyncGetContent().

◆ $selection_list

ilCloudPluginActionListGUI::$selection_list
protected

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


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