ILIAS  release_5-4 Revision v5.4.26-12-gabc799a52e6
ilEditClipboard Class Reference

Class ilEditClipboard. More...

+ Collaboration diagram for ilEditClipboard:

Static Public Member Functions

static getContentObjectType ()
 
static setAction ($a_action)
 
static getAction ()
 
static getContentObjectId ()
 
static storeContentObject ($a_type, $a_id, $a_action="cut")
 
static clear ()
 

Detailed Description

Class ilEditClipboard.

This class supports only a few basic clipboard functions for the editor and should be further elaborated in the future.

Author
Alex Killing alex..nosp@m.kill.nosp@m.ing@g.nosp@m.mx.d.nosp@m.e
Version
$Id$

Definition at line 36 of file class.ilEditClipboard.php.

Member Function Documentation

◆ clear()

static ilEditClipboard::clear ( )
static

Definition at line 89 of file class.ilEditClipboard.php.

90 {
91 global $DIC;
92 $user = $DIC->user();
93 $user->clipboardDeleteObjectsOfType("pg");
94 $user->clipboardDeleteObjectsOfType("st");
95 $user->writePref("lm_clipboard_id", "");
96 $user->writePref("lm_clipboard_type", "");
97 $user->writePref("lm_clipboard_action", "");
98 }
$user
Definition: migrateto20.php:57
global $DIC
Definition: saml.php:7

References $DIC, and $user.

Referenced by ilSkillTreeNode\clearClipboard(), ilSCORM2004Node\insertAssetClip(), ilStructureObjectGUI\insertChapterClip(), ilSCORM2004Node\insertChapterClip(), ilObjContentObjectGUI\insertChapterClip(), ilSCORM2004Node\insertPageClip(), ilStructureObjectGUI\insertPageClip(), and ilObjContentObjectGUI\pastePage().

+ Here is the caller graph for this function:

◆ getAction()

static ilEditClipboard::getAction ( )
static

◆ getContentObjectId()

static ilEditClipboard::getContentObjectId ( )
static

Definition at line 69 of file class.ilEditClipboard.php.

70 {
71 global $DIC;
72 $user = $DIC->user();
73 $lm_id = $user->getPref("lm_clipboard_id");
74 if ($lm_id != "") {
75 return $lm_id;
76 }
77 return "";
78 }

References $DIC, and $user.

Referenced by ilObjContentObjectGUI\pastePage().

+ Here is the caller graph for this function:

◆ getContentObjectType()

static ilEditClipboard::getContentObjectType ( )
static

Definition at line 38 of file class.ilEditClipboard.php.

39 {
40 global $DIC;
41 $user = $DIC->user();
42 $lm_type = $user->getPref("lm_clipboard_type");
43 if ($lm_type != "") {
44 return $lm_type;
45 } else {
46 return false;
47 }
48 }

References $DIC, and $user.

Referenced by ilLMPagesTableGUI\__construct(), and ilObjContentObjectGUI\pastePage().

+ Here is the caller graph for this function:

◆ setAction()

◆ storeContentObject()

static ilEditClipboard::storeContentObject (   $a_type,
  $a_id,
  $a_action = "cut" 
)
static

Definition at line 80 of file class.ilEditClipboard.php.

81 {
82 global $DIC;
83 $user = $DIC->user();
84 $user->writePref("lm_clipboard_id", $a_id);
85 $user->writePref("lm_clipboard_type", $a_type);
86 self::setAction($a_action);
87 }
static setAction($a_action)
$a_type
Definition: workflow.php:92

References $a_type, $DIC, $user, and setAction().

Referenced by ilObjContentObjectGUI\moveChapter().

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