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

Stores media pool clipboard data. More...

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

Public Member Functions

 __construct ()
 
 setFolder (int $fold_id)
 
 getFolder ()
 
 setIds (array $ids)
 
 getIds ()
 

Data Fields

const KEY_BASE = "mep_clip"
 

Detailed Description

Stores media pool 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\MediaPool\Clipboard\ClipboardSessionRepository::__construct ( )

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

33 {
34 }

Member Function Documentation

◆ getFolder()

ILIAS\MediaPool\Clipboard\ClipboardSessionRepository::getFolder ( )

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

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

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

+ Here is the call graph for this function:

◆ getIds()

ILIAS\MediaPool\Clipboard\ClipboardSessionRepository::getIds ( )

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

54 : array
55 {
56 if (\ilSession::has(self::KEY_BASE . "_ids")) {
57 return \ilSession::get(self::KEY_BASE . "_ids");
58 }
59 return [];
60 }
get(string $class_name)

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

+ Here is the call graph for this function:

◆ setFolder()

ILIAS\MediaPool\Clipboard\ClipboardSessionRepository::setFolder ( int  $fold_id)

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

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

References ilSession\set().

+ Here is the call graph for this function:

◆ setIds()

ILIAS\MediaPool\Clipboard\ClipboardSessionRepository::setIds ( array  $ids)

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

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

References ilSession\set().

+ Here is the call graph for this function:

Field Documentation

◆ KEY_BASE

const ILIAS\MediaPool\Clipboard\ClipboardSessionRepository::KEY_BASE = "mep_clip"

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


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