ILIAS  Release_4_4_x_branch Revision 61816
 All Data Structures Namespaces Files Functions Variables Groups 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)

Protected Member Functions

 addSelectionListItems ($delete_item, $delete_folder)
 addItemsBefore ()
 addItemsAfter ()
 checkHasAction ()
 getAsyncMode ()

Protected Attributes

 $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
Version
$Id:

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

Member Function Documentation

ilCloudPluginActionListGUI::addItemsAfter ( )
protected

Reimplemented from ilCloudPluginListGUI.

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

Referenced by addSelectionListItems().

{}

+ Here is the caller graph for this function:

ilCloudPluginActionListGUI::addItemsBefore ( )
protected

Reimplemented from ilCloudPluginListGUI.

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

Referenced by addSelectionListItems().

{}

+ Here is the caller graph for this function:

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

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

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

Referenced by asyncGetContent().

{
global $lng;
$this->addItemsBefore();
if (($delete_item && !$this->node->getIsDir()) || ($delete_folder && $this->node->getIsDir()))
{
$this->selection_list->addItem($lng->txt("delete"), "delete_item", "javascript:il.CloudFileList.deleteItem(\'" . $this->node->getId() . "\');");
}
$this->addItemsAfter();
}

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

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

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

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

{
global $lng;
$this->node = $node;
include_once("./Services/UIComponent/AdvancedSelectionList/classes/class.ilAdvancedSelectionListGUI.php");
$this->selection_list = new ilAdvancedSelectionListGUI();
$this->selection_list->setId($this->node->getId());
$this->selection_list->setListTitle($lng->txt("actions"));
$this->selection_list->setItemLinkClass("xsmall");
$this->addSelectionListItems($delete_item , $delete_folder);
if ($this->selection_list->getItems() != null)
{
echo $this->selection_list->getHTML(true);
} else
{
echo $lng->txt("empty");
}
}

+ Here is the call graph for this function:

ilCloudPluginActionListGUI::checkHasAction ( )
protected

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

{}
ilCloudPluginActionListGUI::getAsyncMode ( )
protected

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

{
return true;
}

Field Documentation

ilCloudPluginActionListGUI::$node = null
protected

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

Referenced by asyncGetContent().


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