ILIAS  release_8 Revision v8.19-1-g4e8f2f9140c
All Data Structures Namespaces Files Functions Variables Modules Pages
ILIAS\Container\Content\ViewSessionRepository Class Reference

Stores view status. More...

+ Collaboration diagram for ILIAS\Container\Content\ViewSessionRepository:

Public Member Functions

 __construct ()
 
 setAdminView ()
 
 setContentView ()
 
 isAdminView ()
 
 isContentView ()
 

Protected Attributes

const KEY = "cont_view"
 
const VIEW_ADMIN = "admin"
 
const VIEW_CONTENT = "content"
 

Detailed Description

Stores view status.

Author
Alexander Killing killi.nosp@m.ng@l.nosp@m.eifos.nosp@m..de

Definition at line 29 of file class.ViewSessionRepository.php.

Constructor & Destructor Documentation

◆ __construct()

ILIAS\Container\Content\ViewSessionRepository::__construct ( )

Definition at line 35 of file class.ViewSessionRepository.php.

36  {
37  }

Member Function Documentation

◆ isAdminView()

ILIAS\Container\Content\ViewSessionRepository::isAdminView ( )

Definition at line 49 of file class.ViewSessionRepository.php.

References ilSession\get(), and ilSession\has().

49  : bool
50  {
51  if (ilSession::has(self::KEY)) {
52  return (ilSession::get(self::KEY) == self::VIEW_ADMIN);
53  }
54  return false;
55  }
static get(string $a_var)
static has($a_var)
+ Here is the call graph for this function:

◆ isContentView()

ILIAS\Container\Content\ViewSessionRepository::isContentView ( )

Definition at line 57 of file class.ViewSessionRepository.php.

References ilSession\has().

57  : bool
58  {
59  return !ilSession::has(self::KEY);
60  }
static has($a_var)
+ Here is the call graph for this function:

◆ setAdminView()

ILIAS\Container\Content\ViewSessionRepository::setAdminView ( )

Definition at line 39 of file class.ViewSessionRepository.php.

References ilSession\set().

39  : void
40  {
41  ilSession::set(self::KEY, self::VIEW_ADMIN);
42  }
static set(string $a_var, $a_val)
Set a value.
+ Here is the call graph for this function:

◆ setContentView()

ILIAS\Container\Content\ViewSessionRepository::setContentView ( )

Definition at line 44 of file class.ViewSessionRepository.php.

References ilSession\clear().

44  : void
45  {
46  ilSession::clear(self::KEY);
47  }
static clear(string $a_var)
+ Here is the call graph for this function:

Field Documentation

◆ KEY

const ILIAS\Container\Content\ViewSessionRepository::KEY = "cont_view"
protected

Definition at line 31 of file class.ViewSessionRepository.php.

◆ VIEW_ADMIN

const ILIAS\Container\Content\ViewSessionRepository::VIEW_ADMIN = "admin"
protected

Definition at line 32 of file class.ViewSessionRepository.php.

◆ VIEW_CONTENT

const ILIAS\Container\Content\ViewSessionRepository::VIEW_CONTENT = "content"
protected

Definition at line 33 of file class.ViewSessionRepository.php.


The documentation for this class was generated from the following file: