ILIAS  release_5-1 Revision 5.0.0-5477-g43f3e3fab5f
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 ()
 
 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

Reimplemented from ilCloudPluginListGUI.

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

114{ }

Referenced by addSelectionListItems().

+ Here is the caller graph for this function:

◆ addItemsBefore()

ilCloudPluginActionListGUI::addItemsBefore ( )
protected

Reimplemented from ilCloudPluginListGUI.

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

111{ }

Referenced by addSelectionListItems().

+ Here is the caller graph for this function:

◆ addSelectionListItems()

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

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

74 {
75 global $lng;
76 $this->addItemsBefore();
77 if (($delete_item && !$this->node->getIsDir()) || ($delete_folder && $this->node->getIsDir())) {
78 $this->selection_list->addItem($lng->txt("delete"), "delete_item", "javascript:il.CloudFileList.deleteItem(\'" . $this->node->getId()
79 . "\');");
80 }
81
82 $this->addItemsAfter();
83 }
global $lng
Definition: privfeed.php:40

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

Referenced by asyncGetContent().

+ 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 91 of file class.ilCloudPluginActionListGUI.php.

91 {
92 global $lng;
93 $this->node = $node;
94 include_once("./Services/UIComponent/AdvancedSelectionList/classes/class.ilAdvancedSelectionListGUI.php");
95 $this->selection_list = new ilAdvancedSelectionListGUI();
96 $this->selection_list->setId($this->node->getId());
97 $this->selection_list->setListTitle($lng->txt("actions"));
98 $this->selection_list->setItemLinkClass("xsmall");
99
100 $this->addSelectionListItems($delete_item, $delete_folder);
101 if ($this->selection_list->getItems() != NULL) {
102 echo $this->selection_list->getHTML(true);
103 exit;
104 } else {
105 echo $lng->txt("empty");
106 exit;
107 }
108 }
User interface class for advanced drop-down selection lists.
addSelectionListItems($delete_item, $delete_folder)
exit
Definition: login.php:54

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

+ Here is the call graph for this function:

◆ checkHasAction()

ilCloudPluginActionListGUI::checkHasAction ( )
protected

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

117{ }

◆ getAsyncMode()

ilCloudPluginActionListGUI::getAsyncMode ( )
protected
Returns
bool

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

123 {
124 return true;
125 }

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: