ILIAS  trunk Revision v11.0_alpha-3011-gc6b235a2e85
class.BlockSessionRepository.php
Go to the documentation of this file.
1<?php
2
19declare(strict_types=1);
20
21namespace ILIAS\Container\Block;
22
29{
30 public const KEY_BASE = "block_";
31
32 public function __construct()
33 {
34 }
35
36 public function setNavPar(
37 string $par,
38 string $val
39 ): void {
40 \ilSession::set(self::KEY_BASE . $par, $val);
41 }
42
43 public function getNavPar(string $par): string
44 {
45 if (\ilSession::has(self::KEY_BASE . $par)) {
46 return \ilSession::get(self::KEY_BASE . $par);
47 }
48 return "";
49 }
50}
static has($a_var)
get(string $class_name)