ILIAS
release_8 Revision v8.19
◀ ilDoc Overview
Main Page
Related Pages
Modules
+
Namespaces
Namespace List
+
Namespace Members
+
All
$
_
a
b
c
d
e
f
g
h
i
j
l
m
n
o
p
r
s
t
u
v
w
x
+
Functions
_
a
b
c
d
e
f
g
h
i
l
m
n
o
p
r
s
t
u
v
w
x
+
Variables
$
a
b
c
d
e
f
g
h
j
l
m
p
s
t
u
+
Data Structures
Data Structures
Data Structure Index
Class Hierarchy
+
Data Fields
+
All
$
_
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
Ö
+
Functions
_
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
+
Variables
$
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
Ö
+
Files
File List
+
Globals
+
All
$
_
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
r
s
t
u
v
w
x
z
+
Functions
_
a
b
c
d
e
g
h
i
m
n
p
r
s
t
u
v
x
+
Variables
$
a
c
d
e
f
g
h
i
j
k
l
m
n
o
p
r
s
t
u
v
w
z
Examples
•
All
Data Structures
Namespaces
Files
Functions
Variables
Modules
Pages
class.ViewSessionRepository.php
Go to the documentation of this file.
1
<?php
2
3
declare(strict_types=1);
4
21
namespace
ILIAS\Container\Content
;
22
23
use
ilSession
;
24
29
class
ViewSessionRepository
30
{
31
protected
const
KEY
=
"cont_view"
;
32
protected
const
VIEW_ADMIN
=
"admin"
;
33
protected
const
VIEW_CONTENT
=
"content"
;
34
35
public
function
__construct
()
36
{
37
}
38
39
public
function
setAdminView
(): void
40
{
41
ilSession::set
(self::KEY, self::VIEW_ADMIN);
42
}
43
44
public
function
setContentView
(): void
45
{
46
ilSession::clear
(self::KEY);
47
}
48
49
public
function
isAdminView
(): bool
50
{
51
if
(
ilSession::has
(self::KEY)) {
52
return
(
ilSession::get
(self::KEY) == self::VIEW_ADMIN);
53
}
54
return
false
;
55
}
56
57
public
function
isContentView
(): bool
58
{
59
return
!
ilSession::has
(self::KEY);
60
}
61
}
ilSession\get
static get(string $a_var)
Definition:
class.ilSession.php:459
ilSession
ILIAS\Container\Content\ViewSessionRepository\VIEW_ADMIN
const VIEW_ADMIN
Definition:
class.ViewSessionRepository.php:32
ILIAS\Container\Content\ViewSessionRepository\VIEW_CONTENT
const VIEW_CONTENT
Definition:
class.ViewSessionRepository.php:33
ILIAS\Container\Content\ViewSessionRepository\isAdminView
isAdminView()
Definition:
class.ViewSessionRepository.php:49
ILIAS\Container\Content\ViewSessionRepository\__construct
__construct()
Definition:
class.ViewSessionRepository.php:35
ilSession\has
static has($a_var)
Definition:
class.ilSession.php:464
ILIAS\Container\Content\ViewSessionRepository\KEY
const KEY
Definition:
class.ViewSessionRepository.php:31
ILIAS\Container\Content
This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Le...
Definition:
class.BlockSessionRepository.php:21
ILIAS\Container\Content\ViewSessionRepository\setAdminView
setAdminView()
Definition:
class.ViewSessionRepository.php:39
ILIAS\Container\Content\ViewSessionRepository
Stores view status.
Definition:
class.ViewSessionRepository.php:29
ilSession\clear
static clear(string $a_var)
Definition:
class.ilSession.php:472
ILIAS\Container\Content\ViewSessionRepository\isContentView
isContentView()
Definition:
class.ViewSessionRepository.php:57
ilSession\set
static set(string $a_var, $a_val)
Set a value.
Definition:
class.ilSession.php:451
ILIAS\Container\Content\ViewSessionRepository\setContentView
setContentView()
Definition:
class.ViewSessionRepository.php:44
Services
Container
Content
class.ViewSessionRepository.php
Generated on Sun Apr 6 2025 22:02:01 for ILIAS by
1.8.13 (using
Doxyfile
)