ILIAS  release_8 Revision v8.19
All Data Structures Namespaces Files Functions Variables Modules Pages
ILIAS\Container\Content\BlockSessionRepository Class Reference

Stores block properties. More...

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

Public Member Functions

 __construct ()
 
 setProperty (string $a_block_id, int $a_user_id, string $a_property, string $a_value)
 
 getProperty (string $a_block_id, int $a_user_id, string $a_property)
 

Protected Attributes

const KEY_BASE = "cont_block"
 

Detailed Description

Stores block properties.

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

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

Constructor & Destructor Documentation

◆ __construct()

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

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

33  {
34  }

Member Function Documentation

◆ getProperty()

ILIAS\Container\Content\BlockSessionRepository::getProperty ( string  $a_block_id,
int  $a_user_id,
string  $a_property 
)

Definition at line 46 of file class.BlockSessionRepository.php.

References ILIAS\LTI\ToolProvider\$key, ILIAS\Repository\get(), and ilSession\has().

50  : string {
51  $key = self::KEY_BASE . "_" . $a_block_id . "_" . $a_user_id . "_" . $a_property;
52  if (\ilSession::has($key)) {
54  }
55  return "";
56  }
string $key
Consumer key/client ID value.
Definition: System.php:193
static has($a_var)
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:

◆ setProperty()

ILIAS\Container\Content\BlockSessionRepository::setProperty ( string  $a_block_id,
int  $a_user_id,
string  $a_property,
string  $a_value 
)

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

References ilSession\set().

41  : void {
42  \ilSession::set(self::KEY_BASE . "_" .
43  $a_block_id . "_" . $a_user_id . "_" . $a_property, $a_value);
44  }
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\BlockSessionRepository::KEY_BASE = "cont_block"
protected

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


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