ILIAS  trunk Revision v11.0_alpha-1723-g8e69f309bab
All Data Structures Namespaces Files Functions Variables Enumerations Enumerator Modules Pages
class.PresentationSessionRepository.php
Go to the documentation of this file.
1 <?php
2 
19 declare(strict_types=1);
20 
22 
27 {
28  public const KEY_BASE = "glo_presentation_";
29 
30  public function __construct()
31  {
32  }
33 
34  public function setPageLength(int $ref_id, int $page_length): void
35  {
36  $key = self::KEY_BASE . $ref_id . "_page_length";
37  \ilSession::set($key, $page_length);
38  }
39 
40  public function getPageLength(int $ref_id): int
41  {
42  $key = self::KEY_BASE . $ref_id . "_page_length";
43  if (\ilSession::has($key)) {
45  }
46  return 0;
47  }
48 
49  public function setLetter(int $ref_id, string $letter): void
50  {
51  $key = self::KEY_BASE . $ref_id . "_letter";
52  \ilSession::set($key, $letter);
53  }
54 
55  public function getLetter(int $ref_id): string
56  {
57  $key = self::KEY_BASE . $ref_id . "_letter";
58  if (\ilSession::has($key)) {
60  }
61  return "";
62  }
63 
64  public function setViewControlStart(int $ref_id, int $vc_start): void
65  {
66  $key = self::KEY_BASE . $ref_id . "_vc_start";
67  \ilSession::set($key, $vc_start);
68  }
69 
70  public function getViewControlStart(int $ref_id): int
71  {
72  $key = self::KEY_BASE . $ref_id . "_vc_start";
73  if (\ilSession::has($key)) {
75  }
76  return 0;
77  }
78 
79  public function setViewControlLength(int $ref_id, int $vc_length): void
80  {
81  $key = self::KEY_BASE . $ref_id . "_vc_length";
82  \ilSession::set($key, $vc_length);
83  }
84 
85  public function getViewControlLength(int $ref_id): int
86  {
87  $key = self::KEY_BASE . $ref_id . "_vc_length";
88  if (\ilSession::has($key)) {
90  }
91  return 0;
92  }
93 }
$ref_id
Definition: ltiauth.php:65
get(string $class_name)
static has($a_var)
static set(string $a_var, $a_val)
Set a value.
This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Le...