ILIAS  release_5-1 Revision 5.0.0-5477-g43f3e3fab5f
class.ilFrameTargetInfo.php
Go to the documentation of this file.
1<?php
2/* Copyright (c) 1998-2009 ILIAS open source, Extended GPL, see docs/LICENSE */
3
10{
18 public static function _getFrame($a_class, $a_type = '')
19 {
20 switch($a_type)
21 {
22 default:
23 switch($a_class)
24 {
25 case 'RepositoryContent':
26 if($_SESSION['il_rep_mode'] == 'flat' or !isset($_SESSION['il_rep_mode']))
27 {
28 //return 'bottom';
29 return '_top';
30 }
31 else
32 {
33 return 'rep_content';
34 }
35
36 case 'MainContent':
37 //return 'bottom';
38 return '_top';
39
40 // frame for external content (e.g. web bookmarks, external links)
41 case 'ExternalContent':
42 return '_blank';
43 }
44 }
45
46 return '';
47 }
48}
$_SESSION["AccountId"]
static _getFrame($a_class, $a_type='')
Get content frame name.