ILIAS  release_6 Revision v6.24-5-g0c8bfefb3b8
All Data Structures Namespaces Files Functions Variables Modules Pages
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 18 of file class.ilCloudPluginActionListGUI.php.

Member Function Documentation

◆ addItemsAfter()

ilCloudPluginActionListGUI::addItemsAfter ( )
protected

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

Referenced by addSelectionListItems().

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

◆ addItemsBefore()

ilCloudPluginActionListGUI::addItemsBefore ( )
protected

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

Referenced by addSelectionListItems().

118  {
119  }
+ 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().

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

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

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

◆ checkHasAction()

ilCloudPluginActionListGUI::checkHasAction ( )
protected

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

128  {
129  }

◆ getAsyncMode()

ilCloudPluginActionListGUI::getAsyncMode ( )
protected
Returns
bool

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

136  {
137  return true;
138  }

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: