ILIAS  trunk Revision v11.0_alpha-3011-gc6b235a2e85
class.EvaluationSessionRepo.php
Go to the documentation of this file.
1<?php
2
19declare(strict_types=1);
20
22
28{
29 protected const KEY_BASE = "svy_eval_";
30 protected const KEY_ANON_EVAL = self::KEY_BASE . "anon_eval";
31
32 public function __construct()
33 {
34 }
35
36 public function setAnonEvaluationAccess(int $ref_id): void
37 {
38 \ilSession::set(self::KEY_ANON_EVAL, $ref_id);
39 }
40
41 public function getAnonEvaluationAccess(): int
42 {
43 return (int) \ilSession::get(self::KEY_ANON_EVAL);
44 }
45
46 public function clearAnonEvaluationAccess(): void
47 {
48 \ilSession::clear(self::KEY_ANON_EVAL);
49 }
50}
Stores access codes of anonymous session.
static get(string $a_var)
static clear(string $a_var)
static set(string $a_var, $a_val)
Set a value.
$ref_id
Definition: ltiauth.php:66
This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Le...