ILIAS  trunk Revision v11.0_alpha-3011-gc6b235a2e85
class.ilFrameTargetInfo.php
Go to the documentation of this file.
1<?php
2
19declare(strict_types=1);
20
26{
27 public static function _getFrame(string $a_class): string
28 {
29 switch ($a_class) {
30 case 'RepositoryContent':
31 case 'MainContent':
32 return self::getLtiFrame();
33
34 case 'ExternalContent':
35 return '_blank';
36
37 default:
38 return '';
39 }
40 }
41
42 protected static function getLtiFrame(): string
43 {
44 global $DIC;
45
46 if ($DIC->offsetExists('lti') && $DIC['lti']->isActive()) {
47 return '_self';
48 }
49
50 return '_top';
51 }
52}
static _getFrame(string $a_class)
global $DIC
Definition: shib_login.php:26