ILIAS  release_8 Revision v8.19
All Data Structures Namespaces Files Functions Variables Modules Pages
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.

References ilSession\clear().

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)
+ Here is the call graph for this function:

◆ getClipboardCmd()

ILIAS\PersonalWorkspace\WorkspaceSessionRepository::getClipboardCmd ( )

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

References ILIAS\Repository\get().

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

72  : string
73  {
74  return \ilSession::get(self::BASE_SESSION_KEY . "_clip_cmd") ?? "";
75  }
get(string $key, Refinery\Transformation $t)
Get passed parameter, if not data passed, get key from http request.
+ 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.

References ILIAS\Repository\get().

82  : bool
83  {
84  return \ilSession::get(self::BASE_SESSION_KEY . "_clip_shared") ?? false;
85  }
get(string $key, Refinery\Transformation $t)
Get passed parameter, if not data passed, get key from http request.
+ Here is the call graph for this function:

◆ getClipboardSourceIds()

ILIAS\PersonalWorkspace\WorkspaceSessionRepository::getClipboardSourceIds ( )

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

References ILIAS\Repository\get().

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

62  : array
63  {
64  return \ilSession::get(self::BASE_SESSION_KEY . "_clip_source_ids") ?? [];
65  }
get(string $key, Refinery\Transformation $t)
Get passed parameter, if not data passed, get key from http request.
+ 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.

References ILIAS\Repository\get().

52  : bool
53  {
54  return \ilSession::get(self::BASE_SESSION_KEY . "_clip_wsp2repo") ?? false;
55  }
get(string $key, Refinery\Transformation $t)
Get passed parameter, if not data passed, get key from http request.
+ 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.

References ilSession\set().

67  : void
68  {
69  \ilSession::set(self::BASE_SESSION_KEY . "_clip_cmd", $cmd);
70  }
static set(string $a_var, $a_val)
Set a value.
+ Here is the call graph for this function:

◆ setClipboardShared()

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

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

References ilSession\set().

77  : void
78  {
79  \ilSession::set(self::BASE_SESSION_KEY . "_clip_shared", $shared);
80  }
static set(string $a_var, $a_val)
Set a value.
+ Here is the call graph for this function:

◆ setClipboardSourceIds()

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

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

References ilSession\set().

57  : void
58  {
59  \ilSession::set(self::BASE_SESSION_KEY . "_clip_source_ids", $ids);
60  }
static set(string $a_var, $a_val)
Set a value.
+ Here is the call graph for this function:

◆ setClipboardWsp2Repo()

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

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

References ilSession\set().

47  : void
48  {
49  \ilSession::set(self::BASE_SESSION_KEY . "_clip_wsp2repo", $wsp2repo);
50  }
static set(string $a_var, $a_val)
Set a value.
+ 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: