ILIAS  release_6 Revision v6.24-5-g0c8bfefb3b8
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 public 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 public function setSetLinkTargetScript($a_script)
36 {
37 $this->link_target_script = $a_script;
38 }
39
43 public function getSetLinkTargetScript()
44 {
45 return $this->link_target_script;
46 }
47
48 public function getNodeHref($a_node)
49 {
50 if ($this->getSetLinkTargetScript() == "") {
51 return "#";
52 } else {
53 $link =
56 "linktype=RepositoryItem" .
57 "&linktarget=il__" . $a_node["type"] . "_" . $a_node["child"]
58 );
59
60 return ($link);
61 }
62 }
63
67 public function getNodeOnClick($a_node)
68 {
69 if ($this->getSetLinkTargetScript() == "") {
70 return "return il.IntLink.addInternalLink('[iln " . $a_node['type'] . "=&quot;" . $a_node['child'] . "&quot;]','[/iln]', event);";
71 }
72 return "";
73 }
74}
An exception for terminatinating execution or to throw for unit testing.
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
__construct(Container $dic, ilPlugin $plugin)
@inheritDoc