ILIAS  Release_4_0_x_branch Revision 61816
 All Data Structures Namespaces Files Functions Variables Groups Pages
ilDesktopItemGUI Class Reference

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

+ Collaboration diagram for ilDesktopItemGUI:

Static Public Member Functions

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

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

static ilDesktopItemGUI::addToDesktop ( )
static

Add desktop item public.

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

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

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

{
global $ilUser;
if ($_GET["item_ref_id"] and $_GET["type"])
{
ilObjUser::_addDesktopItem($ilUser->getId(),(int) $_GET['item_ref_id'], $_GET['type']);
}
else
{
if ($_POST["items"])
{
foreach ($_POST["items"] as $item)
{
$type = ilObject::_lookupType($item, true);
ilObjUser::_addDesktopItem($ilUser->getId(),$item,$type);
}
}
}
return true;
}

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

static ilDesktopItemGUI::removeFromDesktop ( )
static

Remove item from personal desktop public.

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

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

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

{
global $ilUser;
if ($_GET["item_ref_id"] and $_GET["type"])
{
ilObjUser::_dropDesktopItem($ilUser->getId(),(int) $_GET['item_ref_id'], $_GET['type']);
}
else
{
if ($_POST["items"])
{
foreach ($_POST["items"] as $item)
{
$type = ilObject::_lookupType($item, true);
ilObjUser::_dropDesktopItem($ilUser->getId(),$item,$type);
}
}
}
return true;
}

+ 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: