ILIAS  release_6 Revision v6.24-5-g0c8bfefb3b8
ilFramesetGUI Class Reference

Class ilFramesetGUI. More...

+ Collaboration diagram for ilFramesetGUI:

Public Member Functions

 __construct ()
 Constructor @access public. More...
 
 setFramesetTitle ($a_fs_title)
 set title for frameset (is normally shown by browser) More...
 
 setMainFrameSource ($a_main_source)
 source url for main frame More...
 
 setMainFrameTitle ($a_main_title)
 title for main frame More...
 
 setMainFrameName ($a_main_name)
 name for main frame More...
 
 setSideFrameSource ($a_side_source)
 source url for side frame More...
 
 setSideFrameTitle ($a_side_title)
 title for side frame More...
 
 setSideFrameName ($a_side_name)
 name for main frame More...
 
 setMainWidth ($a_mainwidth)
 Set Main Width. More...
 
 getMainWidth ()
 Get Main Width. More...
 
 setSideWidth ($a_sidewidth)
 Set Side Width. More...
 
 getSideWidth ()
 Get Side Width. More...
 
 get ()
 Get. More...
 
 show ($a_get_only=false)
 Show frameset. More...
 

Protected Attributes

 $lng
 
 $settings
 

Detailed Description

Class ilFramesetGUI.

Author
Alex Killing alex..nosp@m.kill.nosp@m.ing@g.nosp@m.mx.d.nosp@m.e
Version
$Id$

Definition at line 11 of file class.ilFramesetGUI.php.

Constructor & Destructor Documentation

◆ __construct()

ilFramesetGUI::__construct ( )

Constructor @access public.

Definition at line 28 of file class.ilFramesetGUI.php.

29 {
30 global $DIC;
31
32 $this->lng = $DIC->language();
33 $this->settings = $DIC->settings();
34 $lng = $DIC->language();
35
36 $this->setMainWidth("*");
37 $this->setSideWidth("25%");
38
39 // default titles (accessibility revision)
40 // should not been overwritten, if no good reason is given
41 $this->setSideFrameTitle($lng->txt("side_frame"));
42 $this->setMainFrameTitle($lng->txt("content_frame"));
43 }
setSideWidth($a_sidewidth)
Set Side Width.
setMainWidth($a_mainwidth)
Set Main Width.
setSideFrameTitle($a_side_title)
title for side frame
setMainFrameTitle($a_main_title)
title for main frame
settings()
Definition: settings.php:2
$DIC
Definition: xapitoken.php:46

References $DIC, $lng, setMainFrameTitle(), setMainWidth(), setSideFrameTitle(), setSideWidth(), and settings().

+ Here is the call graph for this function:

Member Function Documentation

◆ get()

ilFramesetGUI::get ( )

Get.

Definition at line 144 of file class.ilFramesetGUI.php.

145 {
146 return $this->show(true);
147 }
show($a_get_only=false)
Show frameset.

References show().

+ Here is the call graph for this function:

◆ getMainWidth()

ilFramesetGUI::getMainWidth ( )

Get Main Width.

Returns
string Main Width

Definition at line 116 of file class.ilFramesetGUI.php.

117 {
118 return $this->mainwidth;
119 }

Referenced by show().

+ Here is the caller graph for this function:

◆ getSideWidth()

ilFramesetGUI::getSideWidth ( )

Get Side Width.

Returns
string Side Width

Definition at line 136 of file class.ilFramesetGUI.php.

137 {
138 return $this->sidewidth;
139 }

Referenced by show().

+ Here is the caller graph for this function:

◆ setFramesetTitle()

ilFramesetGUI::setFramesetTitle (   $a_fs_title)

set title for frameset (is normally shown by browser)

Definition at line 48 of file class.ilFramesetGUI.php.

49 {
50 $this->frameset_title = $a_fs_title;
51 }

◆ setMainFrameName()

ilFramesetGUI::setMainFrameName (   $a_main_name)

name for main frame

Definition at line 72 of file class.ilFramesetGUI.php.

73 {
74 $this->main_frame_name = $a_main_name;
75 }

◆ setMainFrameSource()

ilFramesetGUI::setMainFrameSource (   $a_main_source)

source url for main frame

Definition at line 56 of file class.ilFramesetGUI.php.

57 {
58 $this->main_frame_source = $a_main_source;
59 }

◆ setMainFrameTitle()

ilFramesetGUI::setMainFrameTitle (   $a_main_title)

title for main frame

Definition at line 64 of file class.ilFramesetGUI.php.

65 {
66 $this->main_frame_title = $a_main_title;
67 }

Referenced by __construct().

+ Here is the caller graph for this function:

◆ setMainWidth()

ilFramesetGUI::setMainWidth (   $a_mainwidth)

Set Main Width.

Parameters
string$a_mainwidthMain Width

Definition at line 106 of file class.ilFramesetGUI.php.

107 {
108 $this->mainwidth = $a_mainwidth;
109 }

Referenced by __construct().

+ Here is the caller graph for this function:

◆ setSideFrameName()

ilFramesetGUI::setSideFrameName (   $a_side_name)

name for main frame

Definition at line 96 of file class.ilFramesetGUI.php.

97 {
98 $this->side_frame_name = $a_side_name;
99 }

◆ setSideFrameSource()

ilFramesetGUI::setSideFrameSource (   $a_side_source)

source url for side frame

Definition at line 80 of file class.ilFramesetGUI.php.

81 {
82 $this->side_frame_source = $a_side_source;
83 }

◆ setSideFrameTitle()

ilFramesetGUI::setSideFrameTitle (   $a_side_title)

title for side frame

Definition at line 88 of file class.ilFramesetGUI.php.

89 {
90 $this->side_frame_title = $a_side_title;
91 }

Referenced by __construct().

+ Here is the caller graph for this function:

◆ setSideWidth()

ilFramesetGUI::setSideWidth (   $a_sidewidth)

Set Side Width.

Parameters
string$a_sidewidthSide Width

Definition at line 126 of file class.ilFramesetGUI.php.

127 {
128 $this->sidewidth = $a_sidewidth;
129 }

Referenced by __construct().

+ Here is the caller graph for this function:

◆ show()

ilFramesetGUI::show (   $a_get_only = false)

Show frameset.

Definition at line 153 of file class.ilFramesetGUI.php.

154 {
156
157 if ($ilSetting->get("tree_frame") == "right") {
158 $main = "LEFT";
159 $side = "RIGHT";
160 } else {
161 $main = "RIGHT";
162 $side = "LEFT";
163 }
164
165 $tpl = new ilGlobalTemplate("tpl.frameset.html", true, false);
166 $tpl->setVariable("LOCATION_STYLESHEET", ilUtil::getStyleSheetLocation());
167
168 $tpl->setVariable("PAGETITLE", "- " . ilUtil::stripScriptHTML($this->frameset_title));
169 $tpl->setVariable("SRC_" . $main, $this->main_frame_source);
170 $tpl->setVariable("SRC_" . $side, $this->side_frame_source);
171 $tpl->setVariable("TITLE_" . $main, $this->main_frame_title);
172 $tpl->setVariable("TITLE_" . $side, $this->side_frame_title);
173 $tpl->setVariable("NAME_" . $main, $this->main_frame_name);
174 $tpl->setVariable("NAME_" . $side, $this->side_frame_name);
175 $tpl->setVariable("WIDTH_" . $main, $this->getMainWidth());
176 $tpl->setVariable("WIDTH_" . $side, $this->getSideWidth());
177 if ($ilSetting->get('short_inst_name') != "") {
178 $tpl->setVariable(
179 "WINDOW_TITLE",
180 $ilSetting->get('short_inst_name')
181 );
182 } else {
183 $tpl->setVariable(
184 "WINDOW_TITLE",
185 "ILIAS"
186 );
187 }
188
189 if ($a_get_only) {
190 return $tpl->get();
191 } else {
192 $tpl->printToStdout("DEFAULT", false);
193 }
194 }
getSideWidth()
Get Side Width.
getMainWidth()
Get Main Width.
special template class to simplify handling of ITX/PEAR
static getStyleSheetLocation($mode="output", $a_css_name="", $a_css_location="")
get full style sheet file name (path inclusive) of current user
static stripScriptHTML($a_str, $a_allow="", $a_rm_js=true)
strip only html tags (4.0) from text $allowed contains tags to be allowed, in format tags a and b ar...
global $ilSetting
Definition: privfeed.php:17
if(isset($_FILES['img_file']['size']) && $_FILES['img_file']['size'] > 0) $tpl

References $ilSetting, $settings, $tpl, getMainWidth(), getSideWidth(), ilUtil\getStyleSheetLocation(), and ilUtil\stripScriptHTML().

Referenced by get().

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

Field Documentation

◆ $lng

ilFramesetGUI::$lng
protected

Definition at line 16 of file class.ilFramesetGUI.php.

Referenced by __construct().

◆ $settings

ilFramesetGUI::$settings
protected

Definition at line 21 of file class.ilFramesetGUI.php.

Referenced by show().


The documentation for this class was generated from the following file: