ILIAS  release_5-3 Revision v5.3.23-19-g915713cf615
ilDesktopItemGUI Class Reference

Handles add/remove to/from desktop requests. More...

+ Collaboration diagram for ilDesktopItemGUI:

Static Public Member Functions

static addToDesktop ()
 Add desktop item @access public. More...
 
static removeFromDesktop ()
 Remove item from personal desktop @access public. More...
 

Detailed Description

Handles add/remove to/from desktop requests.

Author
Stefan Meyer meyer.nosp@m.@lei.nosp@m.fos.c.nosp@m.om
Version
$Id$

Definition at line 33 of file class.ilDesktopItemGUI.php.

Member Function Documentation

◆ addToDesktop()

static ilDesktopItemGUI::addToDesktop ( )
static

Add desktop item @access public.

Definition at line 39 of file class.ilDesktopItemGUI.php.

40 {
41 global $DIC;
42
43 $ilUser = $DIC->user();
44
45 if ($_GET["item_ref_id"] and $_GET["type"]) {
46 ilObjUser::_addDesktopItem($ilUser->getId(), (int) $_GET['item_ref_id'], $_GET['type']);
47 } else {
48 if ($_POST["items"]) {
49 foreach ($_POST["items"] as $item) {
50 $type = ilObject::_lookupType($item, true);
52 }
53 }
54 }
55 return true;
56 }
$_GET["client_id"]
$_POST["username"]
static _addDesktopItem($a_usr_id, $a_item_id, $a_type, $a_par="")
add an item to user's personal desktop
static _lookupType($a_id, $a_reference=false)
lookup object type
$type
global $DIC
Definition: saml.php:7
$ilUser
Definition: imgupload.php:18

References $_GET, $_POST, $DIC, $ilUser, $type, ilObjUser\_addDesktopItem(), and ilObject\_lookupType().

Referenced by ilObjBibliographicGUI\addToDeskObject(), ilObjBlogGUI\addToDeskObject(), ilObjForumGUI\addToDeskObject(), ilObjSessionGUI\addToDeskObject(), ilContainerGUI\addToDeskObject(), ilPDSelectedItemsBlockGUI\addToDeskObject(), and ilSearchBaseGUI\addToDeskObject().

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ removeFromDesktop()

static ilDesktopItemGUI::removeFromDesktop ( )
static

Remove item from personal desktop @access public.

Definition at line 62 of file class.ilDesktopItemGUI.php.

63 {
64 global $DIC;
65
66 $ilUser = $DIC->user();
67
68 if ($_GET["item_ref_id"] and $_GET["type"]) {
69 ilObjUser::_dropDesktopItem($ilUser->getId(), (int) $_GET['item_ref_id'], $_GET['type']);
70 } else {
71 if ($_POST["items"]) {
72 foreach ($_POST["items"] as $item) {
73 $type = ilObject::_lookupType($item, true);
75 }
76 }
77 }
78 return true;
79 }
static _dropDesktopItem($a_usr_id, $a_item_id, $a_type)
drop an item from user's personal desktop

References $_GET, $_POST, $DIC, $ilUser, $type, ilObjUser\_dropDesktopItem(), and ilObject\_lookupType().

Referenced by ilObjBibliographicGUI\removeFromDeskObject(), ilObjBlogGUI\removeFromDeskObject(), ilObjForumGUI\removeFromDeskObject(), ilObjSessionGUI\removeFromDeskObject(), ilContainerGUI\removeFromDeskObject(), ilPDSelectedItemsBlockGUI\removeFromDeskObject(), and ilSearchBaseGUI\removeFromDeskObject().

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

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