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.

References $DIC, and $user.

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

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  }
global $DIC
Definition: saml.php:7
$user
Definition: migrateto20.php:57
+ Here is the caller graph for this function:

◆ getAction()

static ilEditClipboard::getAction ( )
static

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

References $DIC, and $user.

Referenced by ilLMPagesTableGUI\__construct(), ilSCORM2004OrganizationHFormGUI\getMenuItems(), ilSCORM2004Node\insertAssetClip(), ilStructureObjectGUI\insertChapterClip(), ilSCORM2004Node\insertChapterClip(), ilObjContentObjectGUI\insertChapterClip(), ilSkillTreeNode\insertItemsFromClip(), ilSCORM2004Node\insertPageClip(), ilStructureObjectGUI\insertPageClip(), ilObjContentObjectGUI\pastePage(), ilObjGlossaryGUI\pasteTerms(), and ilPageObjectGUI\showPage().

58  {
59  global $DIC;
60  $user = $DIC->user();
61  $lm_action = $user->getPref("lm_clipboard_action");
62  if ($lm_action != "") {
63  return $lm_action;
64  } else {
65  return false;
66  }
67  }
global $DIC
Definition: saml.php:7
$user
Definition: migrateto20.php:57
+ Here is the caller graph for this function:

◆ getContentObjectId()

static ilEditClipboard::getContentObjectId ( )
static

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

References $DIC, and $user.

Referenced by ilObjContentObjectGUI\pastePage().

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  }
global $DIC
Definition: saml.php:7
$user
Definition: migrateto20.php:57
+ Here is the caller graph for this function:

◆ getContentObjectType()

static ilEditClipboard::getContentObjectType ( )
static

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

References $DIC, and $user.

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

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  }
global $DIC
Definition: saml.php:7
$user
Definition: migrateto20.php:57
+ 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.

References $a_type, $DIC, and $user.

Referenced by ilObjContentObjectGUI\moveChapter().

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  }
global $DIC
Definition: saml.php:7
$a_type
Definition: workflow.php:92
$user
Definition: migrateto20.php:57
+ Here is the caller graph for this function:

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