ILIAS  trunk Revision v11.0_alpha-3011-gc6b235a2e85
ILIAS\Repository\Clipboard\ClipboardSessionRepository Class Reference

Stores repository clipboard data. More...

+ Collaboration diagram for ILIAS\Repository\Clipboard\ClipboardSessionRepository:

Public Member Functions

 __construct ()
 
 setCmd (string $cmd)
 
 getCmd ()
 
 setParent (int $parent)
 
 getParent ()
 
 setRefIds (array $ref_ids)
 
 getRefIds ()
 
 hasEntries ()
 
 clear ()
 

Data Fields

const KEY_BASE = "repo_clip"
 

Detailed Description

Stores repository clipboard data.

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

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

Constructor & Destructor Documentation

◆ __construct()

ILIAS\Repository\Clipboard\ClipboardSessionRepository::__construct ( )

Definition at line 32 of file class.ClipboardSessionRepository.php.

33 {
34 }

Member Function Documentation

◆ clear()

ILIAS\Repository\Clipboard\ClipboardSessionRepository::clear ( )

Definition at line 80 of file class.ClipboardSessionRepository.php.

80 : void
81 {
82 \ilSession::clear(self::KEY_BASE . "_cmd");
83 \ilSession::clear(self::KEY_BASE . "_parent");
84 \ilSession::clear(self::KEY_BASE . "_ref_ids");
85 }
static clear(string $a_var)

References ilSession\clear().

+ Here is the call graph for this function:

◆ getCmd()

ILIAS\Repository\Clipboard\ClipboardSessionRepository::getCmd ( )

Definition at line 41 of file class.ClipboardSessionRepository.php.

41 : string
42 {
43 if (\ilSession::has(self::KEY_BASE . "_cmd")) {
44 return \ilSession::get(self::KEY_BASE . "_cmd");
45 }
46 return "";
47 }
static has($a_var)
get(string $class_name)

References ILIAS\GlobalScreen\get(), and ilSession\has().

Referenced by ILIAS\Repository\Clipboard\ClipboardSessionRepository\hasEntries().

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

◆ getParent()

ILIAS\Repository\Clipboard\ClipboardSessionRepository::getParent ( )

Definition at line 54 of file class.ClipboardSessionRepository.php.

54 : int
55 {
56 if (\ilSession::has(self::KEY_BASE . "_parent")) {
57 return (int) \ilSession::get(self::KEY_BASE . "_parent");
58 }
59 return 0;
60 }
static get(string $a_var)

References ilSession\get(), and ilSession\has().

+ Here is the call graph for this function:

◆ getRefIds()

ILIAS\Repository\Clipboard\ClipboardSessionRepository::getRefIds ( )

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

67 : array
68 {
69 if (\ilSession::has(self::KEY_BASE . "_ref_ids")) {
70 return \ilSession::get(self::KEY_BASE . "_ref_ids");
71 }
72 return [];
73 }

References ILIAS\GlobalScreen\get(), and ilSession\has().

Referenced by ILIAS\Repository\Clipboard\ClipboardSessionRepository\hasEntries().

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

◆ hasEntries()

ILIAS\Repository\Clipboard\ClipboardSessionRepository::hasEntries ( )

◆ setCmd()

ILIAS\Repository\Clipboard\ClipboardSessionRepository::setCmd ( string  $cmd)

Definition at line 36 of file class.ClipboardSessionRepository.php.

36 : void
37 {
38 \ilSession::set(self::KEY_BASE . "_cmd", $cmd);
39 }
static set(string $a_var, $a_val)
Set a value.

References ilSession\set().

+ Here is the call graph for this function:

◆ setParent()

ILIAS\Repository\Clipboard\ClipboardSessionRepository::setParent ( int  $parent)

Definition at line 49 of file class.ClipboardSessionRepository.php.

49 : void
50 {
51 \ilSession::set(self::KEY_BASE . "_parent", $parent);
52 }

References ilSession\set().

+ Here is the call graph for this function:

◆ setRefIds()

ILIAS\Repository\Clipboard\ClipboardSessionRepository::setRefIds ( array  $ref_ids)

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

62 : void
63 {
64 \ilSession::set(self::KEY_BASE . "_ref_ids", $ref_ids);
65 }

References ilSession\set().

+ Here is the call graph for this function:

Field Documentation

◆ KEY_BASE

const ILIAS\Repository\Clipboard\ClipboardSessionRepository::KEY_BASE = "repo_clip"

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


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