ILIAS  release_8 Revision v8.23
ILIAS\Container\Content\ItemSessionRepository Class Reference

Stores repository clipboard data. More...

+ Collaboration diagram for ILIAS\Container\Content\ItemSessionRepository:

Public Member Functions

 __construct ()
 
 setExpanded (int $id, int $val)
 
 getExpanded (int $id)
 

Protected Attributes

const KEY_BASE = "cont_item"
 

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.ItemSessionRepository.php.

Constructor & Destructor Documentation

◆ __construct()

ILIAS\Container\Content\ItemSessionRepository::__construct ( )

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

33  {
34  }

Member Function Documentation

◆ getExpanded()

ILIAS\Container\Content\ItemSessionRepository::getExpanded ( int  $id)

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

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

41  : ?int
42  {
43  if (\ilSession::has(self::KEY_BASE . "_" . $id . "_expanded")) {
44  return \ilSession::get(self::KEY_BASE . "_" . $id . "_expanded");
45  }
46  return null;
47  }
static has($a_var)
get(string $key, Refinery\Transformation $t)
Get passed parameter, if not data passed, get key from http request.
$id
plugin.php for ilComponentBuildPluginInfoObjectiveTest::testAddPlugins
Definition: plugin.php:23
+ Here is the call graph for this function:

◆ setExpanded()

ILIAS\Container\Content\ItemSessionRepository::setExpanded ( int  $id,
int  $val 
)

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

References ilSession\set().

36  : void
37  {
38  \ilSession::set(self::KEY_BASE . "_" . $id . "_expanded", $val);
39  }
$id
plugin.php for ilComponentBuildPluginInfoObjectiveTest::testAddPlugins
Definition: plugin.php:23
static set(string $a_var, $a_val)
Set a value.
+ Here is the call graph for this function:

Field Documentation

◆ KEY_BASE

const ILIAS\Container\Content\ItemSessionRepository::KEY_BASE = "cont_item"
protected

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


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