ILIAS  trunk Revision v11.0_alpha-3011-gc6b235a2e85
ILIAS\PersonalWorkspace\WorkspaceSessionRepository Class Reference

Workspace clipboard session repository. More...

+ Collaboration diagram for ILIAS\PersonalWorkspace\WorkspaceSessionRepository:

Public Member Functions

 __construct ()
 
 clearClipboard ()
 
 isClipboardEmpty ()
 
 setClipboardWsp2Repo (bool $wsp2repo)
 
 getClipboardWsp2Repo ()
 
 setClipboardSourceIds (array $ids)
 
 getClipboardSourceIds ()
 
 setClipboardCmd (string $cmd)
 
 getClipboardCmd ()
 
 setClipboardShared (bool $shared)
 
 getClipboardShared ()
 

Protected Attributes

const BASE_SESSION_KEY = 'wsp_'
 

Detailed Description

Workspace clipboard session repository.

Author
Alexander Killing killi.nosp@m.ng@l.nosp@m.eifos.nosp@m..de

Definition at line 26 of file class.WorkspaceSessionRepository.php.

Constructor & Destructor Documentation

◆ __construct()

ILIAS\PersonalWorkspace\WorkspaceSessionRepository::__construct ( )

Definition at line 30 of file class.WorkspaceSessionRepository.php.

31 {
32 }

Member Function Documentation

◆ clearClipboard()

ILIAS\PersonalWorkspace\WorkspaceSessionRepository::clearClipboard ( )

Definition at line 34 of file class.WorkspaceSessionRepository.php.

34 : void
35 {
36 \ilSession::clear(self::BASE_SESSION_KEY . "_clip_wsp2repo");
37 \ilSession::clear(self::BASE_SESSION_KEY . "_clip_source_ids");
38 \ilSession::clear(self::BASE_SESSION_KEY . "_clip_cmd");
39 \ilSession::clear(self::BASE_SESSION_KEY . "_clip_shared");
40 }
static clear(string $a_var)

References ilSession\clear().

+ Here is the call graph for this function:

◆ getClipboardCmd()

ILIAS\PersonalWorkspace\WorkspaceSessionRepository::getClipboardCmd ( )

Definition at line 72 of file class.WorkspaceSessionRepository.php.

72 : string
73 {
74 return \ilSession::get(self::BASE_SESSION_KEY . "_clip_cmd") ?? "";
75 }
get(string $class_name)

References ILIAS\GlobalScreen\get().

Referenced by ILIAS\PersonalWorkspace\WorkspaceSessionRepository\isClipboardEmpty().

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ getClipboardShared()

ILIAS\PersonalWorkspace\WorkspaceSessionRepository::getClipboardShared ( )

Definition at line 82 of file class.WorkspaceSessionRepository.php.

82 : bool
83 {
84 return \ilSession::get(self::BASE_SESSION_KEY . "_clip_shared") ?? false;
85 }

References ILIAS\GlobalScreen\get().

+ Here is the call graph for this function:

◆ getClipboardSourceIds()

ILIAS\PersonalWorkspace\WorkspaceSessionRepository::getClipboardSourceIds ( )

Definition at line 62 of file class.WorkspaceSessionRepository.php.

62 : array
63 {
64 return \ilSession::get(self::BASE_SESSION_KEY . "_clip_source_ids") ?? [];
65 }

References ILIAS\GlobalScreen\get().

Referenced by ILIAS\PersonalWorkspace\WorkspaceSessionRepository\isClipboardEmpty().

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ getClipboardWsp2Repo()

ILIAS\PersonalWorkspace\WorkspaceSessionRepository::getClipboardWsp2Repo ( )

Definition at line 52 of file class.WorkspaceSessionRepository.php.

52 : bool
53 {
54 return \ilSession::get(self::BASE_SESSION_KEY . "_clip_wsp2repo") ?? false;
55 }

References ILIAS\GlobalScreen\get().

+ Here is the call graph for this function:

◆ isClipboardEmpty()

ILIAS\PersonalWorkspace\WorkspaceSessionRepository::isClipboardEmpty ( )

◆ setClipboardCmd()

ILIAS\PersonalWorkspace\WorkspaceSessionRepository::setClipboardCmd ( string  $cmd)

Definition at line 67 of file class.WorkspaceSessionRepository.php.

67 : void
68 {
69 \ilSession::set(self::BASE_SESSION_KEY . "_clip_cmd", $cmd);
70 }
static set(string $a_var, $a_val)
Set a value.

References ilSession\set().

+ Here is the call graph for this function:

◆ setClipboardShared()

ILIAS\PersonalWorkspace\WorkspaceSessionRepository::setClipboardShared ( bool  $shared)

Definition at line 77 of file class.WorkspaceSessionRepository.php.

77 : void
78 {
79 \ilSession::set(self::BASE_SESSION_KEY . "_clip_shared", $shared);
80 }

References ilSession\set().

+ Here is the call graph for this function:

◆ setClipboardSourceIds()

ILIAS\PersonalWorkspace\WorkspaceSessionRepository::setClipboardSourceIds ( array  $ids)

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

57 : void
58 {
59 \ilSession::set(self::BASE_SESSION_KEY . "_clip_source_ids", $ids);
60 }

References ilSession\set().

+ Here is the call graph for this function:

◆ setClipboardWsp2Repo()

ILIAS\PersonalWorkspace\WorkspaceSessionRepository::setClipboardWsp2Repo ( bool  $wsp2repo)

Definition at line 47 of file class.WorkspaceSessionRepository.php.

47 : void
48 {
49 \ilSession::set(self::BASE_SESSION_KEY . "_clip_wsp2repo", $wsp2repo);
50 }

References ilSession\set().

+ Here is the call graph for this function:

Field Documentation

◆ BASE_SESSION_KEY

const ILIAS\PersonalWorkspace\WorkspaceSessionRepository::BASE_SESSION_KEY = 'wsp_'
protected

Definition at line 28 of file class.WorkspaceSessionRepository.php.


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