ILIAS  release_9 Revision v9.13-25-g2c18ec4c24f
class.PresentationSessionRepository.php
Go to the documentation of this file.
1 <?php
2 
3 declare(strict_types=1);
4 
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 }
$ref_id
Definition: ltiauth.php:67
string $key
Consumer key/client ID value.
Definition: System.php:193
static has($a_var)
get(string $key, Refinery\Transformation $t)
Get passed parameter, if not data passed, get key from http request.
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...