ILIAS  trunk Revision v11.0_alpha-3011-gc6b235a2e85
class.ReservationTableSessionRepository.php
Go to the documentation of this file.
1<?php
2
19declare(strict_types=1);
20
22
29{
30 public const KEY_BASE = "repo_clip";
31
32 public function __construct()
33 {
34 }
35
36 public function setObjectFilter(string $form_id, string $filter_value): void
37 {
38 $form_array = [];
39 if (\ilSession::has("form_" . $form_id)) {
40 $form_array = \ilSession::get("form_" . $form_id);
41 }
42 $form_array["object"] = $filter_value;
43 \ilSession::set("form_" . $form_id, $form_array);
44 }
45
46 public function setFromToFilter(string $form_id, string $filter_value): void
47 {
48 $form_array = [];
49 if (\ilSession::has("form_" . $form_id)) {
50 $form_array = \ilSession::get("form_" . $form_id);
51 }
52 $form_array["fromto"] = $filter_value;
53 \ilSession::set("form_" . $form_id, $form_array);
54 }
55
56 public function hasFromToFilter(string $form_id): bool
57 {
58 if (\ilSession::has("form_" . $form_id)) {
59 $form_array = \ilSession::get("form_" . $form_id);
60 return isset($form_array["fromto"]);
61 }
62 return false;
63 }
64}
static get(string $a_var)
static set(string $a_var, $a_val)
Set a value.
static has($a_var)