Go to the documentation of this file.00001 <?php
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015
00016
00017
00018
00019
00020
00021
00022
00023
00024 include_once("classes/class.ilExplorer.php");
00025
00034 class ilStyleScopeExplorer extends ilExplorer
00035 {
00041 function ilStyleScopeExplorer($a_target)
00042 {
00043 if ($_POST["id"][0] > 0)
00044 {
00045 $this->style_id = $_POST["id"][0];
00046 }
00047 else
00048 {
00049 $this->style_id = $_GET["stlye_id"];
00050 }
00051
00052 parent::ilExplorer($a_target);
00053 }
00054
00055 function formatHeader(&$tpl,$a_obj_id,$a_option)
00056 {
00057 global $lng, $ilias, $ilCtrl;
00058
00059 $tpl->setCurrentBlock("icon");
00060 $tpl->setVariable("ICON_IMAGE", ilUtil::getImagePath("icon_root.gif"));
00061 $tpl->setVariable("TXT_ALT_IMG", $lng->txt("repository"));
00062 $tpl->parseCurrentBlock();
00063
00064 $ilCtrl->setParameterByClass("ilobjstylesettingsgui",
00065 "cat", 0);
00066 $ilCtrl->setParameterByClass("ilobjstylesettingsgui",
00067 "style_id", $this->style_id);
00068
00069 $tpl->setCurrentBlock("link");
00070 $tpl->setVariable("TITLE", $lng->txt("repository"));
00071 $tpl->setVariable("LINK_TARGET", $ilCtrl->getLinkTargetByClass("ilobjstylesettingsgui",
00072 "saveScope"));
00073 $tpl->parseCurrentBlock();
00074
00075 $tpl->setCurrentBlock("element");
00076 $tpl->parseCurrentBlock();
00077 }
00078
00082 function buildLinkTarget($a_node_id, $a_type)
00083 {
00084 global $ilCtrl;
00085
00086 $ilCtrl->setParameterByClass("ilobjstylesettingsgui",
00087 "cat", $a_node_id);
00088 $ilCtrl->setParameterByClass("ilobjstylesettingsgui",
00089 "style_id", $this->style_id);
00090
00091 return $ilCtrl->getLinkTargetByClass("ilobjstylesettingsgui",
00092 "saveScope");
00093 }
00094
00095 }
00096 ?>