ILIAS  release_8 Revision v8.24
class.ilFrameTargetInfo.php
Go to the documentation of this file.
1<?php
2
3declare(strict_types=1);
4
5/* Copyright (c) 1998-2022 ILIAS open source, Extended GPL, see docs/LICENSE */
6
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}
static _getFrame(string $a_class)
global $DIC
Definition: feed.php:28