ILIAS  trunk Revision v11.0_alpha-1715-g7fc467680fb
All Data Structures Namespaces Files Functions Variables Enumerations Enumerator Modules Pages
class.EvaluationSessionRepo.php
Go to the documentation of this file.
1 <?php
2 
19 declare(strict_types=1);
20 
21 namespace ILIAS\Survey\Evaluation;
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 }
static get(string $a_var)
Stores access codes of anonymous session.
$ref_id
Definition: ltiauth.php:65
This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Le...
static clear(string $a_var)
static set(string $a_var, $a_val)
Set a value.