ILIAS  trunk Revision v11.0_alpha-1866-gfa368f7776e
All Data Structures Namespaces Files Functions Variables Enumerations Enumerator Modules Pages
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.

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

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

◆ getIds()

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

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

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

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)
static has($a_var)
+ 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.

References ilSession\set().

36  : void
37  {
38  \ilSession::set(self::KEY_BASE . "_folder", $fold_id);
39  }
static set(string $a_var, $a_val)
Set a value.
+ 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.

References ilSession\set().

49  : void
50  {
51  \ilSession::set(self::KEY_BASE . "_ids", $ids);
52  }
static set(string $a_var, $a_val)
Set a value.
+ 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: