ILIAS  release_8 Revision v8.24
class.BlockSessionRepository.php
Go to the documentation of this file.
1<?php
2
3declare(strict_types=1);
4
21namespace ILIAS\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)
This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Le...
get(string $key, Refinery\Transformation $t)
Get passed parameter, if not data passed, get key from http request.