33 $lm_type = $user->getPref(
"lm_clipboard_type");
41 public static function setAction(
string $a_action): void
45 $user->writePref(
"lm_clipboard_action", $a_action);
52 return (
string) $user->getPref(
"lm_clipboard_action");
59 $lm_id = $user->getPref(
"lm_clipboard_id");
69 string $a_action =
"cut" 73 $user->writePref(
"lm_clipboard_id", $a_id);
74 $user->writePref(
"lm_clipboard_type", $a_type);
75 self::setAction($a_action);
78 public static function clear(): void
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",
"");
static setAction(string $a_action)
static storeContentObject(string $a_type, int $a_id, string $a_action="cut")
This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Le...
static getContentObjectType()
static getContentObjectId()