Public Member Functions

ilStyleScopeExplorer Class Reference

Class ilStyleScopyExplorer. More...

Inheritance diagram for ilStyleScopeExplorer:
Collaboration diagram for ilStyleScopeExplorer:

Public Member Functions

 ilStyleScopeExplorer ($a_target)
 Constructor public.
 formatHeader (&$tpl, $a_obj_id, $a_option)
 Creates output for header (is empty here but can be overwritten in derived classes).
 buildLinkTarget ($a_node_id, $a_type)
 get link target

Detailed Description

Class ilStyleScopyExplorer.

Author:
Alex Killing <alex.killing@gmx.de>
Version:
Id:
class.ilStyleScopeExplorer.php 11436 2006-07-16 18:17:43Z akill

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


Member Function Documentation

ilStyleScopeExplorer::buildLinkTarget ( a_node_id,
a_type 
)

get link target

Reimplemented from ilExplorer.

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

References $ilCtrl.

        {
                global $ilCtrl;
                
                $ilCtrl->setParameterByClass("ilobjstylesettingsgui",
                        "cat", $a_node_id);
                $ilCtrl->setParameterByClass("ilobjstylesettingsgui",
                        "style_id", $this->style_id);
                
                return $ilCtrl->getLinkTargetByClass("ilobjstylesettingsgui",
                        "saveScope");
        }

ilStyleScopeExplorer::formatHeader ( &$  tpl,
a_obj_id,
a_option 
)

Creates output for header (is empty here but can be overwritten in derived classes).

public

Parameters:
integer obj_id
integer array options

Reimplemented from ilExplorer.

Definition at line 55 of file class.ilStyleScopeExplorer.php.

References $ilCtrl, ilExplorer::$ilias, $lng, $tpl, and ilUtil::getImagePath().

        {
                global $lng, $ilias, $ilCtrl;

                $tpl->setCurrentBlock("icon");
                $tpl->setVariable("ICON_IMAGE", ilUtil::getImagePath("icon_root.gif"));
                $tpl->setVariable("TXT_ALT_IMG", $lng->txt("repository"));
                $tpl->parseCurrentBlock();

                $ilCtrl->setParameterByClass("ilobjstylesettingsgui",
                        "cat", 0);
                $ilCtrl->setParameterByClass("ilobjstylesettingsgui",
                        "style_id", $this->style_id);

                $tpl->setCurrentBlock("link");
                $tpl->setVariable("TITLE", $lng->txt("repository"));
                $tpl->setVariable("LINK_TARGET", $ilCtrl->getLinkTargetByClass("ilobjstylesettingsgui",
                        "saveScope"));
                $tpl->parseCurrentBlock();

                $tpl->setCurrentBlock("element");
                $tpl->parseCurrentBlock();
        }

Here is the call graph for this function:

ilStyleScopeExplorer::ilStyleScopeExplorer ( a_target  ) 

Constructor public.

Parameters:
string scriptname

Definition at line 41 of file class.ilStyleScopeExplorer.php.

References $_GET, $_POST, and ilExplorer::ilExplorer().

        {
                if ($_POST["id"][0] > 0)
                {
                        $this->style_id = $_POST["id"][0];
                }
                else
                {
                        $this->style_id = $_GET["stlye_id"];
                }
                
                parent::ilExplorer($a_target);
        }

Here is the call graph for this function:


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