ILIAS  release_7 Revision v7.30-3-g800a261c036
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
Alexander Killing killi.nosp@m.ng@l.nosp@m.eifos.nosp@m..de

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

Member Function Documentation

◆ clear()

static ilEditClipboard::clear ( )
static

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

67 {
68 global $DIC;
69 $user = $DIC->user();
70 $user->clipboardDeleteObjectsOfType("pg");
71 $user->clipboardDeleteObjectsOfType("st");
72 $user->writePref("lm_clipboard_id", "");
73 $user->writePref("lm_clipboard_type", "");
74 $user->writePref("lm_clipboard_action", "");
75 }
global $DIC
Definition: goto.php:24

References $DIC.

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 46 of file class.ilEditClipboard.php.

47 {
48 global $DIC;
49 $user = $DIC->user();
50 $lm_id = $user->getPref("lm_clipboard_id");
51 if ($lm_id != "") {
52 return $lm_id;
53 }
54 return "";
55 }

References $DIC.

Referenced by ilObjContentObjectGUI\pastePage().

+ Here is the caller graph for this function:

◆ getContentObjectType()

static ilEditClipboard::getContentObjectType ( )
static

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

16 {
17 global $DIC;
18 $user = $DIC->user();
19 $lm_type = $user->getPref("lm_clipboard_type");
20 if ($lm_type != "") {
21 return $lm_type;
22 } else {
23 return false;
24 }
25 }

References $DIC.

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 57 of file class.ilEditClipboard.php.

58 {
59 global $DIC;
60 $user = $DIC->user();
61 $user->writePref("lm_clipboard_id", $a_id);
62 $user->writePref("lm_clipboard_type", $a_type);
63 self::setAction($a_action);
64 }
static setAction($a_action)

References $DIC, 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: