ILIAS  release_5-0 Revision 5.0.0-1144-gc4397b1f870
class.ilStyleScopeExplorer.php
Go to the documentation of this file.
1<?php
2/* Copyright (c) 1998-2011 ILIAS open source, Extended GPL, see docs/LICENSE */
3
4include_once("./Services/UIComponent/Explorer/classes/class.ilExplorer.php");
5
13{
19 function ilStyleScopeExplorer($a_target)
20 {
21 if ($_GET["id"] > 0)
22 {
23 $this->style_id = $_GET["id"];
24 }
25 else
26 {
27 $this->style_id = $_GET["stlye_id"];
28 }
29
30 parent::ilExplorer($a_target);
31 }
32
33 function formatHeader(&$tpl,$a_obj_id,$a_option)
34 {
35 global $lng, $ilias, $ilCtrl;
36
37 $tpl->setCurrentBlock("icon");
38 $tpl->setVariable("ICON_IMAGE", ilUtil::getImagePath("icon_root.svg"));
39 $tpl->setVariable("TXT_ALT_IMG", $lng->txt("repository"));
40 $tpl->parseCurrentBlock();
41
42 $ilCtrl->setParameterByClass("ilobjstylesettingsgui",
43 "cat", 0);
44 $ilCtrl->setParameterByClass("ilobjstylesettingsgui",
45 "style_id", $this->style_id);
46
47 $tpl->setCurrentBlock("link");
48 $tpl->setVariable("TITLE", $lng->txt("repository"));
49 $tpl->setVariable("LINK_TARGET", $ilCtrl->getLinkTargetByClass("ilobjstylesettingsgui",
50 "saveScope"));
51 $tpl->parseCurrentBlock();
52
53 $tpl->setCurrentBlock("element");
54 $tpl->parseCurrentBlock();
55 }
56
60 function buildLinkTarget($a_node_id, $a_type)
61 {
62 global $ilCtrl;
63
64 $ilCtrl->setParameterByClass("ilobjstylesettingsgui",
65 "cat", $a_node_id);
66 $ilCtrl->setParameterByClass("ilobjstylesettingsgui",
67 "style_id", $this->style_id);
68
69 return $ilCtrl->getLinkTargetByClass("ilobjstylesettingsgui",
70 "saveScope");
71 }
72
73} // END class.ilExplorer
74?>
global $tpl
Definition: ilias.php:8
$_GET["client_id"]
Class ilExplorer class for explorer view in admin frame.
Class ilStyleScopyExplorer.
ilStyleScopeExplorer($a_target)
Constructor @access 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
static getImagePath($img, $module_path="", $mode="output", $offline=false)
get image path (for images located in a template directory)
global $ilCtrl
Definition: ilias.php:18
global $lng
Definition: privfeed.php:40