ILIAS  Release_4_0_x_branch Revision 61816
 All Data Structures Namespaces Files Functions Variables Groups Pages
ilFramesetGUI Class Reference

Class ilFramesetGUI. More...

+ Collaboration diagram for ilFramesetGUI:

Public Member Functions

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

Detailed Description

Class ilFramesetGUI.

Author
Alex Killing alex..nosp@m.kill.nosp@m.ing@g.nosp@m.mx.d.nosp@m.e
Version
Id:
class.ilFramesetGUI.php 20271 2009-06-19 08:46:39Z mjansen

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

Constructor & Destructor Documentation

ilFramesetGUI::__construct ( )

Constructor public.

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

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

{
global $lng;
$this->setMainWidth("*");
$this->setSideWidth("25%");
// default titles (accessibility revision)
// should not been overwritten, if no good reason is given
$this->setSideFrameTitle($lng->txt("side_frame"));
$this->setMainFrameTitle($lng->txt("content_frame"));
}

+ Here is the call graph for this function:

Member Function Documentation

ilFramesetGUI::getMainWidth ( )

Get Main Width.

Returns
string Main Width

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

Referenced by show().

{
return $this->mainwidth;
}

+ Here is the caller graph for this function:

ilFramesetGUI::getSideWidth ( )

Get Side Width.

Returns
string Side Width

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

Referenced by show().

{
return $this->sidewidth;
}

+ Here is the caller graph for this function:

ilFramesetGUI::setFramesetTitle (   $a_fs_title)

set title for frameset (is normally shown by browser)

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

{
$this->frameset_title = $a_fs_title;
}
ilFramesetGUI::setMainFrameName (   $a_main_name)

name for main frame

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

{
$this->main_frame_name = $a_main_name;
}
ilFramesetGUI::setMainFrameSource (   $a_main_source)

source url for main frame

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

{
$this->main_frame_source = $a_main_source;
}
ilFramesetGUI::setMainFrameTitle (   $a_main_title)

title for main frame

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

Referenced by __construct().

{
$this->main_frame_title = $a_main_title;
}

+ Here is the caller graph for this function:

ilFramesetGUI::setMainWidth (   $a_mainwidth)

Set Main Width.

Parameters
string$a_mainwidthMain Width

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

Referenced by __construct().

{
$this->mainwidth = $a_mainwidth;
}

+ Here is the caller graph for this function:

ilFramesetGUI::setSideFrameName (   $a_side_name)

name for main frame

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

{
$this->side_frame_name = $a_side_name;
}
ilFramesetGUI::setSideFrameSource (   $a_side_source)

source url for side frame

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

{
$this->side_frame_source = $a_side_source;
}
ilFramesetGUI::setSideFrameTitle (   $a_side_title)

title for side frame

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

Referenced by __construct().

{
$this->side_frame_title = $a_side_title;
}

+ Here is the caller graph for this function:

ilFramesetGUI::setSideWidth (   $a_sidewidth)

Set Side Width.

Parameters
string$a_sidewidthSide Width

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

Referenced by __construct().

{
$this->sidewidth = $a_sidewidth;
}

+ Here is the caller graph for this function:

ilFramesetGUI::show ( )

show frameset

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

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

{
global $ilSetting;
if ($ilSetting->get("tree_frame") == "right")
{
$main = "LEFT";
$side = "RIGHT";
}
else
{
$main = "RIGHT";
$side = "LEFT";
}
$tpl = new ilTemplate("tpl.frameset.html", true, false);
$tpl->setVariable("LOCATION_STYLESHEET", ilUtil::getStyleSheetLocation());
$tpl->setVariable("PAGETITLE", "- ".ilUtil::stripScriptHTML($this->frameset_title));
$tpl->setVariable("SRC_".$main, $this->main_frame_source);
$tpl->setVariable("SRC_".$side, $this->side_frame_source);
$tpl->setVariable("TITLE_".$main, $this->main_frame_title);
$tpl->setVariable("TITLE_".$side, $this->side_frame_title);
$tpl->setVariable("NAME_".$main, $this->main_frame_name);
$tpl->setVariable("NAME_".$side, $this->side_frame_name);
$tpl->setVariable("WIDTH_".$main, $this->getMainWidth());
$tpl->setVariable("WIDTH_".$side, $this->getSideWidth());
if ($ilSetting->get('short_inst_name') != "")
{
$tpl->setVariable("WINDOW_TITLE",
$ilSetting->get('short_inst_name'));
}
else
{
$tpl->setVariable("WINDOW_TITLE",
"ILIAS");
}
$tpl->show("DEFAULT", false);
}

+ Here is the call graph for this function:


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