ILIAS  trunk Revision v11.0_alpha-1744-gb0451eebef4
All Data Structures Namespaces Files Functions Variables Enumerations Enumerator Modules Pages
class.ClipboardSessionRepository.php
Go to the documentation of this file.
1 <?php
2 
19 declare(strict_types=1);
20 
22 
29 {
30  public const KEY_BASE = "mep_clip";
31 
32  public function __construct()
33  {
34  }
35 
36  public function setFolder(int $fold_id): void
37  {
38  \ilSession::set(self::KEY_BASE . "_folder", $fold_id);
39  }
40 
41  public function getFolder(): int
42  {
43  if (\ilSession::has(self::KEY_BASE . "_folder")) {
44  return (int) \ilSession::get(self::KEY_BASE . "_folder");
45  }
46  return 0;
47  }
48 
49  public function setIds(array $ids): void
50  {
51  \ilSession::set(self::KEY_BASE . "_ids", $ids);
52  }
53 
54  public function getIds(): array
55  {
56  if (\ilSession::has(self::KEY_BASE . "_ids")) {
57  return \ilSession::get(self::KEY_BASE . "_ids");
58  }
59  return [];
60  }
61 }
static get(string $a_var)
This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Le...
get(string $class_name)
static has($a_var)
static set(string $a_var, $a_val)
Set a value.