ILIAS  trunk Revision v11.0_alpha-1753-gb21ca8c4367
All Data Structures Namespaces Files Functions Variables Enumerations Enumerator Modules Pages
class.ItemSessionRepository.php
Go to the documentation of this file.
1 <?php
2 
19 declare(strict_types=1);
20 
21 namespace ILIAS\Container\Content;
22 
29 {
30  protected const KEY_BASE = "cont_item";
31 
32  public function __construct()
33  {
34  }
35 
36  public function setExpanded(int $id, int $val): void
37  {
38  \ilSession::set(self::KEY_BASE . "_" . $id . "_expanded", $val);
39  }
40 
41  public function getExpanded(int $id): ?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  }
48 }
while($session_entry=$r->fetchRow(ilDBConstants::FETCHMODE_ASSOC)) return null
get(string $class_name)
static has($a_var)
$id
plugin.php for ilComponentBuildPluginInfoObjectiveTest::testAddPlugins
Definition: plugin.php:23
static set(string $a_var, $a_val)
Set a value.