ILIAS  release_5-1 Revision 5.0.0-5477-g43f3e3fab5f
class.ilIntLinkRepItemExplorerGUI.php
Go to the documentation of this file.
1<?php
2
3/* Copyright (c) 1998-2014 ILIAS open source, Extended GPL, see docs/LICENSE */
4
5include_once("./Services/Repository/classes/class.ilRepositorySelectorExplorerGUI.php");
6
16{
20 function __construct($a_parent_obj, $a_parent_cmd)
21 {
22 parent::__construct($a_parent_obj, $a_parent_cmd, null, "", "");
23
24 // #14587 - ilRepositorySelectorExplorerGUI::__construct() does NOT include side blocks!
25 $list = $this->getTypeWhiteList();
26 $list[] = "poll";
27 $this->setTypeWhiteList($list);
28 }
29
35 function setSetLinkTargetScript($a_script)
36 {
37 $this->link_target_script = $a_script;
38 }
39
44 {
45 return $this->link_target_script;
46 }
47
48 function getNodeHref($a_node)
49 {
50 if ($this->getSetLinkTargetScript() == "")
51 {
52 return "#";
53 }
54 else
55 {
56 $link =
58 "linktype=RepositoryItem".
59 "&linktarget=il__".$a_node["type"]."_".$a_node["child"]);
60
61 return ($link);
62 }
63 }
64
68 function getNodeOnClick($a_node)
69 {
70 if ($this->getSetLinkTargetScript() == "")
71 {
72 return "return il.IntLink.addInternalLink('[iln ".$a_node['type']."=&quot;".$a_node['child']."&quot;]','[/iln]', event);";
73 }
74 return "";
75 }
76
77}
78?>
Internal Link: Repository Item Selector Explorer.
__construct($a_parent_obj, $a_parent_cmd)
Constructor.
getSetLinkTargetScript()
Get "set link target" script.
getNodeOnClick($a_node)
get onclick event handling
setSetLinkTargetScript($a_script)
Set "set link target" script.
Explorer for selecting repository items.
setTypeWhiteList($a_val)
Set type white list.
getTypeWhiteList()
Get type white list.
static appendUrlParameterString($a_url, $a_par, $xml_style=false)
append URL parameter string ("par1=value1&par2=value2...") to given URL string