ILIAS  release_8 Revision v8.19
All Data Structures Namespaces Files Functions Variables Modules Pages
class.NotesSessionRepository.php
Go to the documentation of this file.
1 <?php
2 
3 declare(strict_types=1);
4 
21 namespace ILIAS\Notes;
22 
27 {
28  public const KEY_BASE = "notes";
29 
30  public function __construct()
31  {
32  }
33 
34  public function setSortAscending(bool $asc): void
35  {
36  \ilSession::set(self::KEY_BASE . "_asc", $asc);
37  }
38 
39  public function getSortAscending(): bool
40  {
41  if (\ilSession::has(self::KEY_BASE . "_asc")) {
42  return \ilSession::get(self::KEY_BASE . "_asc");
43  }
44  return false;
45  }
46 }
This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Le...
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.