ILIAS  release_8 Revision v8.19
All Data Structures Namespaces Files Functions Variables Modules Pages
ilEditClipboard Class Reference

This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Learning e.V. More...

+ Collaboration diagram for ilEditClipboard:

Static Public Member Functions

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

Detailed Description

This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Learning e.V.

ILIAS is licensed with the GPL-3.0, see https://www.gnu.org/licenses/gpl-3.0.en.html You should have received a copy of said license along with the source code, too.

If this is not the case or you just want to try ILIAS, you'll find us at: https://www.ilias.de https://github.com/ILIAS-eLearning 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 27 of file class.ilEditClipboard.php.

Member Function Documentation

◆ clear()

static ilEditClipboard::clear ( )
static

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

References $DIC.

Referenced by ilObjContentObjectGUI\activatePages(), ILIAS\Skill\Tree\SkillTreeNodeManager\clearClipboard(), ilStructureObjectGUI\insertChapterClip(), ilObjContentObjectGUI\insertChapterClip(), and ilStructureObjectGUI\insertPageClip().

78  : void
79  {
80  global $DIC;
81  $user = $DIC->user();
82  $user->clipboardDeleteObjectsOfType("pg");
83  $user->clipboardDeleteObjectsOfType("st");
84  $user->writePref("lm_clipboard_id", "");
85  $user->writePref("lm_clipboard_type", "");
86  $user->writePref("lm_clipboard_action", "");
87  }
global $DIC
Definition: feed.php:28
+ Here is the caller graph for this function:

◆ getAction()

static ilEditClipboard::getAction ( )
static

◆ getContentObjectId()

static ilEditClipboard::getContentObjectId ( )
static

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

References $DIC.

Referenced by ilObjContentObjectGUI\activatePages().

55  : int
56  {
57  global $DIC;
58  $user = $DIC->user();
59  $lm_id = $user->getPref("lm_clipboard_id");
60  if ($lm_id != "") {
61  return (int) $lm_id;
62  }
63  return 0;
64  }
global $DIC
Definition: feed.php:28
+ Here is the caller graph for this function:

◆ getContentObjectType()

static ilEditClipboard::getContentObjectType ( )
static

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

References $DIC.

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

29  : string
30  {
31  global $DIC;
32  $user = $DIC->user();
33  $lm_type = $user->getPref("lm_clipboard_type");
34  if ($lm_type != "") {
35  return $lm_type;
36  } else {
37  return "";
38  }
39  }
global $DIC
Definition: feed.php:28
+ Here is the caller graph for this function:

◆ setAction()

static ilEditClipboard::setAction ( string  $a_action)
static

◆ storeContentObject()

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

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

References $DIC.

Referenced by ilObjContentObjectGUI\moveChapter().

70  : void {
71  global $DIC;
72  $user = $DIC->user();
73  $user->writePref("lm_clipboard_id", $a_id);
74  $user->writePref("lm_clipboard_type", $a_type);
75  self::setAction($a_action);
76  }
global $DIC
Definition: feed.php:28
+ Here is the caller graph for this function:

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