ILIAS  trunk Revision v11.0_alpha-3011-gc6b235a2e85
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.

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: shib_login.php:26

References $DIC.

Referenced by ILIAS\Skill\Node\SkillTreeNodeManager\clearClipboard().

+ Here is the caller graph for this function:

◆ getAction()

static ilEditClipboard::getAction ( )
static

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

48 : string
49 {
50 global $DIC;
51 $user = $DIC->user();
52 return (string) $user->getPref("lm_clipboard_action");
53 }

References $DIC.

Referenced by ilLMPagesTableGUI\__construct(), ILIAS\COPage\Page\PageQueryActionHandler\allCommand(), ILIAS\Skill\Node\SkillTreeNodeManager\insertItemsFromClip(), ilObjGlossaryGUI\pasteTerms(), and ilPageObjectGUI\showPage().

+ Here is the caller graph for this function:

◆ getContentObjectId()

static ilEditClipboard::getContentObjectId ( )
static

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

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 }

References $DIC.

◆ getContentObjectType()

static ilEditClipboard::getContentObjectType ( )
static

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

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 }

References $DIC.

Referenced by ilLMPagesTableGUI\__construct().

+ Here is the caller graph for this function:

◆ setAction()

◆ storeContentObject()

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

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

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 }
static setAction(string $a_action)

Referenced by ilObjContentObjectGUI\moveChapter().

+ Here is the caller graph for this function:

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