ILIAS
release_8 Revision v8.23
◀ ilDoc Overview
class.ilFrameTargetInfo.php
Go to the documentation of this file.
1
<?php
2
3
declare(strict_types=1);
4
5
/* Copyright (c) 1998-2022 ILIAS open source, Extended GPL, see docs/LICENSE */
6
11
class
ilFrameTargetInfo
12
{
13
public
static
function
_getFrame
(
string
$a_class): string
14
{
15
switch
($a_class) {
16
case
'RepositoryContent'
:
17
case
'MainContent'
:
18
return
self::getLtiFrame();
19
20
case
'ExternalContent'
:
21
return
'_blank'
;
22
23
default
:
24
return
''
;
25
}
26
}
27
28
protected
static
function
getLtiFrame
(): string
29
{
30
global
$DIC
;
31
32
if
($DIC->offsetExists(
'lti'
) && $DIC[
'lti'
]->isActive()) {
33
return
'_self'
;
34
}
35
36
return
'_top'
;
37
}
38
}
ilFrameTargetInfo
Definition:
class.ilFrameTargetInfo.php:11
$DIC
global $DIC
Definition:
feed.php:28
ilFrameTargetInfo\getLtiFrame
static getLtiFrame()
Definition:
class.ilFrameTargetInfo.php:28
ilFrameTargetInfo\_getFrame
static _getFrame(string $a_class)
Definition:
class.ilFrameTargetInfo.php:13
Services
UICore
classes
class.ilFrameTargetInfo.php
Generated on Sun Aug 31 2025 22:02:37 for ILIAS by
1.8.13 (using
Doxyfile
)