ILIAS  Release_3_10_x_branch Revision 61812
 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 17146 2008-08-13 20:40:11Z akill

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

Constructor & Destructor Documentation

ilFramesetGUI::__construct ( )

Constructor public.

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

References setMainWidth(), and setSideWidth().

{
$this->setMainWidth("*");
$this->setSideWidth("25%");
}

+ Here is the call graph for this function:

Member Function Documentation

ilFramesetGUI::getMainWidth ( )

Get Main Width.

Returns
string Main Width

Definition at line 115 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 135 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 47 of file class.ilFramesetGUI.php.

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

name for main frame

Definition at line 71 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 55 of file class.ilFramesetGUI.php.

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

title for main frame

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

{
$this->main_frame_title = $a_main_title;
}
ilFramesetGUI::setMainWidth (   $a_mainwidth)

Set Main Width.

Parameters
string$a_mainwidthMain Width

Definition at line 105 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 95 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 79 of file class.ilFramesetGUI.php.

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

title for side frame

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

{
$this->side_frame_title = $a_side_title;
}
ilFramesetGUI::setSideWidth (   $a_sidewidth)

Set Side Width.

Parameters
string$a_sidewidthSide Width

Definition at line 125 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 143 of file class.ilFramesetGUI.php.

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

{
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", "- ".$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: